S Price: $0.815636 (-4.09%)
    /

    Contract

    0x069d9C2eec92f777e80F019f944B9a8f775b3634

    Overview

    S Balance

    Sonic LogoSonic LogoSonic Logo0 S

    S Value

    $0.00

    Multichain Info

    No addresses found
    Transaction Hash
    Method
    Block
    Age
    From
    To
    Set Gov72589922025-02-10 11:56:3114 days ago1739188591IN
    0x069d9C2e...f775b3634
    0 S0.0014849455
    Set Admin72589632025-02-10 11:56:1314 days ago1739188573IN
    0x069d9C2e...f775b3634
    0 S0.0015913155
    Withdraw Token72195082025-02-10 3:47:2414 days ago1739159244IN
    0x069d9C2e...f775b3634
    0 S0.0020046455
    Set Tokens Per I...67179612025-02-06 0:28:2818 days ago1738801708IN
    0x069d9C2e...f775b3634
    0 S0.009201555
    Set Tokens Per I...58396942025-01-30 0:26:3225 days ago1738196792IN
    0x069d9C2e...f775b3634
    0 S0.009201555
    Withdraw Token58395592025-01-30 0:25:2525 days ago1738196725IN
    0x069d9C2e...f775b3634
    0 S0.003208255
    Set Tokens Per I...58392022025-01-30 0:21:5325 days ago1738196513IN
    0x069d9C2e...f775b3634
    0 S0.0092008955
    Transfer58383372025-01-30 0:14:2425 days ago1738196064IN
    0x069d9C2e...f775b3634
    1,200 S0.0012155555.01
    Transfer58372662025-01-30 0:06:1425 days ago1738195574IN
    0x069d9C2e...f775b3634
    1,200 S0.0012155555.01
    Set Tokens Per I...50599892025-01-23 0:44:3132 days ago1737593071IN
    0x069d9C2e...f775b3634
    0 S0.0086888455
    Update Last Dist...50599792025-01-23 0:44:2732 days ago1737593067IN
    0x069d9C2e...f775b3634
    0 S0.0069056355
    Update Last Dist...41278852025-01-16 9:16:2639 days ago1737018986IN
    0x069d9C2e...f775b3634
    0 S0.00500467110

    Parent Transaction Hash Block Age From To Amount
    View All Internal Transactions
    Loading...
    Loading

    Similar Match Source Code
    This contract matches the deployed Bytecode of the Source Code for Contract 0x921eC8da...E0A2cd732
    The constructor portion of the code might be different and could alter the actual behaviour of the contract

    Contract Name:
    RewardDistributor

    Compiler Version
    v0.6.12+commit.27d51765

    Optimization Enabled:
    Yes with 10 runs

    Other Settings:
    default evmVersion
    File 1 of 9 : RewardDistributor.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    import "../libraries/math/SafeMath.sol";
    import "../libraries/token/IERC20.sol";
    import "../libraries/token/SafeERC20.sol";
    import "../libraries/utils/ReentrancyGuard.sol";
    import "./interfaces/IRewardDistributor.sol";
    import "./interfaces/IRewardTracker.sol";
    import "../access/Governable.sol";
    contract RewardDistributor is IRewardDistributor, ReentrancyGuard, Governable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    address public override rewardToken;
    uint256 public override tokensPerInterval;
    uint256 public lastDistributionTime;
    address public rewardTracker;
    address public admin;
    event Distribute(uint256 amount);
    event TokensPerIntervalChange(uint256 amount);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 9 : Governable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    contract Governable {
    address public gov;
    constructor() public {
    gov = msg.sender;
    }
    modifier onlyGov() {
    require(msg.sender == gov, "Governable: forbidden");
    _;
    }
    function setGov(address _gov) external onlyGov {
    gov = _gov;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 9 : SafeMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    /**
    * @dev Wrappers over Solidity's arithmetic operations with added overflow
    * checks.
    *
    * Arithmetic operations in Solidity wrap on overflow. This can easily result
    * in bugs, because programmers usually assume that an overflow raises an
    * error, which is the standard behavior in high level programming languages.
    * `SafeMath` restores this intuition by reverting the transaction when an
    * operation overflows.
    *
    * Using this library instead of the unchecked operations eliminates an entire
    * class of bugs, so it's recommended to use it always.
    */
    library SafeMath {
    /**
    * @dev Returns the addition of two unsigned integers, reverting on
    * overflow.
    *
    * Counterpart to Solidity's `+` operator.
    *
    * Requirements:
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 9 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    /**
    * @dev Interface of the ERC20 standard as defined in the EIP.
    */
    interface IERC20 {
    /**
    * @dev Returns the amount of tokens in existence.
    */
    function totalSupply() external view returns (uint256);
    /**
    * @dev Returns the amount of tokens owned by `account`.
    */
    function balanceOf(address account) external view returns (uint256);
    /**
    * @dev Moves `amount` tokens from the caller's account to `recipient`.
    *
    * Returns a boolean value indicating whether the operation succeeded.
    *
    * Emits a {Transfer} event.
    */
    function transfer(address recipient, uint256 amount) external returns (bool);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 9 : SafeERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    import "./IERC20.sol";
    import "../math/SafeMath.sol";
    import "../utils/Address.sol";
    /**
    * @title SafeERC20
    * @dev Wrappers around ERC20 operations that throw on failure (when the token
    * contract returns false). Tokens that return no value (and instead revert or
    * throw on failure) are also supported, non-reverting calls are assumed to be
    * successful.
    * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
    * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
    */
    library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
    _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 9 : Address.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.6.2;
    /**
    * @dev Collection of functions related to the address type
    */
    library Address {
    /**
    * @dev Returns true if `account` is a contract.
    *
    * [IMPORTANT]
    * ====
    * It is unsafe to assume that an address for which this function returns
    * false is an externally-owned account (EOA) and not a contract.
    *
    * Among others, `isContract` will return false for the following
    * types of addresses:
    *
    * - an externally-owned account
    * - a contract in construction
    * - an address where a contract will be created
    * - an address where a contract lived, but was destroyed
    * ====
    */
    function isContract(address account) internal view returns (bool) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 9 : ReentrancyGuard.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    /**
    * @dev Contract module that helps prevent reentrant calls to a function.
    *
    * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
    * available, which can be applied to functions to make sure there are no nested
    * (reentrant) calls to them.
    *
    * Note that because there is a single `nonReentrant` guard, functions marked as
    * `nonReentrant` may not call one another. This can be worked around by making
    * those functions `private`, and then adding `external` `nonReentrant` entry
    * points to them.
    *
    * TIP: If you would like to learn more about reentrancy and alternative ways
    * to protect against it, check out our blog post
    * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
    */
    contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 9 : IRewardDistributor.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    interface IRewardDistributor {
    function rewardToken() external view returns (address);
    function tokensPerInterval() external view returns (uint256);
    function pendingRewards() external view returns (uint256);
    function distribute() external returns (uint256);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 9 : IRewardTracker.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    // SPDX-License-Identifier: MIT
    pragma solidity 0.6.12;
    interface IRewardTracker {
    function depositBalances(address _account, address _depositToken) external view returns (uint256);
    function stakedAmounts(address _account) external view returns (uint256);
    function updateRewards() external;
    function stake(address _depositToken, uint256 _amount) external;
    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;
    function unstake(address _depositToken, uint256 _amount) external;
    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;
    function tokensPerInterval() external view returns (uint256);
    function claim(address _receiver) external returns (uint256);
    function claimForAccount(address _account, address _receiver) external returns (uint256);
    function claimable(address _account) external view returns (uint256);
    function averageStakedAmounts(address _account) external view returns (uint256);
    function cumulativeRewards(address _account) external view returns (uint256);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    {
    "optimizer": {
    "enabled": true,
    "runs": 10
    },
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "libraries": {}
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract Security Audit

    Contract ABI

    [{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_rewardTracker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Distribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensPerIntervalChange","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDistributionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTokensPerInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokensPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updateLastDistributionTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

    Deployed Bytecode

    0x608060405234801561001057600080fd5b50600436106100af5760003560e01c806301e33667146100b457806312d43a51146100ec57806318e20a03146101105780633ae6d6eb1461012d5780636bcb411a14610135578063704b6c021461013d57806375b1735014610163578063a8d936271461017d578063cfad57a214610185578063e4fc6b6d146101ab578063eded3fda146101b3578063f7c618c1146101bb578063f851a440146101c3575b600080fd5b6100ea600480360360608110156100ca57600080fd5b506001600160a01b038135811691602081013590911690604001356101cb565b005b6100f461023b565b604080516001600160a01b039092168252519081900360200190f35b6100ea6004803603602081101561012657600080fd5b503561024a565b6100ea610389565b6100f46103ed565b6100ea6004803603602081101561015357600080fd5b50356001600160a01b03166103fc565b61016b610475565b60408051918252519081900360200190f35b61016b61047b565b6100ea6004803603602081101561019b57600080fd5b50356001600160a01b0316610481565b61016b6104fa565b61016b610640565b6100f4610681565b6100f4610690565b6001546001600160a01b03163314610222576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b6102366001600160a01b038416838361069f565b505050565b6001546001600160a01b031681565b6006546001600160a01b031633146102a8576040805162461bcd60e51b815260206004820152601c60248201527b2932bbb0b9322234b9ba3934b13aba37b91d103337b93134b23232b760211b604482015290519081900360640190fd5b6004546102e65760405162461bcd60e51b815260040180806020018281038252602f815260200180610b2e602f913960400191505060405180910390fd5b600560009054906101000a90046001600160a01b03166001600160a01b0316633e158b0c6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561033657600080fd5b505af115801561034a573d6000803e3d6000fd5b5050506003829055506040805182815290517f98dc76c39aa5a5dcb749f8750a65db3dfa1e14bcc1591a9c16a7420e5da748f89181900360200190a150565b6006546001600160a01b031633146103e7576040805162461bcd60e51b815260206004820152601c60248201527b2932bbb0b9322234b9ba3934b13aba37b91d103337b93134b23232b760211b604482015290519081900360640190fd5b42600455565b6005546001600160a01b031681565b6001546001600160a01b03163314610453576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60045481565b60035481565b6001546001600160a01b031633146104d8576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b031633146105465760405162461bcd60e51b8152600401808060200182810382526025815260200180610ac26025913960400191505060405180910390fd5b6000610550610640565b90508061056157600091505061063d565b426004908155600254604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156105b557600080fd5b505afa1580156105c9573d6000803e3d6000fd5b505050506040513d60208110156105df57600080fd5b50519050808211156105ef578091505b600254610606906001600160a01b0316338461069f565b6040805183815290517f4def474aca53bf221d07d9ab0f675b3f6d8d2494b8427271bcf43c018ef1eead9181900360200190a15090505b90565b60006004544214156106545750600061063d565b600061066b600454426106f190919063ffffffff16565b60035490915061067b908261073c565b91505090565b6002546001600160a01b031681565b6006546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610236908490610795565b600061073383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610846565b90505b92915050565b60008261074b57506000610736565b8282028284828161075857fe5b04146107335760405162461bcd60e51b8152600401808060200182810382526021815260200180610b0d6021913960400191505060405180910390fd5b60606107ea826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108e29092919063ffffffff16565b8051909150156102365780806020019051602081101561080957600080fd5b50516102365760405162461bcd60e51b815260040180806020018281038252602a815260200180610b5d602a913960400191505060405180910390fd5b600081848411156108d55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561089a578181015183820152602001610882565b50505050905090810190601f1680156108c75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b60606108f184846000856108f9565b949350505050565b60608247101561093a5760405162461bcd60e51b8152600401808060200182810382526026815260200180610ae76026913960400191505060405180910390fd5b61094385610a55565b610994576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106109d35780518252601f1990920191602091820191016109b4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610a35576040519150601f19603f3d011682016040523d82523d6000602084013e610a3a565b606091505b5091509150610a4a828286610a5b565b979650505050505050565b3b151590565b60608315610a6a5750816108db565b825115610a7a5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561089a57818101518382015260200161088256fe5265776172644469737472696275746f723a20696e76616c6964206d73672e73656e646572416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775265776172644469737472696275746f723a20696e76616c6964206c617374446973747269627574696f6e54696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e83709b6674da6d26c81ffb2c29492a6ca891ca00afb3fc4ee93476d2155ce7564736f6c634300060c0033

    Block Age Transaction Gas Used Reward
    view all blocks produced

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

    Validator Index Block Age Amount
    View All Withdrawals

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