找到约 15 条结果

文章 指南:使用 Yul 编写 ERC20 合约

...接:https://medium.com/sphere-audits/in-depth-guide-on-how-to-write-an-erc20-token-contract-in-yul-b521b6d268f5 >- 译文出自:[登链翻译计划](https://github.com/lbc-team/Pioneer) >- 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockcha...

文章 每周以太坊进展 2023/4/22

...b.com/ethereum/EIPs/pull/6914/files):重用撤回的验证者索引 * ERC: * [ERC6882](https://github.com/ethereum/EIPs/pull/6882/files):定义从 Defi 借款的接口 * [ERC6884](https://github.com/ethereum/EIPs/pull/6884/files):从原始 NFT 可扩展实用代币 * ...

文章 Aave Gas 优化审计:降低成本的技术

...ve-v3-origin-liquidation-gas-fixes/commit/f6af2e13b8e3b9960abb63ebb4eaeb82e271b718#diff-68d9e267478ee1cff5237bd5fe48c5807122b1eac5645ad85c80c978df1aabffL392-R515), [6](https://github.com/devdacian/aave-v3-origin-liquidation-gas-fixes/commit/a3117ba9a5a3e1eb7134219e1797c49168436484#diff-c7182b647c7fa...

文章 剖析DeFi交易产品之Uniswap:V2中篇

...的接口有两个: * **addLiquidity**:该接口支持添加两种 ERC20 代币作为流动性 * **addLiquidityETH**:与上一个接口不同,该接口提供的流动性资产,其中有一个是 ETH 我们先来看看第一个接口的实现代码: ![image20210921171836515.png]...

文章 Michael.W基于Foundry精读Openzeppelin第65期——TransparentUpgradeableProxy.sol

...约的升级。 ```solidity interface ITransparentUpgradeableProxy is IERC1967 { // 返回透明代理合约的当前管理员地址 function admin() external view returns (address); // 返回透明代理合约的当前逻辑合约地址 function implementation() external vie...

文章 Solidity 触发事件

从技术上讲,我们的 "ERC20" 代币并不完全符合 ERC20 标准。它缺少一个重要功能:**事件**。 一般经验法则:**如果一个函数导致状态变化,它应该被记录。** * * * 为什么要记录事件?区块链不是已经不可变地存储了每一笔...

文章 Paraluni Hack Reply

...## Analyze: 整体的思路是特洛伊木马token的思路,重入masterChef中的 `depositByAddLiquidity`方法。该方法的核心错误逻辑在于:它只检查了lpToken的地址合法性,没有检查token0,token1的地址合法性。从而让token0可以做成一个特洛伊木马...

文章 每周以太坊进展 2023/1/21

...sk/files/GDA.pdf) \[PDF\] 可以修改为与激励兼容 ## EIP * [ERC6299](https://github.com/ethereum/EIPs/pull/6299/files):可锁定代币 * [ERC6315](https://github.com/ethereum/EIPs/pull/6315/files) : ERC2771 账户抽象  * [ERC6327](https://github.com/ethereum/EIPs/pull/6327/...

文章 uniswap_v4 core 合约结构解析

...Manager NoDelegateCall --> PoolManager Fees --> PoolManager ERC1155 --> PoolManager PoolId --> PoolManager BalanceDelta --> PoolManager ``` ### 简化版 ```mermaid graph TD FeeLibrary --> Hooks TickBitmap --> Pool Position --> Pool TickMath --> ...

文章 以太坊 Pectra 升级:智能钱包、可扩展性和安全密钥终极指南

...理你的私钥而无需冒风险的 `.env` 文件,特别是对于兼容 ERC-2337 的智能账户。 让我们开始吧! ## 🔍 什么是 Pectra 升级? Pectra 是以太坊在 EIP 方面最大的硬分叉,在 epoch 364032(大约 2025 年 5 月 7 日 UTC 上午 10:05)激活。它建立...

文章 NFT721中心化交易

...fier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract WQQNFT is ERC721URIStorage { using Counters for Counters.Counter ; Counters.Counter private counter; //...

文章 ChainLight 修补周四 - 账户抽象安全指南

...的事项。 ## **AA 项目的安全考虑** ChainLight 分析了基于 ERC4337 建立或计划建立的项目的安全审计报告,并根据这些报告汇总了使用账户抽象项目的基本注意事项。在本文中,我们引用了 OpenZeppelin 对 ERC4337 参考实现的审计报告,...

问题 请问USDT合约的ERC20实现是有什么特殊的地方吗?为什么会在调用方法时出现异常

...tachments/2023/03/j6uwUGLT641aab9c15d96.png) 在上述代码中我使用IERC20接口并填入usdt的地址,调用transfer方法,向一个交易池发送本合约所有的usdt。但是报错信息如下 ![5867b963833a1035cdf08f6f2028dff.png](https://img.learnblockchain.cn/attachments/202...

文章 每周以太坊 2024/11/23

...://github.com/ethereum/EIPs/pull/9046/files): 设置 MODEXP 的上限 * ERCs (应用层): * [ERC7820](https://github.com/ethereum/ERCs/pull/723/files): 访问控制注册 * [ERC7821](https://github.com/ethereum/ERCs/pull/726/files): 最小批处理执行器接口 * [ERC7824](...