Transaction Hash:
Block:
12684310 at Jun-22-2021 01:32:04 PM +UTC
Transaction Fee:
0.00653708 ETH
$14.32
Gas Used:
39,380 Gas / 166 Gwei
Emitted Events:
290 |
ZildFinanceCoin.Transfer( from=[Sender] 0x2fa0c3bff254636e8001cdaa86ba9b118fd27dce, to=0x007518d772045921566b97865F504c8b4130ac0F, value=5400000000000000000 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x006699d3...59A16B12B | |||||
0x2fa0c3bF...18Fd27DCE |
0.442396255457644705 Eth
Nonce: 74
|
0.435859175457644705 Eth
Nonce: 75
| 0.00653708 | ||
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 1,030.991332857457991122 Eth | 1,030.997869937457991122 Eth | 0.00653708 |
Execution Trace
ZildFinanceCoin.transfer( to=0x007518d772045921566b97865F504c8b4130ac0F, amount=5400000000000000000 ) => ( True )
{"IERC20.sol":{"content":"pragma solidity 0.5.4;\r\n\r\ninterface IERC20 {\r\n\r\n function balanceOf(address account) external view returns (uint256);\r\n function transfer(address recipient, uint256 amount) external returns (bool);\r\n function allowance(address owner, address spender) external view returns (uint256);\r\n function approve(address spender, uint256 amount) external returns (bool);\r\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\r\n event Transfer(address indexed from, address indexed to, uint256 value);\r\n event Approval(address indexed owner, address indexed spender, uint256 value);\r\n\r\n}"},"Ownable.sol":{"content":"pragma solidity 0.5.4;\r\n\r\ncontract Ownable {\r\n\r\n address private _owner;\r\n\r\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n\r\n constructor() internal {\r\n _owner = msg.sender;\r\n emit OwnershipTransferred(address(0), _owner);\r\n }\r\n\r\n function owner() public view returns (address) {\r\n return _owner;\r\n }\r\n\r\n function isOwner() public view returns (bool) {\r\n return msg.sender == _owner;\r\n }\r\n\r\n modifier onlyOwner() {\r\n require(msg.sender == _owner, \"Ownable: caller is not the owner\");\r\n _;\r\n }\r\n\r\n function transferOwnership(address newOwner) public onlyOwner {\r\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\r\n emit OwnershipTransferred(_owner, newOwner);\r\n _owner = newOwner;\r\n }\r\n\r\n}"},"SafeMath.sol":{"content":"pragma solidity ^0.5.0;\r\n\r\n/**\r\n * @dev Wrappers over Solidity\u0027s arithmetic operations with added overflow\r\n * checks.\r\n *\r\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\r\n * in bugs, because programmers usually assume that an overflow raises an\r\n * error, which is the standard behavior in high level programming languages.\r\n * `SafeMath` restores this intuition by reverting the transaction when an\r\n * operation overflows.\r\n *\r\n * Using this library instead of the unchecked operations eliminates an entire\r\n * class of bugs, so it\u0027s recommended to use it always.\r\n */\r\nlibrary SafeMath {\r\n /**\r\n * @dev Returns the addition of two unsigned integers, reverting on\r\n * overflow.\r\n *\r\n * Counterpart to Solidity\u0027s `+` operator.\r\n *\r\n * Requirements:\r\n * - Addition cannot overflow.\r\n */\r\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n uint256 c = a + b;\r\n require(c \u003e= a, \"SafeMath: addition overflow\");\r\n\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Returns the subtraction of two unsigned integers, reverting on\r\n * overflow (when the result is negative).\r\n *\r\n * Counterpart to Solidity\u0027s `-` operator.\r\n *\r\n * Requirements:\r\n * - Subtraction cannot overflow.\r\n */\r\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return sub(a, b, \"SafeMath: subtraction overflow\");\r\n }\r\n\r\n /**\r\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\r\n * overflow (when the result is negative).\r\n *\r\n * Counterpart to Solidity\u0027s `-` operator.\r\n *\r\n * Requirements:\r\n * - Subtraction cannot overflow.\r\n *\r\n * _Available since v2.4.0._\r\n */\r\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n require(b \u003c= a, errorMessage);\r\n uint256 c = a - b;\r\n\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Returns the multiplication of two unsigned integers, reverting on\r\n * overflow.\r\n *\r\n * Counterpart to Solidity\u0027s `*` operator.\r\n *\r\n * Requirements:\r\n * - Multiplication cannot overflow.\r\n */\r\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n // Gas optimization: this is cheaper than requiring \u0027a\u0027 not being zero, but the\r\n // benefit is lost if \u0027b\u0027 is also tested.\r\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n if (a == 0) {\r\n return 0;\r\n }\r\n\r\n uint256 c = a * b;\r\n require(c / a == b, \"SafeMath: multiplication overflow\");\r\n\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Returns the integer division of two unsigned integers. Reverts on\r\n * division by zero. The result is rounded towards zero.\r\n *\r\n * Counterpart to Solidity\u0027s `/` operator. Note: this function uses a\r\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n * uses an invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n * - The divisor cannot be zero.\r\n */\r\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return div(a, b, \"SafeMath: division by zero\");\r\n }\r\n\r\n /**\r\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\r\n * division by zero. The result is rounded towards zero.\r\n *\r\n * Counterpart to Solidity\u0027s `/` operator. Note: this function uses a\r\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n * uses an invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n * - The divisor cannot be zero.\r\n *\r\n * _Available since v2.4.0._\r\n */\r\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n // Solidity only automatically asserts when dividing by 0\r\n require(b \u003e 0, errorMessage);\r\n uint256 c = a / b;\r\n // assert(a == b * c + a % b); // There is no case in which this doesn\u0027t hold\r\n\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n * Reverts when dividing by zero.\r\n *\r\n * Counterpart to Solidity\u0027s `%` operator. This function uses a `revert`\r\n * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n * invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n * - The divisor cannot be zero.\r\n */\r\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return mod(a, b, \"SafeMath: modulo by zero\");\r\n }\r\n\r\n /**\r\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n * Reverts with custom message when dividing by zero.\r\n *\r\n * Counterpart to Solidity\u0027s `%` operator. This function uses a `revert`\r\n * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n * invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n * - The divisor cannot be zero.\r\n *\r\n * _Available since v2.4.0._\r\n */\r\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n require(b != 0, errorMessage);\r\n return a % b;\r\n }\r\n}"},"ZildFinance.sol":{"content":"pragma solidity 0.5.4;\r\n\r\nimport \u0027SafeMath.sol\u0027;\r\nimport \u0027Ownable.sol\u0027;\r\nimport \u0027IERC20.sol\u0027;\r\n\r\ncontract ZildFinanceCoin is Ownable, IERC20 {\r\n\r\n using SafeMath for uint256;\r\n\r\n string public constant name = \u0027Zild Finance Coin\u0027;\r\n string public constant symbol = \u0027Zild\u0027;\r\n uint8 public constant decimals = 18;\r\n uint256 public totalSupply = 9980 * 10000 * 10 ** uint256(decimals);\r\n uint256 public allowBurn = 2100 * 10000 * 10 ** uint256(decimals);\r\n uint256 public tokenDestroyed;\r\n\t\r\n uint256 public constant FounderAllocation = 1497 * 10000 * 10 ** uint256(decimals);\r\n uint256 public constant FounderLockupAmount = 998 * 10000 * 10 ** uint256(decimals);\r\n uint256 public constant FounderLockupCliff = 365 days;\r\n uint256 public constant FounderReleaseInterval = 30 days;\r\n uint256 public constant FounderReleaseAmount = 20.7916 * 10000 * 10 ** uint256(decimals);\r\n uint256 public constant MarketingAllocation = 349 * 10000 * 10 ** uint256(decimals);\r\n uint256 public constant FurnaceAllocation = 150 * 10000 * 10 ** uint256(decimals);\r\n\t\r\n address public founder = address(0);\r\n uint256 public founderLockupStartTime = 0;\r\n uint256 public founderReleasedAmount = 0;\r\n\r\n mapping (address =\u003e uint256) private _balances;\r\n mapping (address =\u003e mapping (address =\u003e uint256)) private _allowances; \r\n mapping (address =\u003e bool) public frozenAccount;\r\n\r\n event Transfer(address indexed from, address indexed to, uint256 value);\r\n event Approval(address indexed from, address indexed to, uint256 value);\r\n event ChangeFounder(address indexed previousFounder, address indexed newFounder);\r\n event SetMinter(address indexed minter);\r\n event SetMarketing(address indexed marketing);\r\n event SetFurnace(address indexed furnace);\t\r\n event Burn(address indexed _from, uint256 _tokenDestroyed, uint256 _timestamp);\r\n event FrozenFunds(address target, bool frozen);\r\n\t\r\n constructor(address _founder, address _marketing) public {\r\n require(_founder != address(0), \"ZildFinanceCoin: founder is the zero address\");\r\n require(_marketing != address(0), \"ZildFinanceCoin: operator is the zero address\");\r\n founder = _founder;\r\n founderLockupStartTime = block.timestamp;\r\n _balances[address(this)] = totalSupply;\r\n _transfer(address(this), _marketing, MarketingAllocation);\r\n }\r\n\r\n function release() public {\r\n uint256 currentTime = block.timestamp;\r\n uint256 cliffTime = founderLockupStartTime.add(FounderLockupCliff);\r\n if (currentTime \u003c cliffTime) return;\r\n if (founderReleasedAmount \u003e= FounderLockupAmount) return;\r\n uint256 month = currentTime.sub(cliffTime).div(FounderReleaseInterval);\r\n uint256 releaseAmount = month.mul(FounderReleaseAmount);\r\n if (releaseAmount \u003e FounderLockupAmount) releaseAmount = FounderLockupAmount;\r\n if (releaseAmount \u003c= founderReleasedAmount) return;\r\n uint256 amount = releaseAmount.sub(founderReleasedAmount);\r\n founderReleasedAmount = releaseAmount;\r\n _transfer(address(this), founder, amount);\r\n }\r\n\r\n function balanceOf(address account) public view returns (uint256) {\r\n return _balances[account];\r\n }\r\n\r\n function transfer(address to, uint256 amount) public returns (bool) {\r\n require(to != address(0), \"ERC20: tranfer to the zero address\");\r\n require(!frozenAccount[msg.sender]);\r\n require(!frozenAccount[to]);\r\n _transfer(msg.sender, to, amount);\r\n return true;\r\n }\r\n\t\r\n function burn(uint256 _value) public returns (bool){\r\n _burn(msg.sender, _value);\r\n return true;\r\n }\r\n\r\n function _burn(address _who, uint256 _burntAmount) internal {\r\n require (tokenDestroyed.add(_burntAmount) \u003c= allowBurn, \"ZildFinanceCoin: exceeded the maximum allowable burning amount\" );\r\n require(_balances[msg.sender] \u003e= _burntAmount \u0026\u0026 _burntAmount \u003e 0);\r\n _transfer(address(_who), address(0), _burntAmount);\r\n totalSupply = totalSupply.sub(_burntAmount);\r\n tokenDestroyed = tokenDestroyed.add(_burntAmount);\r\n emit Burn(_who, _burntAmount, block.timestamp);\r\n }\r\n\t\r\n\r\n function allowance(address from, address to) public view returns (uint256) {\r\n return _allowances[from][to];\r\n }\r\n\r\n function approve(address to, uint256 amount) public returns (bool) {\r\n _approve(msg.sender, to, amount);\r\n return true;\r\n }\r\n\r\n function transferFrom(address from, address to, uint256 amount) public returns (bool) {\r\n uint256 remaining = _allowances[from][msg.sender].sub(amount, \"ERC20: transfer amount exceeds allowance\");\r\n require(to != address(0), \"ERC20: tranfer to the zero address\");\r\n require(!frozenAccount[from]);\r\n require(!frozenAccount[to]);\r\n require(!frozenAccount[msg.sender]);\r\n _transfer(from, to, amount);\r\n _approve(from, msg.sender, remaining);\r\n return true;\r\n }\r\n\r\n function _transfer(address from, address to, uint256 amount) private {\r\n require(from != address(0), \"ERC20: transfer from the zero address\");\r\n _balances[from] = _balances[from].sub(amount, \"ERC20: transfer amount exceeds balance\");\r\n _balances[to] = _balances[to].add(amount);\r\n emit Transfer(from, to, amount);\r\n }\r\n\r\n function _approve(address from, address to, uint256 amount) private {\r\n require(from != address(0), \"ERC20: approve from the zero address\");\r\n require(to != address(0), \"ERC20: approve to the zero address\");\r\n _allowances[from][to] = amount;\r\n emit Approval(from, to, amount);\r\n }\r\n\r\n function changeFounder(address _founder) public onlyOwner {\r\n require(_founder != address(0), \"ZildFinanceCoin: founder is the zero address\");\r\n emit ChangeFounder(founder, _founder);\r\n founder = _founder;\r\n }\r\n\r\n function setMinter(address minter) public onlyOwner {\r\n require(minter != address(0), \"ZildFinanceCoin: minter is the zero address\");\r\n require(_balances[minter] == 0, \"ZildFinanceCoin: minter has been initialized\");\r\n _transfer(address(this), minter, totalSupply.sub(FounderAllocation));\r\n emit SetMinter(minter);\r\n }\r\n\r\n function setFurnace(address furnace) public onlyOwner {\r\n require(furnace != address(0), \"ZildFinanceCoin: furnace is the zero address\");\r\n require(_balances[furnace] == 0, \"ZildFinanceCoin: furnace has been initialized\");\r\n _transfer(address(this), furnace, FurnaceAllocation);\r\n emit SetFurnace(furnace);\r\n }\r\n\t\r\n function freezeAccount(address _target, bool _bool) public onlyOwner {\r\n if (_target != address(0)) {\r\n frozenAccount[_target] = _bool;\r\n emit FrozenFunds(_target,_bool);\r\n }\r\n }\r\n\r\n}"}}