Contract 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a

Contract Overview

Balance:
0 BNB

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8e239b1b66646fbae2ce2733f85771787d37071b8c0a64ac2029dd1f3dd26af6Pause95269532021-06-07 15:02:00227 days 14 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.0002986
0x02bde954adf185eaa23b9f1a8c23da94678ef94cca9b82be590690f6bc684de6Stake93190102021-05-31 9:43:06234 days 19 hrs ago0x8496a4b20c8d7563ff6526b540b9e5a7f227074f IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xc2002e9badd647df173d51a69695176ad2ee40cc26c2b618d5f60ee89f02d424Register Oracle93186802021-05-31 9:26:36234 days 20 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00051835
0xbfb0f6894c71cab8fb594e67bd5167ee59dd7ec6076d8b7f9f30cdef29642344Unregister Oracl...91990932021-05-27 4:54:49239 days 33 mins ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00021919
0x9bd9c7002ec4fc255ebab373818d4e1419d95e54b535261ecdc0a2abc279a1efUnregister Oracl...91990912021-05-27 4:54:43239 days 33 mins ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00021919
0x1653a6fc80be3fde7340af883fe09e96269fb2b761c5c5fb9168373289dcd4d9Stake91843662021-05-26 16:38:28239 days 12 hrs ago0x70b20209c83ec8d01e3c7f2ec77bde7c40cdf2f6 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x9f78f346f3e488e70a7fc3045341c835e7889472e214987fded16ffd8b407d81Stake91632242021-05-25 23:01:22240 days 6 hrs ago0x247fb49bdf16d3bfd9c44a1cd418bf4c92b505c1 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xda448e270d65726cc89f45086be712200b9f53ec672f04a4910aa3db1bf3df6bStake91530252021-05-25 14:31:24240 days 14 hrs ago0x5ca0f638674eb60b1a4f07d9abb502af8ef187fb IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x18ce9c65d2630d90d3c230f986f94b42745426d8fcb716231170d0436d8a3c99Register Oracle91500682021-05-25 12:03:33240 days 17 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00051835
0x25fcc68b1585e55c5ba139fca0b48ca2ff671a26fa73d81b3fe4c26f75295490Unregister Oracl...91499062021-05-25 11:55:27240 days 17 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00021919
0x89847d0fadf4ff3758054ce50ed6350d64ab76986019e9a577023b54c21eb1cdStake91459952021-05-25 8:39:54240 days 20 hrs ago0x001d967a8811f1578d6d36327094bbd09b9f5178 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xf28528efd397ddfb8767ca563ca0ded9e4e82006089aaccdad4405ea924cb883Stake91437072021-05-25 6:45:30240 days 22 hrs ago0xa6991c1bcabc418ac42bfd01aca138036bcbbbde IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xb299f453d203fcada87f54d96822c0106e9056f702896d7ae04217b1745c2324Register Oracle91386572021-05-25 2:33:00241 days 2 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00051835
0x275783aa8dbaac4011641fd92c40714d7b87bb56bd50351189ed7d6b971c5eb1Register Oracle91384002021-05-25 2:20:09241 days 3 hrs ago0x10245774478567edf9b610d44aa488dec950d22e IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00051835
0xe8692a6568da7fa152d810ad4c1cbb6ff5f76cf4a1e4f01c4361d98cca2cfd29Stake91350902021-05-24 23:34:39241 days 5 hrs ago0xe9b554b984b505e73b1ae52634a326103b72ace5 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x90a0cf278c41c980d342a167cf9c4baf4411f063796d815c074a37b026aae0bcStake91322922021-05-24 21:14:45241 days 8 hrs ago0xd59563856826509a6b457fba026a180043a3c72a IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x1842816bd3cde5252ce9c8efdf0d42228f5974b6c9fa49c071b693e27c26cecaStake91309612021-05-24 20:08:12241 days 9 hrs ago0x90bd99545fefc31a90fa0c06a0e38b901514a62f IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x45ca7c225b26305e56e19e718ce5e7839b11a2ce3f73eedbc2dc01ddc1880ab9Stake91296052021-05-24 19:00:24241 days 10 hrs ago0x633bb5f8a2a120d6a9670595ce38471d01786428 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xc234786f040029a276051f62ae6a2c13f7b93c28cc5163a2d69226b2097c70caStake91294572021-05-24 18:53:00241 days 10 hrs ago0x18476b695b6665828da22b478c3ce9eca87fcb23 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x992346249e9f24d025160ca2e3dd7a1fdeeb0b9daf8241750958d50ebb639667Stake91285902021-05-24 18:09:39241 days 11 hrs ago0x8ab9861e643cc4ce27448cefc16080de9287f132 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x42a86353e72eba335943ce59f779235c8a98d83b65fc202a8de9bf8b65f35cd6Stake91284502021-05-24 18:02:39241 days 11 hrs ago0x8e4935723f2546695d8d90da587de1deea7ddd6b IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x8afd62b253e9a677a9c1e2e706910a5fa02d7e390f6cdff969644663670e7d75Stake91282162021-05-24 17:50:57241 days 11 hrs ago0x15e167f6fa1d971ae5b58ac85fb118de15701eb7 IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x75bd9528c85736ca456be02f9939e140178c0c95eb0a4139e4fb3e478057f508Stake91275632021-05-24 17:18:18241 days 12 hrs ago0x27740726f86bf2e57f8b95c8e57baa27cfa441ae IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0x8e2a37d5e653252588d4bd2709078300cdc49d53c6da23f97979ede99f3ae36bStake91275302021-05-24 17:16:39241 days 12 hrs ago0xaa0cd4947941c694cda72a52dc34fb28e596dcba IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
0xb771584e33165d2246d46c0e0fb1a053f75b77281bb82c35037e54e5a31fa1c0Stake91274882021-05-24 17:14:33241 days 12 hrs ago0xe868be65c50b61e81a3fc5cb5a7916090b05eb2a IN  0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB0.00117516
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x90cd0f73c8231b41ac0214697074ae3a693b6ba6c11aaa0cf9fc878a7d1f4d6995271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xc86645920b65d7e6a84031785a22825be993e94925171f13816e7f863068cdfb95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x072431e7f9545e0a9f60964eb4290f4d25958ee23ed43516dcf670d35d55debf95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x694e4cb7aac4c011932939ea4bfe2b7107e08009260d957180bb51422897d55295271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xc33d327703b3e01eae6bd9c4484e0774fdb7489be56daac75493624b60b3ea0c95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x7fd652330a2dccbe8e8d05c61aa1e2996b35610547121aa614d666566259318995271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xfce302677e86164c3fabd04b5565d9249c5eed03af9c1463bbd0578724886b9595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x015f9117e5cae59cd8c093a9a4eca7af3886433cd84bfd7e99d1145bb309c53595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xf41b6c1566c231e8a5b0a638f881f7370e509c26d90a51cca83e9c8f902cac2d95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x6f7f7cae083f0585fc9ef34abe3a8cc8fbea72e3c6a60dfbc73cd8e53b94dd1695271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x8d697a55e3ca93c32bcbe7e7e5fb25a9e9b8ea56d4bc984e8feef7219f1d562595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x2a917f8ec5b6ac64ec54217bbf4ae0c56a2d062d2818a150cf6547859e23e70b95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x8a3887baf0238ef964bc4bde8e4d888e76d8e924048aaf1df752c3389b831a6b95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xaf8d7787ae5b65c8346d232a3f02e7b95ea50b3cf32dc8380f362e9bca8dbb1595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xe2f92b0a798019fc6116dfd11187f424dc3d2d2335d116a219560cd66ff7db7f95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x898ac0edcd48882ff127dde7d8f1e25f5a92f52e20673025348e2cf448e40ed595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x6012e6c149856abdf6789d824051f8eed7ab326ede41fc6fcd8b5479aef69e6a95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xbe1c2418040168a3da62923a5fc4b221535f21d6dfe907ffa3c37bb2c7d2b8f995271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x461d55fea5658cfbe9b6c5ba3fbd712ba7ca43ae2e73302b8b5b12d56ecdde8595271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x770c2be033e7f9bfa4dd3423ebc40dbf7d6280aeaf3451d55829fd73d57c34e995271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x0e45578fb79d8e81faf29efca6b75cea7cc434457dbb9da94b3da958437745c195271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0xea94ca20a5dc9956258f08cc08385cbf1cb192f5dd28d13e77341345110306fe95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x65e61c5d042c7bbec385ca43c5c262ab1e954046c91dc3d53446c4fb9e717eab95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x54700e0338d00fdb19f6730a7966487657f000af341526bb0c940552c0291b4b95271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
0x8c4bdb15ebbb85e4e38bd963b4d34bb8320341a052707a67820c03fe213eed9995271572021-06-07 15:12:38227 days 14 hrs ago 0x16a5be448afb23a80b1020a82739a527e0e99e54 0xd4b019ec078ea7499c54d10893a4a5fafce7c05a0 BNB
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x3219d5B3Cd58e7b094D04ae99282cf4A34F81F13

Contract Name:
Staking

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 2 of 10 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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].
 */
abstract 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.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 10 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 7 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 8 of 10 : Staking.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

import {IAddressRegistry} from "./interfaces/IAddressRegistry.sol";
import {IStaking} from "./interfaces/IStaking.sol";

import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {
    ReentrancyGuard
} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";

contract Staking is IStaking, Ownable, ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    IAddressRegistry addressRegistry;
    IERC20 ORK;

    mapping(address => bool) private _isOracle;
    uint256 private _oraclesNum;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 90 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;

    constructor(address _addressRegistry) {
        addressRegistry = IAddressRegistry(_addressRegistry);
        ORK = IERC20(addressRegistry.getOrkTokenAddr());
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(totalSupply)
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf[account]
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    function staked(address oracle) external view returns (uint256) {
        return balanceOf[oracle];
    }

    function notifyRewardAmount(uint256 reward)
        external
        onlyOwner
        updateReward(address(0))
    {
        _addRewards(reward);
    }

    function _addRewards(uint256 reward) internal {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
        }

        uint256 balance = ORK.balanceOf(address(this));
        require(
            rewardRate <= balance.sub(totalSupply).div(rewardsDuration),
            "Provided reward too high"
        );

        lastUpdateTime = block.timestamp;
        periodFinish = lastUpdateTime.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    function updatePeriodFinish(uint256 timestamp)
        external
        onlyOwner
        updateReward(address(0))
    {
        periodFinish = timestamp;
    }

    function recoverToken(address _token, uint256 amount) external onlyOwner {
        require(_token != address(ORK), "Cannot withdraw ORK token");
        IERC20(_token).transfer(owner(), amount);
        emit Recovered(_token, amount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    event Staked(address indexed staker, uint256 amount);
    event Withdrawn(address indexed staker, uint256 amount);
    event RewardPaid(address indexed staker, uint256 amount);
    event Slashed(address indexed staker, uint256 amount);
    event RewardAdded(uint256 amount);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address indexed token, uint256 amount);

    event Registered(address indexed oracle, uint256 timestamp);
    event Unregistered(address indexed oracle, uint256 timestamp);

    function stake(uint256 _amount)
        external
        nonReentrant
        whenNotPaused
        updateReward(msg.sender)
        onlyOracle(msg.sender)
    {
        require(_amount > 0, "Cannot stake 0");
        totalSupply = totalSupply.add(_amount);
        balanceOf[msg.sender] = balanceOf[msg.sender].add(_amount);
        stakedAt[msg.sender] = block.timestamp;
        ORK.transferFrom(msg.sender, address(this), _amount);
        emit Staked(msg.sender, _amount);
    }

    mapping(address => uint256) public stakedAt;
    uint256 public minStakeDuration = 4 weeks;

    function setMinStakeDuration(uint256 _newStakeDuration) external onlyOwner {
        minStakeDuration = _newStakeDuration;
    }

    function unstake(uint256 _amount)
        external
        nonReentrant
        updateReward(msg.sender)
        onlyOracle(msg.sender)
    {
        require(
            block.timestamp >= stakedAt[msg.sender] + minStakeDuration,
            "Too early to unstake"
        );
        require(_amount > 0, "Cannot withdraw 0");
        totalSupply = totalSupply.sub(_amount);
        balanceOf[msg.sender] = balanceOf[msg.sender].sub(_amount);
        ORK.transfer(msg.sender, _amount);
        emit Withdrawn(msg.sender, _amount);
    }

    function slash(address _oracle, uint256 _amount)
        external
        onlyOwner
        nonReentrant
        updateReward(_oracle)
    {
        require(_amount > 0, "Cannot slash 0");
        totalSupply = totalSupply.sub(_amount);
        balanceOf[_oracle] = balanceOf[_oracle].sub(_amount);
        _addRewards(_amount);
        emit Slashed(_oracle, _amount);
    }

    function claimReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            ORK.transfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    /* */

    function getThresholdNum() public view override returns (uint256) {
        return (_oraclesNum / 3) + 1;
    }

    function registeredOraclesNum() external view override returns (uint256) {
        return _oraclesNum;
    }

    function registerOracle(address _oracle) external onlyOwner {
        require(_oracle != address(0), "Invalid oracle address");
        require(!_isOracle[_oracle], "Oracle already registered");
        _isOracle[_oracle] = true;
        _oraclesNum++;
        emit Registered(_oracle, block.timestamp);
    }

    function unregisterOracle(address _oracle) external onlyOwner {
        require(
            _isOracle[_oracle] && _oracle != address(0),
            "Invalid oracle address"
        );
        _isOracle[_oracle] = false;
        _oraclesNum--;
        emit Unregistered(_oracle, block.timestamp);
    }

    modifier onlyOracle(address _oracle) {
        require(_isOracle[_oracle], "Only oracle");
        _;
    }

    function isRegisteredOracle(address _oracle)
        external
        view
        override
        returns (bool)
    {
        return _isOracle[_oracle];
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }
}

File 9 of 10 : IAddressRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IAddressRegistry {
    function getOrakuruCoreAddr() external view returns (address);

    function getStakingAddr() external view returns (address);

    function getOrkTokenAddr() external view returns (address);
}

File 10 of 10 : IStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IStaking {
    function isRegisteredOracle(address _oracle) external view returns (bool);

    function registeredOraclesNum() external view returns (uint256);

    function getThresholdNum() external view returns (uint256);
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_addressRegistry","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Registered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Slashed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getThresholdNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"isRegisteredOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minStakeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"registerOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"registeredOraclesNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStakeDuration","type":"uint256"}],"name":"setMinStakeDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"slash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oracle","type":"address"}],"name":"staked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"unregisterOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"updatePeriodFinish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600060065560006007556276a7006008556224ea006010553480156200002957600080fd5b5060405162001c1938038062001c198339810160408190526200004c9162000157565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a81b0319166101006001600160a01b03848116820292909217928390556040805163cc566de960e01b81529051919093049091169163cc566de9916004808301926020929190829003018186803b158015620000f557600080fd5b505afa1580156200010a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000130919062000157565b600380546001600160a01b0319166001600160a01b03929092169190911790555062000187565b60006020828403121562000169578081fd5b81516001600160a01b038116811462000180578182fd5b9392505050565b611a8280620001976000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80638456cb5911610125578063c8f33c91116100ad578063e9babaec1161007c578063e9babaec14610449578063ebe2b12b1461045c578063ef36bbde14610465578063f2fde38b14610485578063fc28b2fb1461049857600080fd5b8063c8f33c911461041c578063cc1a378f14610425578063cd3daf9d14610438578063df136d651461044057600080fd5b8063a4219ee4116100f4578063a4219ee4146103d3578063a694fc3a146103db578063aafc5d47146103ee578063b29a814014610401578063b88a802f1461041457600080fd5b80638456cb59146103675780638b8763471461036f5780638da5cb5b1461038f57806398807d84146103aa57600080fd5b80633f4ba83a116101a857806370a082311161017757806370a0823114610326578063715018a61461034657806376540c5b1461034e5780637b0a47ee1461035657806380faa57d1461035f57600080fd5b80633f4ba83a146102f7578063556f6e6b146102ff5780635c975abb146103125780635fec5c641461031d57600080fd5b80631c1f78eb116101ef5780631c1f78eb146102845780632911eb211461028c5780632e17de78146102c8578063386a9525146102db5780633c6b16ab146102e457600080fd5b80628cc2621461022057806302fb4d85146102465780630700037d1461025b57806318160ddd1461027b575b600080fd5b61023361022e366004611897565b6104ab565b6040519081526020015b60405180910390f35b6102596102543660046118b1565b610529565b005b610233610269366004611897565b600c6020526000908152604090205481565b610233600d5481565b6102336106c1565b6102b861029a366004611897565b6001600160a01b031660009081526004602052604090205460ff1690565b604051901515815260200161023d565b6102596102d63660046118fa565b6106df565b61023360085481565b6102596102f23660046118fa565b61094d565b6102596109e0565b61025961030d3660046118fa565b610a14565b60025460ff166102b8565b61023360105481565b610233610334366004611897565b600e6020526000908152604090205481565b610259610aa0565b610233610b14565b61023360075481565b610233610b30565b610259610b3e565b61023361037d366004611897565b600b6020526000908152604090205481565b6000546040516001600160a01b03909116815260200161023d565b6102336103b8366004611897565b6001600160a01b03166000908152600e602052604090205490565b600554610233565b6102596103e93660046118fa565b610b70565b6102596103fc3660046118fa565b610dd5565b61025961040f3660046118b1565b610e04565b610259610f75565b61023360095481565b6102596104333660046118fa565b6110e4565b6102336111e6565b610233600a5481565b610259610457366004611897565b611232565b61023360065481565b610233610473366004611897565b600f6020526000908152604090205481565b610259610493366004611897565b611390565b6102596104a6366004611897565b61147a565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054610523919061051d90670de0b6b3a764000090610517906104f8906104f26111e6565b90611587565b6001600160a01b0388166000908152600e60205260409020549061159a565b906115a6565b906115b2565b92915050565b6000546001600160a01b0316331461055c5760405162461bcd60e51b81526004016105539061192a565b60405180910390fd5b6002600154141561057f5760405162461bcd60e51b81526004016105539061195f565b60026001558161058d6111e6565b600a55610598610b30565b6009556001600160a01b038116156105df576105b3816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600082116106205760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f7420736c61736820360941b6044820152606401610553565b600d5461062d9083611587565b600d556001600160a01b0383166000908152600e60205260409020546106539083611587565b6001600160a01b0384166000908152600e6020526040902055610675826115be565b826001600160a01b03167f4ed05e9673c26d2ed44f7ef6a7f2942df0ee3b5e1e17db4b99f9dcd261a339cd836040516106b091815260200190565b60405180910390a250506001805550565b60006106da60085460075461159a90919063ffffffff16565b905090565b600260015414156107025760405162461bcd60e51b81526004016105539061195f565b6002600155336107106111e6565b600a5561071b610b30565b6009556001600160a01b0381161561076257610736816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b3360008181526004602052604090205460ff166107af5760405162461bcd60e51b815260206004820152600b60248201526a4f6e6c79206f7261636c6560a81b6044820152606401610553565b601054336000908152600f60205260409020546107cc9190611996565b4210156108125760405162461bcd60e51b8152602060048201526014602482015273546f6f206561726c7920746f20756e7374616b6560601b6044820152606401610553565b600083116108565760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b6044820152606401610553565b600d546108639084611587565b600d55336000908152600e60205260409020546108809084611587565b336000818152600e60205260409081902092909255600354915163a9059cbb60e01b81526004810191909152602481018590526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156108e257600080fd5b505af11580156108f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091a91906118da565b5060405183815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020016106b0565b6000546001600160a01b031633146109775760405162461bcd60e51b81526004016105539061192a565b60006109816111e6565b600a5561098c610b30565b6009556001600160a01b038116156109d3576109a7816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b6109dc826115be565b5050565b6000546001600160a01b03163314610a0a5760405162461bcd60e51b81526004016105539061192a565b610a12611757565b565b6000546001600160a01b03163314610a3e5760405162461bcd60e51b81526004016105539061192a565b6000610a486111e6565b600a55610a53610b30565b6009556001600160a01b03811615610a9a57610a6e816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b50600655565b6000546001600160a01b03163314610aca5760405162461bcd60e51b81526004016105539061192a565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006003600554610b2591906119ae565b6106da906001611996565b60006106da426006546117ea565b6000546001600160a01b03163314610b685760405162461bcd60e51b81526004016105539061192a565b610a12611800565b60026001541415610b935760405162461bcd60e51b81526004016105539061195f565b6002600155610ba460025460ff1690565b15610be45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610553565b33610bed6111e6565b600a55610bf8610b30565b6009556001600160a01b03811615610c3f57610c13816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b3360008181526004602052604090205460ff16610c8c5760405162461bcd60e51b815260206004820152600b60248201526a4f6e6c79206f7261636c6560a81b6044820152606401610553565b60008311610ccd5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b6044820152606401610553565b600d54610cda90846115b2565b600d55336000908152600e6020526040902054610cf790846115b2565b336000818152600e6020908152604080832094909455600f905282902042905560035491516323b872dd60e01b81526004810191909152306024820152604481018590526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da291906118da565b5060405183815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016106b0565b6000546001600160a01b03163314610dff5760405162461bcd60e51b81526004016105539061192a565b601055565b6000546001600160a01b03163314610e2e5760405162461bcd60e51b81526004016105539061192a565b6003546001600160a01b0383811691161415610e8c5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177204f524b20746f6b656e000000000000006044820152606401610553565b816001600160a01b031663a9059cbb610ead6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610ef557600080fd5b505af1158015610f09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2d91906118da565b50816001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2882604051610f6991815260200190565b60405180910390a25050565b60026001541415610f985760405162461bcd60e51b81526004016105539061195f565b600260015533610fa66111e6565b600a55610fb1610b30565b6009556001600160a01b03811615610ff857610fcc816104ab565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b336000908152600c602052604090205480156110dc57336000818152600c602052604080822091909155600354905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a591906118da565b5060405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b505060018055565b6000546001600160a01b0316331461110e5760405162461bcd60e51b81526004016105539061192a565b60065442116111ab5760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a401610553565b60088190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39060200160405180910390a150565b6000600d54600014156111fa5750600a5490565b6106da611229600d54610517670de0b6b3a76400006112236007546112236009546104f2610b30565b9061159a565b600a54906115b2565b6000546001600160a01b0316331461125c5760405162461bcd60e51b81526004016105539061192a565b6001600160a01b0381166112ab5760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206f7261636c65206164647265737360501b6044820152606401610553565b6001600160a01b03811660009081526004602052604090205460ff16156113145760405162461bcd60e51b815260206004820152601960248201527f4f7261636c6520616c72656164792072656769737465726564000000000000006044820152606401610553565b6001600160a01b0381166000908152600460205260408120805460ff19166001179055600580549161134583611a1b565b9190505550806001600160a01b03167f6f3bf3fa84e4763a43b3d23f9d79be242d6d5c834941ff4c1111b67469e1150c4260405161138591815260200190565b60405180910390a250565b6000546001600160a01b031633146113ba5760405162461bcd60e51b81526004016105539061192a565b6001600160a01b03811661141f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610553565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114a45760405162461bcd60e51b81526004016105539061192a565b6001600160a01b03811660009081526004602052604090205460ff1680156114d457506001600160a01b03811615155b6115195760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206f7261636c65206164647265737360501b6044820152606401610553565b6001600160a01b0381166000908152600460205260408120805460ff19169055600580549161154783611a04565b9190505550806001600160a01b03167f15f7469572dc44ee54c08cc4adf4e1031d7b6254626e8894015195a560039d094260405161138591815260200190565b600061159382846119ed565b9392505050565b600061159382846119ce565b600061159382846119ae565b60006115938284611996565b60065442106115dd576008546115d59082906115a6565b600755611620565b6006546000906115ed9042611587565b905060006116066007548361159a90919063ffffffff16565b60085490915061161a9061051785846115b2565b60075550505b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561166457600080fd5b505afa158015611678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169c9190611912565b90506116b9600854610517600d548461158790919063ffffffff16565b600754111561170a5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610553565b42600981905560085461171d91906115b2565b6006556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15050565b60025460ff166117a05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610553565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008183106117f95781611593565b5090919050565b60025460ff16156118465760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610553565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117cd3390565b80356001600160a01b038116811461189257600080fd5b919050565b6000602082840312156118a8578081fd5b6115938261187b565b600080604083850312156118c3578081fd5b6118cc8361187b565b946020939093013593505050565b6000602082840312156118eb578081fd5b81518015158114611593578182fd5b60006020828403121561190b578081fd5b5035919050565b600060208284031215611923578081fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156119a9576119a9611a36565b500190565b6000826119c957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156119e8576119e8611a36565b500290565b6000828210156119ff576119ff611a36565b500390565b600081611a1357611a13611a36565b506000190190565b6000600019821415611a2f57611a2f611a36565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220501bc33bbc8d6dea3be0e2059b105384e765eb9242dd467106cecd0565c6bce464736f6c63430008040033000000000000000000000000ff87900e675907abbaeb49ca77475fb33746ba1a

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading