Contract 0x0dd8bdc03daa41bf62053877498be97ca9c274cd

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x04e8a0c28fa53ce68951864c57e6a40414c753e02c34dee5a2eee971007cff6782545182021-06-13 6:39:387 days 13 hrs ago0xe5907e496071749f3693c5abe492822093efe500 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00070753
0x0f2364a50bebf717e252eafe60883ef3adefebfc7ee80612bd7fe1229c3ce85979605812021-06-03 0:56:5217 days 18 hrs ago0x955d9e96e232d1a6fdcc9dc5cee5325e1ee015da IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000503655
0x71db99b7b3cb686c6658bb1ebeed2ca0e4d810a56a19f346b9e0a69ab5079bc579605192021-06-03 0:53:4617 days 18 hrs ago0x955d9e96e232d1a6fdcc9dc5cee5325e1ee015da IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000454175
0x3331bf04d88b6d8bfb6f876306ab3d0e2209ae1af0ef9caf02b50623cab24d1a78918232021-05-31 15:26:5620 days 4 hrs ago0x0f45888184e3c53d373a91c9c261683bb49a6025 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000428205
0x7e3eb126f328f17c5df5a41bbda7d46410ea49763f130a3bca12bd816eeedd1a77238362021-05-25 18:44:0926 days 1 hr ago0xafe53d85da6b510b4fcc3774373f8880097f3e10 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00070741
0x4d5dc50f37be698cf6d44123fcb1b18191b79b05a2270e0c3beacd1588a08f3477096922021-05-25 6:54:5626 days 12 hrs ago0x38014edd180861a3100fbcd5fed36d9903b678c0 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000428205
0x50dca6794b2647dfe8680a5802b0edfa7805f114b46a2065e2fb19eb40a6906e77096872021-05-25 6:54:4126 days 12 hrs ago0x38014edd180861a3100fbcd5fed36d9903b678c0 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000454175
0x74c5eef2bc4fc55cb7b5ecdc143282b88ce4da5db47508bc47d7f7aa8de114c476817012021-05-24 7:27:2527 days 12 hrs ago0xa1923020e9fc5686999f2873317cd84ae4fcf871 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00063202
0xecaed6314c1609d0caf3b013dbd2e041afa1034a409396701ee345d4a9b0ed1076517182021-05-23 6:21:0928 days 13 hrs ago0x3cdde93d7a2430b5178211f2fd9dc6c52d3ceddc IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00063208
0xce16f876ce753ed5d3191976c72dd7cfcfdd6e00627ed8e3446b573bd3e8ed0a76484122021-05-23 3:35:5128 days 16 hrs ago0x3689e297323dfb18926f40947c6567ef4d5ca3db IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00070741
0xb27fa0f3bb690b3408e6a5d4a59e342c1d50ad3b45a4771cadd263860c9e80b576350552021-05-22 16:27:5929 days 3 hrs ago0x93bd28fc511aec8073e7be2055e809af834e3a36 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000848964
0x5380047042eba4f4a9d324a029e22dfd7029a6536552aafa1fc14a7f30fb595476331002021-05-22 14:49:5429 days 4 hrs ago0x1e753a3bf72d890d498aa11687154aa36fa4dbaa IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000513846
0xc5d410282e8c8997dfb754f30443f59a6ff3a5f7eef04364eb2fa3adfe7e840c76066662021-05-21 16:46:1930 days 2 hrs ago0x0f45888184e3c53d373a91c9c261683bb49a6025 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000454175
0x7bf5cc6ba5e0098445bc2e29d3ffd3f808e3c81c2a83bba19820b1220268db4975980922021-05-21 9:31:1930 days 10 hrs ago0xbced711c938e2dc7313954f133d0737a04c11251 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000503655
0x59bd9dacac64c270c9ad971a08c05972669ddedfdf95672820c133b1d6d7f4db75980632021-05-21 9:29:5230 days 10 hrs ago0xd2027af64d6f356bccca4d23223bf858e9cc92c9 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000428205
0xd2234e0ad743aa74a050dd2b3c6551da3d35ad3beecaba2537664c2300b1285175980562021-05-21 9:29:3130 days 10 hrs ago0xd2027af64d6f356bccca4d23223bf858e9cc92c9 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000454175
0x4ef28e71af012b38242f1dfeb1000edc8ed8ad5f091e54b0305939535bb6170a75979512021-05-21 9:24:1630 days 10 hrs ago0xbced711c938e2dc7313954f133d0737a04c11251 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000454175
0x2473da9ba8744a553a0f9375e7b85896b0807ebbcb4a097ee8fc6c276154250e75910062021-05-21 3:35:3430 days 16 hrs ago0x1e753a3bf72d890d498aa11687154aa36fa4dbaa IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00054501
0x7b22e2bd71f276598e8f56789857c10667ede93c5180b7996d39e37e54cf3ed275842272021-05-20 21:54:3830 days 21 hrs ago0x06962d2a67e7c339f5db98170588ca1967ffff2c IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000513846
0xd4469868a7f7b2da6da8c8723e9fc7388cc162f81a9a57b005352278c40f677e75842192021-05-20 21:54:1430 days 21 hrs ago0x06962d2a67e7c339f5db98170588ca1967ffff2c IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00054501
0xdcbd8708717113368885d5ab255c67b9ef2df3ac824cd7d22eb61128c664abe475838462021-05-20 21:35:3530 days 22 hrs ago0x63fd18c53ae6ff05e6e2e4587dd6a721b59d1587 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000603846
0x4ee41acb5ef547ced85a379568b41fd0e8e0c13f73dc7f89af27413a3f4ac0f175767722021-05-20 15:41:3631 days 4 hrs ago0x63fd18c53ae6ff05e6e2e4587dd6a721b59d1587 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00059595
0x2ace938bba7f8a4ecb26430cdb4f72cec89866c5a1377826a0439645f4c54e9375608292021-05-20 2:19:0931 days 17 hrs ago0x93bd28fc511aec8073e7be2055e809af834e3a36 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000595638
0x7e863abbcb7d477f4d2279eba667c5afce277ee7f932a6674282ecd3b808b42275605162021-05-20 2:03:2931 days 17 hrs ago0x63fd18c53ae6ff05e6e2e4587dd6a721b59d1587 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.000595638
0xf340148db48ff1f09565669eb24f5ca95cd54d8b8e56ecdad240dca46c15622375453882021-05-19 13:21:3132 days 6 hrs ago0x20215e3111c0128ea2d09f8ec2c227585d7e2e35 IN  0x0dd8bdc03daa41bf62053877498be97ca9c274cd0 BNB0.00161352
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1830bb982cf065af7a49e877181b3f925408f4c8cc22010a4435bd5a3e091b0354713292021-03-07 11:59:24105 days 7 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x2ff6ee98d7da0a87bbb809e51a8aa3dc77f286680ecb2a53c83318330fcac17954702052021-03-07 11:03:12105 days 8 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x76045538c772e63eb5904007249e9610126bb961b571ab6fe084cb8db4ac713454694232021-03-07 10:24:06105 days 9 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xdb97949af35522f554244681aaaef54a2a13560e6ac1ef6973bacf9033725b9e54690052021-03-07 10:03:12105 days 9 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x4322b56b9998e85ea47cb622648f054f53e629d59fbb35da91c482f90fc0a5c354678042021-03-07 9:03:09105 days 10 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xf2b0356742aae007af8181e0c999444ff1c002665034f18dd3ba561364df295d54675442021-03-07 8:50:09105 days 10 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xf2b0356742aae007af8181e0c999444ff1c002665034f18dd3ba561364df295d54675442021-03-07 8:50:09105 days 10 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd PancakeSwap: OIL-BUSD0 BNB
0xc32649c890aa4ebece8b4654cd3c21eaedd3509fae8762c50e35066015d3270754674962021-03-07 8:47:45105 days 10 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xbb47c13b6d51f93826ed711ace1afc0552a5c1bd408abbf52ddb2b6211d30d3054673892021-03-07 8:42:24105 days 11 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x37ca3a40ab63d5767795c02d896c20cbcd165b44fa6b01c3c4833ff4ec52a6a454673092021-03-07 8:38:24105 days 11 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x5c1ebd5427f77192e50814b9bcda56b8ba25af6c6aba29efca7888611e69a3ed54666082021-03-07 8:03:21105 days 11 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xf9a62d8859805aaf3de1fb86c1b9d0ebd9e5d510a01ed2b833a5855d7cfcb87254641842021-03-07 6:02:09105 days 13 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xf9a62d8859805aaf3de1fb86c1b9d0ebd9e5d510a01ed2b833a5855d7cfcb87254641842021-03-07 6:02:09105 days 13 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd PancakeSwap: OIL-BUSD0 BNB
0x447315472e124e42ea9c73a489915f9825a61abb11f66c0464951c1d9371eeb454633122021-03-07 5:18:23105 days 14 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x5be6ed9454f2c5ca7ffa00d818d9d80ffc007256919aeee5cecf50a43d23d29254629272021-03-07 4:59:08105 days 14 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x85a5c22b40e4489f4ba7b372cf47d66aed2a63b502c80acd0d14f93f1c0e7c5154605422021-03-07 2:59:53105 days 16 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd PancakeSwap: OIL-BUSD0 BNB
0x136d40ee56baa46828fefa5ed8515ce09adebaf645cde567b5b01a79c82a2c5054605282021-03-07 2:59:11105 days 16 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x8ce17f98d053e38d5151d54154cd27a6449eb915d2b252832012039333be060d54590752021-03-07 1:46:32105 days 17 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xd8f71211b94b71940ec0668921ac198edc94cb112d0e8d0cc5fe1f6e5bd69ef354590722021-03-07 1:46:23105 days 17 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xe0ce39075bb7d11924c32434fa59f60bd2ff69fddb9714579786cc020148d5ce54590112021-03-07 1:43:20105 days 18 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0xcfad914a5015d4645481b487fffbf2e257bc3a7a20552e29f9b707e8e4de7a1554553242021-03-06 22:38:57105 days 21 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x51df8d96bc5c07ecbb9b582feaae0aad280a3f7176b41de79de489d9cd65ffc954547492021-03-06 22:10:12105 days 21 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd PancakeSwap: OIL-BUSD0 BNB
0x295e613cebada7f9b158a5acc5e5f6fb6cd566d735b135d4ac0de497d1d97c8154524472021-03-06 20:15:06105 days 23 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
0x295e613cebada7f9b158a5acc5e5f6fb6cd566d735b135d4ac0de497d1d97c8154524472021-03-06 20:15:06105 days 23 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd PancakeSwap: OIL-BUSD0 BNB
0x747cb6ee15c314e0b6e722e3b472c602bb3c74af895d515b373640dec8c908f554520532021-03-06 19:55:24105 days 23 hrs ago 0x0dd8bdc03daa41bf62053877498be97ca9c274cd Crudeoil Finance: OIL Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GroundWater

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-02-19
*/

pragma solidity ^0.5.17;

/**
 * @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: @openzeppelin/contracts/token/ERC20/IERC20.sol

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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: @openzeppelin/contracts/GSN/Context.sol
/*
 * @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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.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.
 *
 * 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.
 */
contract Ownable is Context {
    address public _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract IRewardDistributionRecipient is Ownable {
    address public rewardDistribution;

    function notifyRewardAmount(uint256 reward) external;

    modifier onlyRewardDistribution() {
        require(
            _msgSender() == rewardDistribution,
            "Caller is not reward distribution"
        );
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        rewardDistribution = _rewardDistribution;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

/**
 * @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:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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.
     *
     * _Available since v2.4.0._
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash =
            0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account)
        internal
        pure
        returns (address payable)
    {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }
}

contract TokenWrapper {
    using SafeMath for uint256;

    IERC20 public LPToken = IERC20(0x9ce4eeCC88bC2E3bb2f7F3C828CcF52Fe932EC95);

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        LPToken.transferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        LPToken.transfer(msg.sender, amount);
    }
}

contract GroundWater is TokenWrapper, IRewardDistributionRecipient {
    IERC20 public MainToken =
        IERC20(0xb1b17DFf66d75b29d34f0Bf8622c406D8219B507);
    uint256 public constant DURATION = 90 days;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

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

    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]);
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function withdrawAmount(uint256 amount) external {
        withdraw(amount);
        getReward();
    }

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

    function notifyRewardAmount(uint256 reward)
        external
        onlyRewardDistribution
        updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(DURATION);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);
        emit RewardAdded(reward);
    }

    // only when emergency withdraw
    function withdrawMainToken(uint256 amount) external onlyRewardDistribution {
        require(MainToken.balanceOf(address(this)) > amount, "amount exceeds");
        rewardRate = 0;
        periodFinish = 0;
        MainToken.transfer(_owner, amount);
    }
}

Contract ABI

[{"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":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LPToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MainToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawMainToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b0319908116739ce4eecc88bc2e3bb2f7f3c828ccf52fe932ec951782556005805490911673b1b17dff66d75b29d34f0bf8622c406d8219b507179055600681905560078190556100666001600160e01b036100b916565b600380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506100bd565b3390565b61126e806100cc6000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c80637b0a47ee116100f9578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee146103cb578063ebe2b12b146103d3578063f2fde38b146103db578063f5194ae214610401576101c3565b8063c8f33c91146103b3578063cd3daf9d146103bb578063df136d65146103c3576101c3565b80638da5cb5b116100d35780638da5cb5b1461036a5780638f32d59b14610372578063a694fc3a1461038e578063b2bdfa7b146103ab576101c3565b80637b0a47ee1461033457806380faa57d1461033c5780638b87634714610344576101c3565b80631be05289116101665780633d18b912116101405780633d18b912146102e1578063511257a9146102e957806370a0823114610306578063715018a61461032c576101c3565b80631be052891461029f5780632e1a7d4d146102a75780633c6b16ab146102c4576101c3565b80630700037d116101a25780630700037d146102435780630d68b76114610269578063101114cf1461028f57806318160ddd14610297576101c3565b80628cc262146101c8578063011cee36146102005780630562b9f714610224575b600080fd5b6101ee600480360360208110156101de57600080fd5b50356001600160a01b0316610409565b60408051918252519081900360200190f35b61020861048f565b604080516001600160a01b039092168252519081900360200190f35b6102416004803603602081101561023a57600080fd5b503561049e565b005b6101ee6004803603602081101561025957600080fd5b50356001600160a01b03166104b2565b6102416004803603602081101561027f57600080fd5b50356001600160a01b03166104c4565b61020861053f565b6101ee61054e565b6101ee610555565b610241600480360360208110156102bd57600080fd5b503561055c565b610241600480360360208110156102da57600080fd5b5035610643565b6102416107bd565b610241600480360360208110156102ff57600080fd5b50356108f7565b6101ee6004803603602081101561031c57600080fd5b50356001600160a01b0316610a9f565b610241610aba565b6101ee610b5d565b6101ee610b63565b6101ee6004803603602081101561035a57600080fd5b50356001600160a01b0316610b76565b610208610b88565b61037a610b97565b604080519115158252519081900360200190f35b610241600480360360208110156103a457600080fd5b5035610bbd565b610208610ca1565b6101ee610cb0565b6101ee610cb6565b6101ee610d0a565b610241610d10565b6101ee610d2b565b610241600480360360208110156103f157600080fd5b50356001600160a01b0316610d31565b610208610d93565b6001600160a01b0381166000908152600b6020908152604080832054600a909252822054610489919061047d90670de0b6b3a7640000906104719061045c90610450610cb6565b9063ffffffff610da216565b61046588610a9f565b9063ffffffff610deb16565b9063ffffffff610e4416565b9063ffffffff610e8616565b92915050565b6000546001600160a01b031681565b6104a78161055c565b6104af6107bd565b50565b600b6020526000908152604090205481565b6104cc610b97565b61051d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6001545b90565b6276a70081565b33610565610cb6565b600955610570610b63565b6008556001600160a01b038116156105b75761058b81610409565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008211610600576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61060982610ee0565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6004546001600160a01b0316610657610f7a565b6001600160a01b03161461069c5760405162461bcd60e51b81526004018080602001828103825260218152602001806112196021913960400191505060405180910390fd5b60006106a6610cb6565b6009556106b1610b63565b6008556001600160a01b038116156106f8576106cc81610409565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600654421061071c57610714826276a70063ffffffff610e4416565b60075561076a565b600654600090610732904263ffffffff610da216565b9050600061074b60075483610deb90919063ffffffff16565b90506107646276a700610471868463ffffffff610e8616565b60075550505b426008819055610783906276a70063ffffffff610e8616565b6006556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b336107c6610cb6565b6009556107d1610b63565b6008556001600160a01b03811615610818576107ec81610409565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600061082333610409565b905080156108f357336000818152600b60209081526040808320839055600554815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b15801561089057600080fd5b505af11580156108a4573d6000803e3d6000fd5b505050506040513d60208110156108ba57600080fd5b505060408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6004546001600160a01b031661090b610f7a565b6001600160a01b0316146109505760405162461bcd60e51b81526004018080602001828103825260218152602001806112196021913960400191505060405180910390fd5b600554604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561099a57600080fd5b505afa1580156109ae573d6000803e3d6000fd5b505050506040513d60208110156109c457600080fd5b505111610a09576040805162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206578636565647360901b604482015290519081900360640190fd5b6000600781905560068190556005546003546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018690529051919092169263a9059cbb92604480820193602093909283900390910190829087803b158015610a7057600080fd5b505af1158015610a84573d6000803e3d6000fd5b505050506040513d6020811015610a9a57600080fd5b505050565b6001600160a01b031660009081526002602052604090205490565b610ac2610b97565b610b13576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60075481565b6000610b7142600654610f7e565b905090565b600a6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610bae610f7a565b6001600160a01b031614905090565b33610bc6610cb6565b600955610bd1610b63565b6008556001600160a01b03811615610c1857610bec81610409565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008211610c5e576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610c6782610f94565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6003546001600160a01b031681565b60085481565b6000610cc061054e565b610ccd5750600954610552565b610b71610cfb610cdb61054e565b610471670de0b6b3a7640000610465600754610465600854610450610b63565b6009549063ffffffff610e8616565b60095481565b610d21610d1c33610a9f565b61055c565b610d296107bd565b565b60065481565b610d39610b97565b610d8a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6104af81611034565b6005546001600160a01b031681565b6000610de483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110d5565b9392505050565b600082610dfa57506000610489565b82820282848281610e0757fe5b0414610de45760405162461bcd60e51b81526004018080602001828103825260218152602001806111f86021913960400191505060405180910390fd5b6000610de483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061116c565b600082820183811015610de4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610ef3908263ffffffff610da216565b60015533600090815260026020526040902054610f16908263ffffffff610da216565b336000818152600260209081526040808320949094558154845163a9059cbb60e01b815260048101949094526024840186905293516001600160a01b039094169363a9059cbb93604480820194918390030190829087803b158015610a7057600080fd5b3390565b6000818310610f8d5781610de4565b5090919050565b600154610fa7908263ffffffff610e8616565b60015533600090815260026020526040902054610fca908263ffffffff610e8616565b33600081815260026020908152604080832094909455815484516323b872dd60e01b815260048101949094523060248501526044840186905293516001600160a01b03909416936323b872dd93606480820194918390030190829087803b158015610a7057600080fd5b6001600160a01b0381166110795760405162461bcd60e51b81526004018080602001828103825260268152602001806111d26026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156111645760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611129578181015183820152602001611111565b50505050905090810190601f1680156111565780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111bb5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611129578181015183820152602001611111565b5060008385816111c757fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742072657761726420646973747269627574696f6ea265627a7a723158203299949f8cfca9ce61bb93550ec0cb6f4353065a2cc0873d152fea94e1d5540364736f6c63430005110032

Deployed ByteCode Sourcemap

17689:3785:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17689:3785:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19298:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19298:265:0;-1:-1:-1;;;;;19298:265:0;;:::i;:::-;;;;;;;;;;;;;;;;16841:74;;;:::i;:::-;;;;-1:-1:-1;;;;;16841:74:0;;;;;;;;;;;;;;20169:106;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20169:106:0;;:::i;:::-;;18122:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18122:42:0;-1:-1:-1;;;;;18122:42:0;;:::i;7830:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7830:161:0;-1:-1:-1;;;;;7830:161:0;;:::i;7537:33::-;;;:::i;17013:91::-;;;:::i;17855:42::-;;;:::i;19853:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19853:203:0;;:::i;20577:588::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20577:588:0;;:::i;20283:286::-;;;:::i;21210:261::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21210:261:0;;:::i;17112:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17112:110:0;-1:-1:-1;;;;;17112:110:0;;:::i;6698:140::-;;;:::i;17944:29::-;;;:::i;18731:131::-;;;:::i;18058:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18058:57:0;-1:-1:-1;;;;;18058:57:0;;:::i;5887:79::-;;;:::i;6253:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;19654:191;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19654:191:0;;:::i;5398:21::-;;;:::i;17980:29::-;;;:::i;18870:420::-;;;:::i;18016:35::-;;;:::i;20064:97::-;;;:::i;17906:31::-;;;:::i;6993:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6993:109:0;-1:-1:-1;;;;;6993:109:0;;:::i;17763:85::-;;;:::i;19298:265::-;-1:-1:-1;;;;;19538:16:0;;19352:7;19538:16;;;:7;:16;;;;;;;;;19454:22;:31;;;;;;19392:163;;19538:16;19392:123;;19510:4;;19392:95;;19433:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;19392:18;19402:7;19392:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;19372:183;19298:265;-1:-1:-1;;19298:265:0:o;16841:74::-;;;-1:-1:-1;;;;;16841:74:0;;:::o;20169:106::-;20229:16;20238:6;20229:8;:16::i;:::-;20256:11;:9;:11::i;:::-;20169:106;:::o;18122:42::-;;;;;;;;;;;;;:::o;7830:161::-;6099:9;:7;:9::i;:::-;6091:54;;;;;-1:-1:-1;;;6091:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7943:18;:40;;-1:-1:-1;;;;;;7943:40:0;-1:-1:-1;;;;;7943:40:0;;;;;;;;;;7830:161::o;7537:33::-;;;-1:-1:-1;;;;;7537:33:0;;:::o;17013:91::-;17084:12;;17013:91;;:::o;17855:42::-;17890:7;17855:42;:::o;19853:203::-;19907:10;18466:16;:14;:16::i;:::-;18443:20;:39;18510:26;:24;:26::i;:::-;18493:14;:43;-1:-1:-1;;;;;18551:21:0;;;18547:157;;18608:15;18615:7;18608:6;:15::i;:::-;-1:-1:-1;;;;;18589:16:0;;;;;;:7;:16;;;;;;;;:34;;;;18672:20;;18638:22;:31;;;;;;:54;18547:157;19947:1;19938:6;:10;19930:40;;;;;-1:-1:-1;;;19930:40:0;;;;;;;;;;;;-1:-1:-1;;;19930:40:0;;;;;;;;;;;;;;;19981:22;19996:6;19981:14;:22::i;:::-;20019:29;;;;;;;;20029:10;;20019:29;;;;;;;;;;19853:203;;:::o;20577:588::-;7723:18;;-1:-1:-1;;;;;7723:18:0;7707:12;:10;:12::i;:::-;-1:-1:-1;;;;;7707:34:0;;7685:117;;;;-1:-1:-1;;;7685:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20701:1;18466:16;:14;:16::i;:::-;18443:20;:39;18510:26;:24;:26::i;:::-;18493:14;:43;-1:-1:-1;;;;;18551:21:0;;;18547:157;;18608:15;18615:7;18608:6;:15::i;:::-;-1:-1:-1;;;;;18589:16:0;;;;;;:7;:16;;;;;;;;:34;;;;18672:20;;18638:22;:31;;;;;;:54;18547:157;20744:12;;20725:15;:31;20721:304;;20786:20;:6;17890:7;20786:20;:10;:20;:::i;:::-;20773:10;:33;20721:304;;;20859:12;;20839:17;;20859:33;;20876:15;20859:33;:16;:33;:::i;:::-;20839:53;;20907:16;20926:25;20940:10;;20926:9;:13;;:25;;;;:::i;:::-;20907:44;-1:-1:-1;20979:34:0;17890:7;20979:20;:6;20907:44;20979:20;:10;:20;:::i;:34::-;20966:10;:47;-1:-1:-1;;20721:304:0;21052:15;21035:14;:32;;;21093:29;;17890:7;21093:29;:19;:29;:::i;:::-;21078:12;:44;21138:19;;;;;;;;;;;;;;;;;7813:1;20577:588;:::o;20283:286::-;20324:10;18466:16;:14;:16::i;:::-;18443:20;:39;18510:26;:24;:26::i;:::-;18493:14;:43;-1:-1:-1;;;;;18551:21:0;;;18547:157;;18608:15;18615:7;18608:6;:15::i;:::-;-1:-1:-1;;;;;18589:16:0;;;;;;:7;:16;;;;;;;;:34;;;;18672:20;;18638:22;:31;;;;;;:54;18547:157;20347:14;20364:18;20371:10;20364:6;:18::i;:::-;20347:35;-1:-1:-1;20397:10:0;;20393:169;;20432:10;20446:1;20424:19;;;:7;:19;;;;;;;;:23;;;20462:9;;:38;;-1:-1:-1;;;20462:38:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20462:9:0;;;;:18;;:38;;;;;20424:19;20462:38;;;;;;;;:9;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;20462:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20462:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;20520:30:0;;;;;;;;20531:10;;20520:30;;;;;;20462:38;20520:30;;;20393:169;18714:1;20283:286;:::o;21210:261::-;7723:18;;-1:-1:-1;;;;;7723:18:0;7707:12;:10;:12::i;:::-;-1:-1:-1;;;;;7707:34:0;;7685:117;;;;-1:-1:-1;;;7685:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21304:9;;:34;;;-1:-1:-1;;;21304:34:0;;21332:4;21304:34;;;;;;21341:6;;-1:-1:-1;;;;;21304:9:0;;:19;;:34;;;;;;;;;;;;;;:9;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;21304:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21304:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21304:34:0;:43;21296:70;;;;;-1:-1:-1;;;21296:70:0;;;;;;;;;;;;-1:-1:-1;;;21296:70:0;;;;;;;;;;;;;;;21390:1;21377:10;:14;;;21402:12;:16;;;21429:9;;21448:6;;21429:34;;;-1:-1:-1;;;21429:34:0;;-1:-1:-1;;;;;21448:6:0;;;21429:34;;;;;;;;;;;;:9;;;;;:18;;:34;;;;;;;;;;;;;;;;;;:9;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;21429:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21429:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;21210:261:0:o;17112:110::-;-1:-1:-1;;;;;17196:18:0;17169:7;17196:18;;;:9;:18;;;;;;;17112:110::o;6698:140::-;6099:9;:7;:9::i;:::-;6091:54;;;;;-1:-1:-1;;;6091:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6781:6;;6760:40;;6797:1;;-1:-1:-1;;;;;6781:6:0;;6760:40;;6797:1;;6760:40;6811:6;:19;;-1:-1:-1;;;;;;6811:19:0;;;6698:140::o;17944:29::-;;;;:::o;18731:131::-;18788:7;18815:39;18824:15;18841:12;;18815:8;:39::i;:::-;18808:46;;18731:131;:::o;18058:57::-;;;;;;;;;;;;;:::o;5887:79::-;5952:6;;-1:-1:-1;;;;;5952:6:0;5887:79;:::o;6253:94::-;6333:6;;6293:4;;-1:-1:-1;;;;;6333:6:0;6317:12;:10;:12::i;:::-;-1:-1:-1;;;;;6317:22:0;;6310:29;;6253:94;:::o;19654:191::-;19705:10;18466:16;:14;:16::i;:::-;18443:20;:39;18510:26;:24;:26::i;:::-;18493:14;:43;-1:-1:-1;;;;;18551:21:0;;;18547:157;;18608:15;18615:7;18608:6;:15::i;:::-;-1:-1:-1;;;;;18589:16:0;;;;;;:7;:16;;;;;;;;:34;;;;18672:20;;18638:22;:31;;;;;;:54;18547:157;19745:1;19736:6;:10;19728:37;;;;;-1:-1:-1;;;19728:37:0;;;;;;;;;;;;-1:-1:-1;;;19728:37:0;;;;;;;;;;;;;;;19776:19;19788:6;19776:11;:19::i;:::-;19811:26;;;;;;;;19818:10;;19811:26;;;;;;;;;;19654:191;;:::o;5398:21::-;;;-1:-1:-1;;;;;5398:21:0;;:::o;17980:29::-;;;;:::o;18870:420::-;18917:7;18941:13;:11;:13::i;:::-;18937:78;;-1:-1:-1;18983:20:0;;18976:27;;18937:78;19045:237;19088:179;19253:13;:11;:13::i;:::-;19088:138;19221:4;19088:106;19183:10;;19088:68;19141:14;;19088:26;:24;:26::i;:179::-;19045:20;;;:237;:24;:237;:::i;18016:35::-;;;;:::o;20064:97::-;20100:31;20109:21;20119:10;20109:9;:21::i;:::-;20100:8;:31::i;:::-;20142:11;:9;:11::i;:::-;20064:97::o;17906:31::-;;;;:::o;6993:109::-;6099:9;:7;:9::i;:::-;6091:54;;;;;-1:-1:-1;;;6091:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7066:28;7085:8;7066:18;:28::i;17763:85::-;;;-1:-1:-1;;;;;17763:85:0;;:::o;9340:136::-;9398:7;9425:43;9429:1;9432;9425:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;9418:50;9340:136;-1:-1:-1;;;9340:136:0:o;10290:471::-;10348:7;10593:6;10589:47;;-1:-1:-1;10623:1:0;10616:8;;10589:47;10660:5;;;10664:1;10660;:5;:1;10684:5;;;;;:10;10676:56;;;;-1:-1:-1;;;10676:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11229:132;11287:7;11314:39;11318:1;11321;11314:39;;;;;;;;;;;;;;;;;:3;:39::i;8884:181::-;8942:7;8974:5;;;8998:6;;;;8990:46;;;;;-1:-1:-1;;;8990:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;17468:214;17535:12;;:24;;17552:6;17535:24;:16;:24;:::i;:::-;17520:12;:39;17604:10;17594:21;;;;:9;:21;;;;;;:33;;17620:6;17594:33;:25;:33;:::i;:::-;17580:10;17570:21;;;;:9;:21;;;;;;;;:57;;;;17638:7;;:36;;-1:-1:-1;;;17638:36:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17638:7:0;;;;:16;;:36;;;;;;;;;;;;;:7;:36;;;5:2:-1;;;;30:1;27;20:12;4599:98:0;4679:10;4599:98;:::o;375:106::-;433:7;464:1;460;:5;:13;;472:1;460:13;;;-1:-1:-1;468:1:0;;375:106;-1:-1:-1;375:106:0:o;17230:230::-;17294:12;;:24;;17311:6;17294:24;:16;:24;:::i;:::-;17279:12;:39;17363:10;17353:21;;;;:9;:21;;;;;;:33;;17379:6;17353:33;:25;:33;:::i;:::-;17339:10;17329:21;;;;:9;:21;;;;;;;;:57;;;;17397:7;;:55;;-1:-1:-1;;;17397:55:0;;;;;;;;;17438:4;17397:55;;;;;;;;;;;;-1:-1:-1;;;;;17397:7:0;;;;:20;;:55;;;;;;;;;;;;;:7;:55;;;5:2:-1;;;;30:1;27;20:12;7208:266:0;-1:-1:-1;;;;;7296:22:0;;7274:110;;;;-1:-1:-1;;;7274:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7421:6;;7400:38;;-1:-1:-1;;;;;7400:38:0;;;;7421:6;;7400:38;;7421:6;;7400:38;7449:6;:17;;-1:-1:-1;;;;;;7449:17:0;-1:-1:-1;;;;;7449:17:0;;;;;;;;;;7208:266::o;9813:226::-;9933:7;9969:12;9961:6;;;;9953:29;;;;-1:-1:-1;;;9953:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9953:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10005:5:0;;;9813:226::o;11891:379::-;12011:7;12113:12;12106:5;12098:28;;;;-1:-1:-1;;;12098:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12098:28:0;;12137:9;12153:1;12149;:5;;;;;;;11891:379;-1:-1:-1;;;;;11891:379:0:o

Swarm Source

bzzr://3299949f8cfca9ce61bb93550ec0cb6f4353065a2cc0873d152fea94e1d55403
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.