ERC-20
Overview
Max Total Supply
8,511,971.677936621697742412 esZTH
Holders
94
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
3,461,965.622325032260916603 esZTHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ESZTH
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./interfaces/IMint.sol"; import "./NonERC20.sol"; /** * @title Zenith ETH */ contract ESZTH is NonERC20("Zenith Escrowed Token", "esZTH", 18) { uint256 private constant _SLEEP_TIMES = 3 days; uint256 private constant _MAX_LOCK_TIMES = 14 days; address private constant _DEAD = 0x000000000000000000000000000000000000dEaD; address public immutable MASTERCHEF; address public immutable TREASURY; address public immutable ZTHTOKEN; LockInfo[] private _lockPositions; struct LockInfo { address holder; uint256 amount; uint256 unlockTime; } constructor(address masterChef, address treasury, address zthToken) { if (masterChef == address(0)) revert AddressIsZero(); if (treasury == address(0)) revert AddressIsZero(); if (zthToken == address(0)) revert AddressIsZero(); MASTERCHEF = masterChef; TREASURY = treasury; ZTHTOKEN = zthToken; } function mint(address to, uint256 amount) external onlyMasterChef { _mint(to, amount); } /** * @notice Swap ESZTH to ZTH * @dev Early redemption will result in the loss of the corresponding ZTH share, * which 50% will be burned and other 50% belonging to the team treasury. */ function swap(uint256 amount, uint256 lockTimes) external { _burn(msg.sender, amount); uint256 amountOut = getAmountOut(amount, lockTimes); uint256 loss; unchecked { loss = amount - amountOut; } // mint ZTH to treasury if (loss > 0) { IMint(ZTHTOKEN).mint(_DEAD, loss / 2); IMint(ZTHTOKEN).mint(TREASURY, loss / 2); } uint256 lid = _lockPositions.length; unchecked { _lockPositions.push(LockInfo(msg.sender, amountOut, block.timestamp + lockTimes)); } emit Swap(msg.sender, lid, amount, lockTimes, amountOut); } function redeem(uint256 lockId) public { LockInfo storage lockInfo = _lockPositions[lockId]; if (lockInfo.unlockTime > block.timestamp) revert UnlockTimeNotArrived(); uint256 amount = lockInfo.amount; if (amount == 0) revert LockedAmountIsZero(); // update state lockInfo.amount = 0; // mint ZTH to holder IMint(ZTHTOKEN).mint(lockInfo.holder, amount); emit Redeem(lockInfo.holder, lockId, amount); } function batchRedeem(uint256[] calldata lockIds) external { for (uint256 i = 0; i < lockIds.length; i++) { redeem(lockIds[i]); } } function getAmountOut(uint256 amount, uint256 lockTimes) public pure returns (uint256) { if (lockTimes < _SLEEP_TIMES || lockTimes > _MAX_LOCK_TIMES) revert InvalidLockTimes(); // 20% of the amount will be locked for 3 days // 100% of the amount will be locked for 14 days // amount= 20%+ 80%*(lockTimes-3days)/(14days-3days) unchecked { return (amount * 2 + amount * 8 * (lockTimes - _SLEEP_TIMES) / (_MAX_LOCK_TIMES - _SLEEP_TIMES)) / 10; } } function getLockPosition(uint256 lockId) external view returns (LockInfo memory) { return _lockPositions[lockId]; } modifier onlyMasterChef() { if (msg.sender != MASTERCHEF) revert OnlyCallByMasterChef(); _; } event Swap(address indexed holder, uint256 lockId, uint256 amount, uint256 lockTimes, uint256 amountOut); event Redeem(address indexed holder, uint256 lockId, uint256 amount); error AddressIsZero(); error OnlyCallByMasterChef(); error InvalidLockTimes(); error LockedAmountIsZero(); error UnlockTimeNotArrived(); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IMint { function mint(address to, uint256 amount) external; }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; abstract contract NonERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "@solmate/=lib/solmate/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 20000 }, "metadata": { "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"masterChef","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"address","name":"zthToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressIsZero","type":"error"},{"inputs":[],"name":"InvalidLockTimes","type":"error"},{"inputs":[],"name":"LockedAmountIsZero","type":"error"},{"inputs":[],"name":"OnlyCallByMasterChef","type":"error"},{"inputs":[],"name":"UnlockTimeNotArrived","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTimes","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MASTERCHEF","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZTHTOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"lockIds","type":"uint256[]"}],"name":"batchRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockTimes","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"getLockPosition","outputs":[{"components":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"internalType":"struct ESZTH.LockInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockTimes","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b50604051620011af380380620011af833981016040819052620000359162000167565b6040518060400160405280601581526020017f5a656e69746820457363726f77656420546f6b656e0000000000000000000000815250604051806040016040528060058152602001640cae6b4a8960db1b815250601282600090816200009c919062000256565b506001620000ab838262000256565b5060ff1660805250506001600160a01b038316620000dc5760405163867915ab60e01b815260040160405180910390fd5b6001600160a01b038216620001045760405163867915ab60e01b815260040160405180910390fd5b6001600160a01b0381166200012c5760405163867915ab60e01b815260040160405180910390fd5b6001600160a01b0392831660a05290821660c0521660e05262000322565b80516001600160a01b03811681146200016257600080fd5b919050565b6000806000606084860312156200017d57600080fd5b62000188846200014a565b925062000198602085016200014a565b9150620001a8604085016200014a565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001dc57607f821691505b602082108103620001fd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025157600081815260208120601f850160051c810160208610156200022c5750805b601f850160051c820191505b818110156200024d5782815560010162000238565b5050505b505050565b81516001600160401b03811115620002725762000272620001b1565b6200028a81620002838454620001c7565b8462000203565b602080601f831160018114620002c25760008415620002a95750858301515b600019600386901b1c1916600185901b1785556200024d565b600085815260208120601f198616915b82811015620002f357888601518255948401946001909101908401620002d2565b5085821015620003125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610e306200037f600039600081816101290152818161058b015281816106430152610961015260008181610175015261067f0152600081816102a901526103710152600061019c0152610e306000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637cabb7cf1161008c578063cace3d0611610066578063cace3d0614610233578063d96073cf1461027e578063db006a7514610291578063e3692c36146102a457600080fd5b80637cabb7cf1461020557806395d89b4114610218578063b8c461cd1461022057600080fd5b80632d2c5565116100c85780632d2c556514610170578063313ce5671461019757806340c10f19146101d057806370a08231146101e557600080fd5b806306fdde03146100ef57806318160ddd1461010d5780632bda38f214610124575b600080fd5b6100f76102cb565b6040516101049190610b1f565b60405180910390f35b61011660025481565b604051908152602001610104565b61014b7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610104565b61014b7f000000000000000000000000000000000000000000000000000000000000000081565b6101be7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610104565b6101e36101de366004610bb4565b610359565b005b6101166101f3366004610bde565b60036020526000908152604090205481565b610116610213366004610c00565b6103d6565b6100f761045f565b6101e361022e366004610c22565b61046c565b610246610241366004610c97565b6104af565b60408051825173ffffffffffffffffffffffffffffffffffffffff168152602080840151908201529181015190820152606001610104565b6101e361028c366004610c00565b610552565b6101e361029f366004610c97565b610869565b61014b7f000000000000000000000000000000000000000000000000000000000000000081565b600080546102d890610cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461030490610cb0565b80156103515780601f1061032657610100808354040283529160200191610351565b820191906000526020600020905b81548152906001019060200180831161033457829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103c8576040517f21d0a90c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103d28282610a18565b5050565b60006203f4808210806103eb57506212750082115b15610422576040517fc5ff450800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600a620e80807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0b8083018402600802046002840201045b92915050565b600180546102d890610cb0565b60005b818110156104aa5761049883838381811061048c5761048c610d03565b90506020020135610869565b806104a281610d61565b91505061046f565b505050565b6104e96040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b600482815481106104fc576104fc610d03565b6000918252602091829020604080516060810182526003909302909101805473ffffffffffffffffffffffffffffffffffffffff1683526001810154938301939093526002909201549181019190915292915050565b61055c3383610a91565b600061056883836103d6565b905080830383821461072f5773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166340c10f1961dead6105be600285610d99565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561062957600080fd5b505af115801561063d573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f197f00000000000000000000000000000000000000000000000000000000000000006002846106ab9190610d99565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561071657600080fd5b505af115801561072a573d6000803e3d6000fd5b505050505b600480546040805160608082018352338083526020808401898152428b0185870190815260018801895560009890985293517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6003880290810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9093169290921790915593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d90930192909255825184815294850189905291840187905290830185905290917f49926bbebe8474393f434dfa4f78694c0923efa07d19f2284518bfabd06eb7379060800160405180910390a25050505050565b60006004828154811061087e5761087e610d03565b9060005260206000209060030201905042816002015411156108cc576040517fd8db25b000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001810154600081900361090c576040517f7d35404b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600183015581546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018390527f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f1990604401600060405180830381600087803b1580156109a757600080fd5b505af11580156109bb573d6000803e3d6000fd5b50508354604080518781526020810186905273ffffffffffffffffffffffffffffffffffffffff90921693507fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a92992500160405180910390a2505050565b8060026000828254610a2a9190610dd4565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054839290610ac6908490610de7565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a85565b600060208083528351808285015260005b81811015610b4c57858101830151858201604001528201610b30565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610baf57600080fd5b919050565b60008060408385031215610bc757600080fd5b610bd083610b8b565b946020939093013593505050565b600060208284031215610bf057600080fd5b610bf982610b8b565b9392505050565b60008060408385031215610c1357600080fd5b50508035926020909101359150565b60008060208385031215610c3557600080fd5b823567ffffffffffffffff80821115610c4d57600080fd5b818501915085601f830112610c6157600080fd5b813581811115610c7057600080fd5b8660208260051b8501011115610c8557600080fd5b60209290920196919550909350505050565b600060208284031215610ca957600080fd5b5035919050565b600181811c90821680610cc457607f821691505b602082108103610cfd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610d9257610d92610d32565b5060010190565b600082610dcf577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082018082111561045957610459610d32565b8181038181111561045957610459610d3256fea2646970667358221220677312d9f40177c01114f8a276a600d327f9ae23859166ce11392ee3f21de9b864736f6c63430008130033000000000000000000000000b9e7008fa856d66680bee9e0a24da407d9d7fad5000000000000000000000000648f3ec98da4de19b92598cf384662d494d881ab00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80637cabb7cf1161008c578063cace3d0611610066578063cace3d0614610233578063d96073cf1461027e578063db006a7514610291578063e3692c36146102a457600080fd5b80637cabb7cf1461020557806395d89b4114610218578063b8c461cd1461022057600080fd5b80632d2c5565116100c85780632d2c556514610170578063313ce5671461019757806340c10f19146101d057806370a08231146101e557600080fd5b806306fdde03146100ef57806318160ddd1461010d5780632bda38f214610124575b600080fd5b6100f76102cb565b6040516101049190610b1f565b60405180910390f35b61011660025481565b604051908152602001610104565b61014b7f00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610104565b61014b7f000000000000000000000000648f3ec98da4de19b92598cf384662d494d881ab81565b6101be7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610104565b6101e36101de366004610bb4565b610359565b005b6101166101f3366004610bde565b60036020526000908152604090205481565b610116610213366004610c00565b6103d6565b6100f761045f565b6101e361022e366004610c22565b61046c565b610246610241366004610c97565b6104af565b60408051825173ffffffffffffffffffffffffffffffffffffffff168152602080840151908201529181015190820152606001610104565b6101e361028c366004610c00565b610552565b6101e361029f366004610c97565b610869565b61014b7f000000000000000000000000b9e7008fa856d66680bee9e0a24da407d9d7fad581565b600080546102d890610cb0565b80601f016020809104026020016040519081016040528092919081815260200182805461030490610cb0565b80156103515780601f1061032657610100808354040283529160200191610351565b820191906000526020600020905b81548152906001019060200180831161033457829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000b9e7008fa856d66680bee9e0a24da407d9d7fad516146103c8576040517f21d0a90c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103d28282610a18565b5050565b60006203f4808210806103eb57506212750082115b15610422576040517fc5ff450800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600a620e80807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0b8083018402600802046002840201045b92915050565b600180546102d890610cb0565b60005b818110156104aa5761049883838381811061048c5761048c610d03565b90506020020135610869565b806104a281610d61565b91505061046f565b505050565b6104e96040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b600482815481106104fc576104fc610d03565b6000918252602091829020604080516060810182526003909302909101805473ffffffffffffffffffffffffffffffffffffffff1683526001810154938301939093526002909201549181019190915292915050565b61055c3383610a91565b600061056883836103d6565b905080830383821461072f5773ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a0166340c10f1961dead6105be600285610d99565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561062957600080fd5b505af115801561063d573d6000803e3d6000fd5b505050507f00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a073ffffffffffffffffffffffffffffffffffffffff166340c10f197f000000000000000000000000648f3ec98da4de19b92598cf384662d494d881ab6002846106ab9190610d99565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561071657600080fd5b505af115801561072a573d6000803e3d6000fd5b505050505b600480546040805160608082018352338083526020808401898152428b0185870190815260018801895560009890985293517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b6003880290810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9093169290921790915593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d90930192909255825184815294850189905291840187905290830185905290917f49926bbebe8474393f434dfa4f78694c0923efa07d19f2284518bfabd06eb7379060800160405180910390a25050505050565b60006004828154811061087e5761087e610d03565b9060005260206000209060030201905042816002015411156108cc576040517fd8db25b000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001810154600081900361090c576040517f7d35404b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600183015581546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018390527f00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a0909116906340c10f1990604401600060405180830381600087803b1580156109a757600080fd5b505af11580156109bb573d6000803e3d6000fd5b50508354604080518781526020810186905273ffffffffffffffffffffffffffffffffffffffff90921693507fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a92992500160405180910390a2505050565b8060026000828254610a2a9190610dd4565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054839290610ac6908490610de7565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a85565b600060208083528351808285015260005b81811015610b4c57858101830151858201604001528201610b30565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610baf57600080fd5b919050565b60008060408385031215610bc757600080fd5b610bd083610b8b565b946020939093013593505050565b600060208284031215610bf057600080fd5b610bf982610b8b565b9392505050565b60008060408385031215610c1357600080fd5b50508035926020909101359150565b60008060208385031215610c3557600080fd5b823567ffffffffffffffff80821115610c4d57600080fd5b818501915085601f830112610c6157600080fd5b813581811115610c7057600080fd5b8660208260051b8501011115610c8557600080fd5b60209290920196919550909350505050565b600060208284031215610ca957600080fd5b5035919050565b600181811c90821680610cc457607f821691505b602082108103610cfd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610d9257610d92610d32565b5060010190565b600082610dcf577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8082018082111561045957610459610d32565b8181038181111561045957610459610d3256fea2646970667358221220677312d9f40177c01114f8a276a600d327f9ae23859166ce11392ee3f21de9b864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b9e7008fa856d66680bee9e0a24da407d9d7fad5000000000000000000000000648f3ec98da4de19b92598cf384662d494d881ab00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a0
-----Decoded View---------------
Arg [0] : masterChef (address): 0xb9e7008FA856D66680BeE9E0a24da407D9d7fAD5
Arg [1] : treasury (address): 0x648F3eC98da4De19b92598CF384662d494D881AB
Arg [2] : zthToken (address): 0x00000000A82B4758df44fcB124e26a9B441E59a0
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000b9e7008fa856d66680bee9e0a24da407d9d7fad5
Arg [1] : 000000000000000000000000648f3ec98da4de19b92598cf384662d494d881ab
Arg [2] : 00000000000000000000000000000000a82b4758df44fcb124e26a9b441e59a0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.