Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Eth | 15878185 | 809 days ago | IN | 0 ETH | 0.00033759 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15878185 | 809 days ago | 179.62267151 ETH | ||||
15467075 | 868 days ago | 0.00005 ETH | ||||
15441446 | 872 days ago | 0.002 ETH | ||||
15441446 | 872 days ago | 0.002 ETH | ||||
15441445 | 872 days ago | 0.002 ETH | ||||
15441435 | 872 days ago | 0.002 ETH | ||||
15421619 | 875 days ago | 0.00015 ETH | ||||
15415682 | 876 days ago | 0.07 ETH | ||||
15385823 | 881 days ago | 0.0185 ETH | ||||
15370282 | 883 days ago | 0.055 ETH | ||||
15331718 | 890 days ago | 0.0115 ETH | ||||
15252172 | 902 days ago | 0.25 ETH | ||||
15245657 | 903 days ago | 1 ETH | ||||
15240908 | 904 days ago | 0.0001 ETH | ||||
15239394 | 904 days ago | 0.145 ETH | ||||
15239390 | 904 days ago | 0.145 ETH | ||||
15239370 | 904 days ago | 0.97 ETH | ||||
15239309 | 904 days ago | 0.145 ETH | ||||
15239299 | 904 days ago | 0.145 ETH | ||||
15239297 | 904 days ago | 0.145 ETH | ||||
15239289 | 904 days ago | 0.145 ETH | ||||
15239276 | 904 days ago | 0.145 ETH | ||||
15239271 | 904 days ago | 0.145 ETH | ||||
15235055 | 905 days ago | 0.0001 ETH | ||||
15233039 | 905 days ago | 0.049 ETH |
Loading...
Loading
Contract Name:
DummyRewardDistributor
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; // stores daily trades // is minter of token, first interaction mints tokens and distributes tokens // gives prorata tokens to traders and exchange daily import '@openzeppelin/contracts/access/Ownable.sol'; interface ERC20 { function transfer(address to, uint256 amount) external returns (bool); function balanceOf(address) external returns (uint256); } contract DummyRewardDistributor is Ownable { address public trader; /// _time to start rewards constructor(address _trader, address _governance) { trader = _trader; _transferOwnership(_governance); } modifier onlyTrader() { require(msg.sender == trader); _; } // dummy function will be replaced with the correct contract once audits are done , refer here--> https://github.com/golom-protocol/contracts function addFee(address[2] memory addr, uint256 fee) public onlyTrader {} function withdrawTokens(address _token, address _to) external onlyOwner { ERC20(_token).transfer(_to, ERC20(_token).balanceOf(address(this))); } function withdrawEth(address payable _to) external onlyOwner { _to.transfer(address(this).balance); } fallback() external payable {} receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_trader","type":"address"},{"internalType":"address","name":"_governance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address[2]","name":"addr","type":"address[2]"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"addFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trader","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516106f73803806106f783398101604081905261002f916100cf565b61003833610063565b600180546001600160a01b0319166001600160a01b03841617905561005c81610063565b5050610102565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100ca57600080fd5b919050565b600080604083850312156100e257600080fd5b6100eb836100b3565b91506100f9602084016100b3565b90509250929050565b6105e6806101116000396000f3fe60806040526004361061006e5760003560e01c8063715018a61161004b578063715018a6146100f35780638da5cb5b14610108578063a522ad2514610126578063f2fde38b1461014657005b80631758078b1461007757806325e16063146100b35780634e2a875c146100d357005b3661007557005b005b34801561008357600080fd5b50600154610097906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100bf57600080fd5b506100756100ce366004610431565b610166565b3480156100df57600080fd5b506100756100ee36600461047b565b6101d2565b3480156100ff57600080fd5b506100756101e9565b34801561011457600080fd5b506000546001600160a01b0316610097565b34801561013257600080fd5b50610075610141366004610507565b61021f565b34801561015257600080fd5b50610075610161366004610431565b610331565b6000546001600160a01b031633146101995760405162461bcd60e51b815260040161019090610540565b60405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156101ce573d6000803e3d6000fd5b5050565b6001546001600160a01b031633146101ce57600080fd5b6000546001600160a01b031633146102135760405162461bcd60e51b815260040161019090610540565b61021d60006103cc565b565b6000546001600160a01b031633146102495760405162461bcd60e51b815260040161019090610540565b6040516370a0823160e01b81523060048201526001600160a01b0383169063a9059cbb90839083906370a08231906024016020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd9190610575565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032c919061058e565b505050565b6000546001600160a01b0316331461035b5760405162461bcd60e51b815260040161019090610540565b6001600160a01b0381166103c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610190565b6103c9816103cc565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103c957600080fd5b60006020828403121561044357600080fd5b813561044e8161041c565b9392505050565b634e487b7160e01b600052604160045260246000fd5b80356104768161041c565b919050565b6000806060838503121561048e57600080fd5b83601f84011261049d57600080fd5b6040516040810181811067ffffffffffffffff821117156104c0576104c0610455565b80604052508060408501868111156104d757600080fd5b855b818110156104f8576104ea8161046b565b8352602092830192016104d9565b50919691359550909350505050565b6000806040838503121561051a57600080fd5b82356105258161041c565b915060208301356105358161041c565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561058757600080fd5b5051919050565b6000602082840312156105a057600080fd5b8151801515811461044e57600080fdfea2646970667358221220b4ecdbdf888047aab49dc5b94ab6ee6a85d605a967830be7854dd84242710f4a64736f6c634300080b0033000000000000000000000000d29e1fcb07e55eaceb122c63f8e50441c6acedc9000000000000000000000000552d2e380987c8b3c096d9069ea1bb8df432b5fc
Deployed Bytecode
0x60806040526004361061006e5760003560e01c8063715018a61161004b578063715018a6146100f35780638da5cb5b14610108578063a522ad2514610126578063f2fde38b1461014657005b80631758078b1461007757806325e16063146100b35780634e2a875c146100d357005b3661007557005b005b34801561008357600080fd5b50600154610097906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100bf57600080fd5b506100756100ce366004610431565b610166565b3480156100df57600080fd5b506100756100ee36600461047b565b6101d2565b3480156100ff57600080fd5b506100756101e9565b34801561011457600080fd5b506000546001600160a01b0316610097565b34801561013257600080fd5b50610075610141366004610507565b61021f565b34801561015257600080fd5b50610075610161366004610431565b610331565b6000546001600160a01b031633146101995760405162461bcd60e51b815260040161019090610540565b60405180910390fd5b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156101ce573d6000803e3d6000fd5b5050565b6001546001600160a01b031633146101ce57600080fd5b6000546001600160a01b031633146102135760405162461bcd60e51b815260040161019090610540565b61021d60006103cc565b565b6000546001600160a01b031633146102495760405162461bcd60e51b815260040161019090610540565b6040516370a0823160e01b81523060048201526001600160a01b0383169063a9059cbb90839083906370a08231906024016020604051808303816000875af1158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd9190610575565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032c919061058e565b505050565b6000546001600160a01b0316331461035b5760405162461bcd60e51b815260040161019090610540565b6001600160a01b0381166103c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610190565b6103c9816103cc565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146103c957600080fd5b60006020828403121561044357600080fd5b813561044e8161041c565b9392505050565b634e487b7160e01b600052604160045260246000fd5b80356104768161041c565b919050565b6000806060838503121561048e57600080fd5b83601f84011261049d57600080fd5b6040516040810181811067ffffffffffffffff821117156104c0576104c0610455565b80604052508060408501868111156104d757600080fd5b855b818110156104f8576104ea8161046b565b8352602092830192016104d9565b50919691359550909350505050565b6000806040838503121561051a57600080fd5b82356105258161041c565b915060208301356105358161041c565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561058757600080fd5b5051919050565b6000602082840312156105a057600080fd5b8151801515811461044e57600080fdfea2646970667358221220b4ecdbdf888047aab49dc5b94ab6ee6a85d605a967830be7854dd84242710f4a64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d29e1fcb07e55eaceb122c63f8e50441c6acedc9000000000000000000000000552d2e380987c8b3c096d9069ea1bb8df432b5fc
-----Decoded View---------------
Arg [0] : _trader (address): 0xd29e1FcB07e55eaceB122C63F8E50441C6acEdc9
Arg [1] : _governance (address): 0x552d2E380987C8B3C096d9069EA1bb8df432b5Fc
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d29e1fcb07e55eaceb122c63f8e50441c6acedc9
Arg [1] : 000000000000000000000000552d2e380987c8b3c096d9069ea1bb8df432b5fc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.