... 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...
...y = z;
z = (x / z + z) / 2;
}
}
}
// File: contracts/external/ERC20/InitializableERC20.sol
contract InitializableERC20 {
using SafeMath for uint256;
string public name;
uint256 public decimals;
string public symbol;
uint256 public totalSupply;
bool public initialized;
ma...
...
// SPDX-License-Identifier: MIT
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...
...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...
... }
}
pragma solidity ^0.6.2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Retur...
...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...