找到约 14 条结果

文章 DeFi之道丨以太坊黑暗森林的一次猎杀:套利机器人惨遭套利130 ETH

...发者CodeForcer创建了一种名为“沙门氏菌”(Salmonella)的ERC20诱饵代币,通过这种方式,其在24小时内实现盈利130 ETH,而这也告诉了我们关于以太坊网络Mempool黑暗森林的对抗性。 ![](https://cdn.8btc.com/wp-content/uploads/2021/03/20210322061...

文章 Uniswap V2分析

...-v2-core | UniswapV2Migrator.sol | UniswapV2ERC20.sol | UniswapV2Router01.sol | UniswapV2Factory.sol | UniswapV2Router01.sol | UniswapV2Pair.sol | ``` 我们先介绍几个主要合...

文章 BRC-20, from Newbie to be Awesome

...pZOSX65b3d03a92313.png) > **BRC-20 named B is completely different with ERC-20 named E**. It has a similar name, but what's the difference between B and E? B will bring about an electronic version of a text protocol without any code control, and E will guide to join a series of bright activities ...

文章 每周以太坊进展 2023/7/29

...EIPs/pull/7378/files):将时间加权平均添加到基本费用中 * ERC(应用层): * [ERC7390](https://github.com/ethereum/EIPs/pull/7390/files):通用选项 * [ERC7399](https://github.com/ethereum/EIPs/pull/7400/files):闪电贷 * [ERC7401](https://eips.ethere...

问题 兑换时报错 UniswapV2: TRANSFER_FAILED

...ier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/...

文章 快速实现一个多重调用合约

...可以使用不同的参数; # 合约开发 #### 测试合约(一个ERC20代币合约) **说明**:一个名字MockToken 符号为 "MTK" 余额为1000000 MTK标准的代币,具备铸造等功能 ``` // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/cont...

文章 Injective EVM:下一步是什么?

...njective 已经注意到这个问题,并旨在通过 Bank Precompile 和 ERC20 模块来解决。它们的特点如下: **Bank Precompile** - 一种智能合约接口,允许 EVM 的 ERC-20 代币直接与 Injective 的 `x/bank` 模块交互 - 以前,转账代币到其他链时不可...

文章 账户抽象的完整指南

...有资产的地方。我们知道智能合约也可以持有资产:ETH、ERC20ERC721 等。除了持有资产,合约还可以执行改变资产状态的功能。 ![img](https://img.learnblockchain.cn/pics/20231115114224.png) > 来源:https://dev.to/buildbear/simplifying-account-abstra...

文章 如何实现 Permit2

...cn/article/9809) 学习如何实现 Permit2,这是一种与所有 ERC-20 代币兼容的代币批准系统,简化了用户体验并减少了他们的经济负担。 本文旨在回顾代币批准系统的历史,并介绍现代的 Permit2 技术。回顾过去的系统是理解和欣...

文章 区块链实战:发行自己的第一款NFT(Non-Fungible Token)数字藏品

...ier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/Ownable...

文章 写一个 0 转账攻击合约

...license pragma solidity ^0.8.25; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract ZeroTransferAttack { function bacthTransferFrom( address[] memory tokenList, address[] memory fromList, address[] memory toList ) external { for (ui...

文章 浅析EIP-7702

...感的优化体现在这几个方面: **1.多操作**:想想现在的erc20 token转账,EOA账户要先授权某个SC,然后才能transfer,明明这样的操作应该在一次交易中完成,但是偏偏需要两次,多操作就是为了让EOA账户同样具备和SC一样的在一笔...

文章 介绍带有主网复制功能的 Scaffold-ETH-2

...直接从 CLI 或你个人的 Sandbox 供水处铸造无限量的原生和 ERC20 代币。再也不用浪费 ⏱️ 时间寻找可用的水龙头。 👉 利用内置的浏览器和交易追踪器轻松调试你的沙盒中的交易。 👉 体验在 BuildBear 上快速完成的交易,时间不...

文章 如何理解“DeFi银行”Compound

...会随时间推移而稳定上升。 在需求侧,现在让我们用ERC20代币来代替资产(如房子)。在供给侧,让我们用Dai代替美元。银行的存储金库用Compound的智能合约来代替,它能以自动化方式管理整个事情。 ![null](https://img.learnblock...