Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 7,005 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 21004651 | 111 days ago | IN | 0 ETH | 0.00035507 | ||||
Claim | 21004397 | 111 days ago | IN | 0 ETH | 0.00032257 | ||||
Claim | 20997639 | 112 days ago | IN | 0 ETH | 0.0004112 | ||||
Claim | 20997332 | 112 days ago | IN | 0 ETH | 0.00034717 | ||||
Claim | 20977162 | 115 days ago | IN | 0 ETH | 0.00085968 | ||||
Claim | 20970157 | 116 days ago | IN | 0 ETH | 0.00095096 | ||||
Claim | 20961088 | 117 days ago | IN | 0 ETH | 0.0003455 | ||||
Claim | 20951694 | 118 days ago | IN | 0 ETH | 0.00039034 | ||||
Claim | 20946846 | 119 days ago | IN | 0 ETH | 0.0003839 | ||||
Claim | 20946673 | 119 days ago | IN | 0 ETH | 0.00054344 | ||||
Claim | 20946338 | 119 days ago | IN | 0 ETH | 0.00062279 | ||||
Claim | 20933476 | 121 days ago | IN | 0 ETH | 0.00043054 | ||||
Claim | 20933343 | 121 days ago | IN | 0 ETH | 0.00044165 | ||||
Claim | 20926111 | 122 days ago | IN | 0 ETH | 0.00049084 | ||||
Claim | 20897228 | 126 days ago | IN | 0 ETH | 0.00022272 | ||||
Claim | 20846202 | 133 days ago | IN | 0 ETH | 0.00036073 | ||||
Claim | 20832000 | 135 days ago | IN | 0 ETH | 0.00080875 | ||||
Claim | 20759252 | 145 days ago | IN | 0 ETH | 0.0002034 | ||||
Claim | 20758878 | 145 days ago | IN | 0 ETH | 0.00011653 | ||||
Claim | 20753874 | 146 days ago | IN | 0 ETH | 0.00008768 | ||||
Claim | 20753458 | 146 days ago | IN | 0 ETH | 0.00004161 | ||||
Claim | 20753097 | 146 days ago | IN | 0 ETH | 0.00006126 | ||||
Claim | 20748109 | 147 days ago | IN | 0 ETH | 0.00008107 | ||||
Claim | 20747739 | 147 days ago | IN | 0 ETH | 0.00010158 | ||||
Claim | 20746043 | 147 days ago | IN | 0 ETH | 0.00014975 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21004651 | 111 days ago | 0 ETH | |||||
21004397 | 111 days ago | 0 ETH | |||||
20997639 | 112 days ago | 0 ETH | |||||
20997332 | 112 days ago | 0 ETH | |||||
20977162 | 115 days ago | 0 ETH | |||||
20970157 | 116 days ago | 0 ETH | |||||
20961088 | 117 days ago | 0 ETH | |||||
20951694 | 118 days ago | 0 ETH | |||||
20946846 | 119 days ago | 0 ETH | |||||
20946673 | 119 days ago | 0 ETH | |||||
20946338 | 119 days ago | 0 ETH | |||||
20933476 | 121 days ago | 0 ETH | |||||
20933343 | 121 days ago | 0 ETH | |||||
20926111 | 122 days ago | 0 ETH | |||||
20897228 | 126 days ago | 0 ETH | |||||
20846202 | 133 days ago | 0 ETH | |||||
20832000 | 135 days ago | 0 ETH | |||||
20759252 | 145 days ago | 0 ETH | |||||
20758878 | 145 days ago | 0 ETH | |||||
20753874 | 146 days ago | 0 ETH | |||||
20753458 | 146 days ago | 0 ETH | |||||
20753097 | 146 days ago | 0 ETH | |||||
20748109 | 147 days ago | 0 ETH | |||||
20747739 | 147 days ago | 0 ETH | |||||
20746043 | 147 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DividendRecords
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 300 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity >=0.5.16; pragma experimental ABIEncoderV2; import "./EIP20Interface.sol"; contract DividendRecords{ /// @notice ESG token EIP20Interface public esg; /// @notice Emitted when ESG is claimed event EsgClaimed(address account, uint totalAmount); address private _marketingWalletAddress; uint256 public _feeRate = 5; mapping (address => uint256) public bonuslist; address public owner; constructor(address esgAddress, address _marketingWallet) public { owner = msg.sender; _marketingWalletAddress = _marketingWallet; esg = EIP20Interface(esgAddress); } modifier onlyOwner() { require(msg.sender == owner, "Only owner can call this function."); _; } function setFeeRate(uint256 _fee) onlyOwner public { require(_fee > 0, "Fee must be positive"); _feeRate = _fee; } function setEsgAmount(address[] memory _to, uint256[] memory _amount, uint256 _totalAmount) onlyOwner public returns (bool) { require( _to.length == _amount.length, "The length of the two arrays must be the same" ); for (uint256 i = 0; i < _to.length; i++) { bonuslist[_to[i]] += _amount[i]; } uint256 fee = _totalAmount * _feeRate / 100; bonuslist[_marketingWalletAddress] += fee; return true; } function claim() public returns (bool) { require(bonuslist[msg.sender] > 0, "No locked amount."); uint256 totalAmount = bonuslist[msg.sender]; bonuslist[msg.sender] = 0; esg.transfer(msg.sender, totalAmount); emit EsgClaimed (msg.sender, totalAmount); return true; } function transferOwnership(address newOwner) onlyOwner public { if (newOwner != address(0)) { owner = newOwner; } } }
pragma solidity ^0.5.16; /** * @title ERC 20 Token Standard Interface * https://eips.ethereum.org/EIPS/eip-20 */ interface EIP20Interface { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); /** * @notice Get the total number of tokens in circulation * @return The supply of tokens */ function totalSupply() external view returns (uint256); /** * @notice Gets the balance of the specified address * @param owner The address from which the balance will be retrieved * @return The balance */ function balanceOf(address owner) external view returns (uint256 balance); /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external returns (bool success); /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external returns (bool success); /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool success); /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256 remaining); event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 300 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"esgAddress","type":"address"},{"internalType":"address","name":"_marketingWallet","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"EsgClaimed","type":"event"},{"constant":true,"inputs":[],"name":"_feeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bonuslist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"esg","outputs":[{"internalType":"contract EIP20Interface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"uint256","name":"_totalAmount","type":"uint256"}],"name":"setEsgAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFeeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600560025534801561001557600080fd5b506040516109b63803806109b683398101604081905261003491610084565b600480546001600160a01b03199081163317909155600180546001600160a01b03938416908316179055600080549390921692169190911790556100e6565b805161007e816100cf565b92915050565b6000806040838503121561009757600080fd5b60006100a38585610073565b92505060206100b485828601610073565b9150509250929050565b60006001600160a01b03821661007e565b6100d8816100be565b81146100e357600080fd5b50565b6108c1806100f56000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100f3578063b2131f7d14610108578063cac0652214610110578063f2fde38b1461012557610088565b806345596e2e1461008d5780634e71d92d146100a25780635cb209f6146100c0578063640d64e1146100d3575b600080fd5b6100a061009b3660046105f9565b610138565b005b6100aa610190565b6040516100b7919061076c565b60405180910390f35b6100aa6100ce36600461055f565b610296565b6100e66100e1366004610539565b610388565b6040516100b791906107c8565b6100fb61039a565b6040516100b79190610743565b6100e66103a9565b6101186103af565b6040516100b7919061077a565b6100a0610133366004610539565b6103be565b6004546001600160a01b0316331461016b5760405162461bcd60e51b815260040161016290610788565b60405180910390fd5b6000811161018b5760405162461bcd60e51b8152600401610162906107a8565b600255565b336000908152600360205260408120546101bc5760405162461bcd60e51b8152600401610162906107b8565b336000818152600360205260408082208054908390559154905163a9059cbb60e01b815291926001600160a01b039091169163a9059cbb91610202918590600401610751565b602060405180830381600087803b15801561021c57600080fd5b505af1158015610230573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061025491908101906105db565b507f33fc5cbbab043468d397f2d10aea907885d46e24cdc8758828f08deb1738cf143382604051610286929190610751565b60405180910390a1600191505090565b6004546000906001600160a01b031633146102c35760405162461bcd60e51b815260040161016290610788565b82518451146102e45760405162461bcd60e51b815260040161016290610798565b60005b8451811015610346578381815181106102fc57fe5b60200260200101516003600087848151811061031457fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805490910190556001016102e7565b506000606460025484028161035757fe5b600180546001600160a01b0316600090815260036020526040902080549390920490920190559150505b9392505050565b60036020526000908152604090205481565b6004546001600160a01b031681565b60025481565b6000546001600160a01b031681565b6004546001600160a01b031633146103e85760405162461bcd60e51b815260040161016290610788565b6001600160a01b03811615610420576004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383161790555b50565b803561042e81610858565b92915050565b600082601f83011261044557600080fd5b8135610458610453826107fd565b6107d6565b9150818183526020840193506020810190508385602084028201111561047d57600080fd5b60005b838110156104a957816104938882610423565b8452506020928301929190910190600101610480565b5050505092915050565b600082601f8301126104c457600080fd5b81356104d2610453826107fd565b915081818352602084019350602081019050838560208402820111156104f757600080fd5b60005b838110156104a9578161050d888261052e565b84525060209283019291909101906001016104fa565b805161042e8161086c565b803561042e81610875565b60006020828403121561054b57600080fd5b60006105578484610423565b949350505050565b60008060006060848603121561057457600080fd5b833567ffffffffffffffff81111561058b57600080fd5b61059786828701610434565b935050602084013567ffffffffffffffff8111156105b457600080fd5b6105c0868287016104b3565b92505060406105d18682870161052e565b9150509250925092565b6000602082840312156105ed57600080fd5b60006105578484610523565b60006020828403121561060b57600080fd5b6000610557848461052e565b61062081610846565b82525050565b61062081610827565b61062081610832565b6106208161084d565b600061064e60228361081e565b7f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f815261371760f11b602082015260400192915050565b6000610692602d8361081e565b7f546865206c656e677468206f66207468652074776f20617272617973206d757381526c74206265207468652073616d6560981b602082015260400192915050565b60006106e160148361081e565b7f466565206d75737420626520706f736974697665000000000000000000000000815260200192915050565b600061071a60118361081e565b702737903637b1b5b2b21030b6b7bab73a1760791b815260200192915050565b61062081610843565b6020810161042e8284610626565b6040810161075f8285610617565b610381602083018461073a565b6020810161042e828461062f565b6020810161042e8284610638565b6020808252810161042e81610641565b6020808252810161042e81610685565b6020808252810161042e816106d4565b6020808252810161042e8161070d565b6020810161042e828461073a565b60405181810167ffffffffffffffff811182821017156107f557600080fd5b604052919050565b600067ffffffffffffffff82111561081457600080fd5b5060209081020190565b90815260200190565b600061042e82610837565b151590565b6001600160a01b031690565b90565b600061042e825b600061042e82610827565b61086181610827565b811461042057600080fd5b61086181610832565b6108618161084356fea365627a7a723158202424748fa7b5a899271d12e21ff56ffeb674e2f2975516800e36ee530eeab73e6c6578706572696d656e74616cf564736f6c6343000510004000000000000000000000000020cd2e7ec8f5d8b337fe46a4f565ccef1561b9a9000000000000000000000000aac08d7cf5e7d9b0418e841d1e68cb5a2904a08c
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100f3578063b2131f7d14610108578063cac0652214610110578063f2fde38b1461012557610088565b806345596e2e1461008d5780634e71d92d146100a25780635cb209f6146100c0578063640d64e1146100d3575b600080fd5b6100a061009b3660046105f9565b610138565b005b6100aa610190565b6040516100b7919061076c565b60405180910390f35b6100aa6100ce36600461055f565b610296565b6100e66100e1366004610539565b610388565b6040516100b791906107c8565b6100fb61039a565b6040516100b79190610743565b6100e66103a9565b6101186103af565b6040516100b7919061077a565b6100a0610133366004610539565b6103be565b6004546001600160a01b0316331461016b5760405162461bcd60e51b815260040161016290610788565b60405180910390fd5b6000811161018b5760405162461bcd60e51b8152600401610162906107a8565b600255565b336000908152600360205260408120546101bc5760405162461bcd60e51b8152600401610162906107b8565b336000818152600360205260408082208054908390559154905163a9059cbb60e01b815291926001600160a01b039091169163a9059cbb91610202918590600401610751565b602060405180830381600087803b15801561021c57600080fd5b505af1158015610230573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061025491908101906105db565b507f33fc5cbbab043468d397f2d10aea907885d46e24cdc8758828f08deb1738cf143382604051610286929190610751565b60405180910390a1600191505090565b6004546000906001600160a01b031633146102c35760405162461bcd60e51b815260040161016290610788565b82518451146102e45760405162461bcd60e51b815260040161016290610798565b60005b8451811015610346578381815181106102fc57fe5b60200260200101516003600087848151811061031457fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805490910190556001016102e7565b506000606460025484028161035757fe5b600180546001600160a01b0316600090815260036020526040902080549390920490920190559150505b9392505050565b60036020526000908152604090205481565b6004546001600160a01b031681565b60025481565b6000546001600160a01b031681565b6004546001600160a01b031633146103e85760405162461bcd60e51b815260040161016290610788565b6001600160a01b03811615610420576004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383161790555b50565b803561042e81610858565b92915050565b600082601f83011261044557600080fd5b8135610458610453826107fd565b6107d6565b9150818183526020840193506020810190508385602084028201111561047d57600080fd5b60005b838110156104a957816104938882610423565b8452506020928301929190910190600101610480565b5050505092915050565b600082601f8301126104c457600080fd5b81356104d2610453826107fd565b915081818352602084019350602081019050838560208402820111156104f757600080fd5b60005b838110156104a9578161050d888261052e565b84525060209283019291909101906001016104fa565b805161042e8161086c565b803561042e81610875565b60006020828403121561054b57600080fd5b60006105578484610423565b949350505050565b60008060006060848603121561057457600080fd5b833567ffffffffffffffff81111561058b57600080fd5b61059786828701610434565b935050602084013567ffffffffffffffff8111156105b457600080fd5b6105c0868287016104b3565b92505060406105d18682870161052e565b9150509250925092565b6000602082840312156105ed57600080fd5b60006105578484610523565b60006020828403121561060b57600080fd5b6000610557848461052e565b61062081610846565b82525050565b61062081610827565b61062081610832565b6106208161084d565b600061064e60228361081e565b7f4f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f815261371760f11b602082015260400192915050565b6000610692602d8361081e565b7f546865206c656e677468206f66207468652074776f20617272617973206d757381526c74206265207468652073616d6560981b602082015260400192915050565b60006106e160148361081e565b7f466565206d75737420626520706f736974697665000000000000000000000000815260200192915050565b600061071a60118361081e565b702737903637b1b5b2b21030b6b7bab73a1760791b815260200192915050565b61062081610843565b6020810161042e8284610626565b6040810161075f8285610617565b610381602083018461073a565b6020810161042e828461062f565b6020810161042e8284610638565b6020808252810161042e81610641565b6020808252810161042e81610685565b6020808252810161042e816106d4565b6020808252810161042e8161070d565b6020810161042e828461073a565b60405181810167ffffffffffffffff811182821017156107f557600080fd5b604052919050565b600067ffffffffffffffff82111561081457600080fd5b5060209081020190565b90815260200190565b600061042e82610837565b151590565b6001600160a01b031690565b90565b600061042e825b600061042e82610827565b61086181610827565b811461042057600080fd5b61086181610832565b6108618161084356fea365627a7a723158202424748fa7b5a899271d12e21ff56ffeb674e2f2975516800e36ee530eeab73e6c6578706572696d656e74616cf564736f6c63430005100040
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000020cd2e7ec8f5d8b337fe46a4f565ccef1561b9a9000000000000000000000000aac08d7cf5e7d9b0418e841d1e68cb5a2904a08c
-----Decoded View---------------
Arg [0] : esgAddress (address): 0x20cD2E7Ec8F5d8b337fe46a4F565Ccef1561b9a9
Arg [1] : _marketingWallet (address): 0xaAc08D7CF5e7D9b0418e841d1E68cb5a2904A08C
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000020cd2e7ec8f5d8b337fe46a4f565ccef1561b9a9
Arg [1] : 000000000000000000000000aac08d7cf5e7d9b0418e841d1e68cb5a2904a08c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.