ETH Price: $3,284.10 (-0.84%)

Contract

0x7D4BCafAB4df9BCCDd59C2Bef74871FC677a9eB7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Eth158781852022-11-01 22:33:23809 days ago1667342003IN
0x7D4BCafA...C677a9eB7
0 ETH0.0003375910.96025557

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
158781852022-11-01 22:33:23809 days ago1667342003
0x7D4BCafA...C677a9eB7
179.62267151 ETH
154670752022-09-03 18:58:30868 days ago1662231510
0x7D4BCafA...C677a9eB7
0.00005 ETH
154414462022-08-30 16:38:41872 days ago1661877521
0x7D4BCafA...C677a9eB7
0.002 ETH
154414462022-08-30 16:38:41872 days ago1661877521
0x7D4BCafA...C677a9eB7
0.002 ETH
154414452022-08-30 16:37:50872 days ago1661877470
0x7D4BCafA...C677a9eB7
0.002 ETH
154414352022-08-30 16:35:35872 days ago1661877335
0x7D4BCafA...C677a9eB7
0.002 ETH
154216192022-08-27 12:39:56875 days ago1661603996
0x7D4BCafA...C677a9eB7
0.00015 ETH
154156822022-08-26 13:39:54876 days ago1661521194
0x7D4BCafA...C677a9eB7
0.07 ETH
153858232022-08-21 19:28:31881 days ago1661110111
0x7D4BCafA...C677a9eB7
0.0185 ETH
153702822022-08-19 8:35:37883 days ago1660898137
0x7D4BCafA...C677a9eB7
0.055 ETH
153317182022-08-13 6:02:19890 days ago1660370539
0x7D4BCafA...C677a9eB7
0.0115 ETH
152521722022-07-31 19:34:47902 days ago1659296087
0x7D4BCafA...C677a9eB7
0.25 ETH
152456572022-07-30 19:21:48903 days ago1659208908
0x7D4BCafA...C677a9eB7
1 ETH
152409082022-07-30 1:35:13904 days ago1659144913
0x7D4BCafA...C677a9eB7
0.0001 ETH
152393942022-07-29 19:57:34904 days ago1659124654
0x7D4BCafA...C677a9eB7
0.145 ETH
152393902022-07-29 19:56:08904 days ago1659124568
0x7D4BCafA...C677a9eB7
0.145 ETH
152393702022-07-29 19:49:12904 days ago1659124152
0x7D4BCafA...C677a9eB7
0.97 ETH
152393092022-07-29 19:34:18904 days ago1659123258
0x7D4BCafA...C677a9eB7
0.145 ETH
152392992022-07-29 19:32:23904 days ago1659123143
0x7D4BCafA...C677a9eB7
0.145 ETH
152392972022-07-29 19:31:55904 days ago1659123115
0x7D4BCafA...C677a9eB7
0.145 ETH
152392892022-07-29 19:30:10904 days ago1659123010
0x7D4BCafA...C677a9eB7
0.145 ETH
152392762022-07-29 19:27:38904 days ago1659122858
0x7D4BCafA...C677a9eB7
0.145 ETH
152392712022-07-29 19:26:24904 days ago1659122784
0x7D4BCafA...C677a9eB7
0.145 ETH
152350552022-07-29 3:45:58905 days ago1659066358
0x7D4BCafA...C677a9eB7
0.0001 ETH
152330392022-07-28 20:06:23905 days ago1659038783
0x7D4BCafA...C677a9eB7
0.049 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DummyRewardDistributor

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : DummyRewardDistributor.sol
// 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 {}
}

File 2 of 3 : Ownable.sol
// 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);
    }
}

File 3 of 3 : Context.sol
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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"}]

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.