...项目是[通过WETH把以太币代币化](https://weth.io/),再接入到ERC20为主的DEFI生态中。 当前使用最广泛的WETH实现是[WETH9](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code),有兴趣的可以点击链接查看实现。 WETH9上线至今...
...a:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%271064%27%20height=%27456%27/%3e) Ethereum.org 是一个教育网站和...
...an 不支持代币余额或转账历史,这使得它的实用性有限。ERC20 / ERC721 / ERC1155 代币及 NFTs 是类似 EVM 区块链最受欢迎的功能之一。除此之外,Otterscan 只能与一个客户端使用,而 esplr 力求支持所有节点类型。 > 我可以验证所有网...
...后就不能修改了 ```js pragma solidity ^0.8.0; import "./ERC20.sol"; import "./Ownable.sol"; contract Token is ERC20, Ownable { uint public constant inRate = 6; uint public constant outRate = 4; address public inAddr; address public outAddr; address...
...https://github.com/ethereum/EIPs/pull/7837/files): 定理携带交易 * ERCs(应用层): * [ERC7533](https://github.com/ethereum/EIPs/pull/7833/files): 公共跨链端口(连接 EVM 网络) * [ERC7535](https://github.com/ethereum/EIPs/pull/7846/files): ETH(原生资产)代...
...:154+186+212=552。而在BxE协议中,用户只需要两笔交易完成ERC20合约transfer方法调用的铭刻,手续费约为 154+156=310。 ## 3. BxE技术架构 ### 3.1 底层基础 - 比特币Ordinals与以太坊EVM #### 3.1.1 比特币Ordinals Ordinals是比特币网络的一...
...raries/UniswapV2Library.sol"; import "@openzeppelin/contracts/mocks/token/ERC20Mock.sol"; /// @title UniswapV2RouterExactOutputTest /// @notice 验证 Router 反向兑换路径的关键行为 contract UniswapV2RouterExactOutputTest is Test { UniswapV2Factory private factory; UniswapV...
...源的误导性信息。 例如,恶意用户可以部署一个简单ERC20合约和“空投”代币给一群用户,在自动做市商上创建一个看起来健康的流动资金池,等待用户根据错误的宣传购买或出售代币,认为此代币是已知开发人员/实体的一...
...的 "bin" 在这里可以理解成储存流动性的箱子。 - **类 ERC1155 的 LB Token**:由于上面提到的流动性分布单元和方式,所以 Joe V2 基于 ERC1155 构建了一套流动性凭证体系 —— LB Token,同一个 bin 内的流动性是同质化的,而不同的 bin ...
...Id require(start < end, "XenBox: end must over start"); IERC721 erc721 = IERC721(target); uint256[] memory list = new uint256[](end - start); uint256 index; // 遍历出所有者拥有的 tokenId for (uint256 tokenId = start; tokenId < end; token...
...elin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "../interface/investFlowInterface.sol"; import "../interface/forumFlowNft.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract forumFlowNftCopy is ERC72...
``` IERC20(token0).transfer(address(this),token0Amount); ``` 我调用上面的方法后,openzeppelin的_msgSender()返回的是0而不是用户地址或合约地址,这是为什么? ``` function _transfer( address from, address to, uint256 amount ) int...
...3b10dcfa48/contracts/main/CurveStableSwapMetaNG.vy#L13-L28): - 常规 ERC20 代币 - 具有利率预言机的代币(如 wstETH) - 重基代币(如 stETH) - ERC4626 股权代币 这些类型的代币在某些情况下可能需要特殊处理(例如,[这里](https://github.com/c...