...twitter.com/myisland_dao?s=21
*/
pragma solidity ^0.8.4;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
```
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf...
最近我的eth 执行erc20 token授权转账 提交广播后,变成一直处于pending状态。查看交易hash。页面提示 This txn hash was found in our secondary node and should be picked up by our indexer in a short while。
以下是我在 ***goerli*** 测试网的交易截图。
...
... uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
console.log(from,to,amount);
console.log('inSwapAndLiquify',inSwapAndLiquify);
c...
...niswapV2Router.sol";
import "./DividendTracker.sol";
contract Token is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
bool public swapEnabled = true;
DividendTr...