Contract 0xa7b9123f4b15fE0fF01F469ff5Eab2b41296dC0E 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x68381e62419b97ca47c677e7acd997747f0c4c0eb6c4aa95d7bdffaca35748d5Deposit202953262021-10-27 22:24:273 hrs 40 mins ago0x800c757fb857cc5d2cf3d66bd5d01a3401b5de22 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.021841867866
0x69035ef2a9bb24cb8243109f0c19dcf28a6476dd98e9fca60a840c298111aebdWithdraw202945102021-10-27 22:13:313 hrs 51 mins ago0x7eb405c6e6a8069c6d54809353080746028b62b5 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.011301516938
0x6f3e8835c0130bdb23fa696a6d4f482266452897ead57e1434bc2eb015cb86e5Withdraw202852512021-10-27 20:06:435 hrs 58 mins ago0x0ddf0e2ab3dfa85997b4e42f40126d876f39b9d8 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.018299901913
0x1117114999b7a706046718aed9e3a388b9f6ca7170a3929f14a37655858a1f54Withdraw202789812021-10-27 18:35:317 hrs 29 mins ago0xffce05977d9bbb31a2afeb10980f7e35247d1121 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.016350740601
0x25f0ae4e608f8f8077eaa3d00428e219db4eada22338c8af56028c133952e9e6Withdraw202419882021-10-27 9:35:4716 hrs 29 mins ago0x1fcdf62b183974b8b166f0abf4522778958573f9 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.038370613257
0x0c6a34d73589a0a0f0f368f1afceedadeba42c1145f2f5db0fc2a0936338b153Withdraw202264452021-10-27 5:41:5520 hrs 23 mins ago0xf6f97215f9a7e412cd22edb071eefad9374682ad IN  Tomb Finance: Tomb Rewards Pool0 FTM0.015874926759
0x7a395352f4492ba31f8f99a6801d5e63c8f1133b433133648e8a28bfd8cadf2eWithdraw202262992021-10-27 5:38:4420 hrs 26 mins ago0xf6f97215f9a7e412cd22edb071eefad9374682ad IN  Tomb Finance: Tomb Rewards Pool0 FTM0.01501107398
0x3222c9cc7eb6def11960e0374271ad3236be488d5c51a468254b98f56cc091afWithdraw202222752021-10-27 4:38:2821 hrs 26 mins ago0x50aa3026b7925ae43007c0a214b2256b16971c8f IN  Tomb Finance: Tomb Rewards Pool0 FTM0.017430624123
0x1fd4c5772a438b896497ee0345030a3c5ced9116822656d317477793512bc1c0Withdraw202205842021-10-27 4:14:0221 hrs 50 mins ago0x50aa3026b7925ae43007c0a214b2256b16971c8f IN  Tomb Finance: Tomb Rewards Pool0 FTM0.016272082437
0xd4c057cf8c312020001eb7079bb16b1c5e9564c7c2ec17422af406bb1e743f2cWithdraw202129172021-10-27 2:13:2723 hrs 51 mins ago0x555983ce2161b463fedb16081df72032e7595540 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.01044414295
0xcafb294ea8101797a473166da5414782942f4f57b385644b7acc251ec6b21ab2Withdraw202026392021-10-26 23:46:451 day 2 hrs ago0x55379d72a50b3318647093f497f336c75ab6ce8d IN  Tomb Finance: Tomb Rewards Pool0 FTM0.028692416688
0xc27d7b759c76cb230ff0f0176b219ba647370786efa735812a4df07a52e58db7Withdraw202022672021-10-26 23:41:221 day 2 hrs ago0x55379d72a50b3318647093f497f336c75ab6ce8d IN  Tomb Finance: Tomb Rewards Pool0 FTM0.026182961064
0x3b3726c08c5c8173db7ce2f5a5ccae5d579af15097d64c59721425655be6d81eWithdraw202018652021-10-26 23:35:501 day 2 hrs ago0x55379d72a50b3318647093f497f336c75ab6ce8d IN  Tomb Finance: Tomb Rewards Pool0 FTM0.028458163468
0x52f04d584647ae1edfce141d7ee280b2556546adca71422a3eba5ae505da187cWithdraw201920842021-10-26 21:16:461 day 4 hrs ago0x492afcda95f17126ca4bb09c78e7bd11cdfb8735 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.017950923861
0x48f2705da81f2d52224080ddf5ed738516b57e28d25cf31b1e69f2bca7f51be0Withdraw201893282021-10-26 20:38:441 day 5 hrs ago0xc4160a377ae009f9c939f74418e47b7ba49a346b IN  Tomb Finance: Tomb Rewards Pool0 FTM0.018269414369
0xdad721022d5ef75b005a83a20bce8692b2d54e3add8b1e65e2f5549b24007850Withdraw201851782021-10-26 19:40:091 day 6 hrs ago0x06987a693833bd605307592894f4ff7695614d3a IN  Tomb Finance: Tomb Rewards Pool0 FTM0.039475733211
0xb12238e33050e4c635a16f293f433fab558d036c13a1e1b27b673350640268d8Deposit201845752021-10-26 19:32:301 day 6 hrs ago0x06987a693833bd605307592894f4ff7695614d3a IN  Tomb Finance: Tomb Rewards Pool0 FTM0.069227443027
0x6666de7b9124e1c0c6d96408d6058e41c12c9496e0cbee7ac08e4d6d4c465d4dWithdraw201774192021-10-26 17:52:201 day 8 hrs ago0x492afcda95f17126ca4bb09c78e7bd11cdfb8735 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.044032239763
0x3b70e600e55eaeb8f8868ee8df76c8a1fda67aaddf364b7c6b3f3d618a13bcdeWithdraw201660222021-10-26 14:56:321 day 11 hrs ago0xbffa9f687ade110d442d3bdcc55d5613ac1ca3e8 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.059684934192
0xf544bda2446515d6b55e5e5ebac77c56eb6244a52485744222541d9ed4407d62Withdraw201600872021-10-26 13:23:461 day 12 hrs ago0x2a000767e4f1d497c3517659e63e9a73a0bbb02c IN  Tomb Finance: Tomb Rewards Pool0 FTM0.024071399664
0x53a7e516f7027ec8a11d1183048cc08c2861c8b3a521546f08480d8bb0d8bacaWithdraw201579432021-10-26 12:52:211 day 13 hrs ago0xdf0d30ce67faf0a3b1895d9a57ea99b199ab6e3a IN  Tomb Finance: Tomb Rewards Pool0 FTM0.028105902988
0x5442f32c5c0c24615d226da44bbe66542193189998e033d59094fa5ffba77450Withdraw201257182021-10-26 5:03:091 day 21 hrs ago0xd06a56e1ca79fd6cab8b7491b5f096c1beb7e6aa IN  Tomb Finance: Tomb Rewards Pool0 FTM0.018333682835
0x6bd740571527b73df9e27ba3627096aa7bc52ceea8bc201e39f428199f565d30Withdraw201225772021-10-26 4:15:281 day 21 hrs ago0xf0cd8caa78673ca316d5fd7f223a010f0cdf0f15 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.011000784561
0xef592adf90c18016e6a326886129aff0b7daf04154b4474d14dffd00f68ab627Withdraw200850802021-10-25 19:28:492 days 6 hrs ago0x080bd927f9a9ae6048135c2085d544793d5f2027 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.00653279069
0xdc7611347b5243dfa533e853029310ba6a00b28fe1945f5b991919a9c4d1995eWithdraw200850742021-10-25 19:28:452 days 6 hrs ago0x080bd927f9a9ae6048135c2085d544793d5f2027 IN  Tomb Finance: Tomb Rewards Pool0 FTM0.00653279069
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x89f19c1b81174838cc3070cab24b1ae792a42e326dde3c4854faeef45ac8689b86730642021-06-02 22:11:53147 days 3 hrs ago Tomb Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TombRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 5 : TombRewardPool.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

// Note that this pool has no minter key of TOMB (rewards).
// Instead, the governance will call TOMB distributeReward method and send reward to this pool at the beginning.
contract TombRewardPool {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. TOMBs to distribute in the pool.
        uint256 lastRewardTime; // Last time that TOMBs distribution occurred.
        uint256 accTombPerShare; // Accumulated TOMBs per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
    }

    IERC20 public tomb;

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    // The time when TOMB mining starts.
    uint256 public poolStartTime;

    uint256[] public epochTotalRewards = [80000 ether, 60000 ether];

    // Time when each epoch ends.
    uint256[3] public epochEndTimes;

    // Reward per second for each of 2 epochs (last item is equal to 0 - for sanity).
    uint256[3] public epochTombPerSecond;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event RewardPaid(address indexed user, uint256 amount);

    constructor(address _tomb, uint256 _poolStartTime) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_tomb != address(0)) tomb = IERC20(_tomb);

        poolStartTime = _poolStartTime;

        epochEndTimes[0] = poolStartTime + 4 days; // Day 2-5
        epochEndTimes[1] = epochEndTimes[0] + 5 days; // Day 6-10

        epochTombPerSecond[0] = epochTotalRewards[0].div(4 days);
        epochTombPerSecond[1] = epochTotalRewards[1].div(5 days);

        epochTombPerSecond[2] = 0;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "TombRewardPool: caller is not the operator");
        _;
    }

    function checkPoolDuplicate(IERC20 _token) internal view {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(poolInfo[pid].token != _token, "TombRewardPool: existing pool?");
        }
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime
    ) public onlyOperator {
        checkPoolDuplicate(_token);
        if (_withUpdate) {
            massUpdatePools();
        }
        if (block.timestamp < poolStartTime) {
            // chef is sleeping
            if (_lastRewardTime == 0) {
                _lastRewardTime = poolStartTime;
            } else {
                if (_lastRewardTime < poolStartTime) {
                    _lastRewardTime = poolStartTime;
                }
            }
        } else {
            // chef is cooking
            if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
                _lastRewardTime = block.timestamp;
            }
        }
        bool _isStarted = (_lastRewardTime <= poolStartTime) || (_lastRewardTime <= block.timestamp);
        poolInfo.push(PoolInfo({token: _token, allocPoint: _allocPoint, lastRewardTime: _lastRewardTime, accTombPerShare: 0, isStarted: _isStarted}));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's TOMB allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint);
        }
        pool.allocPoint = _allocPoint;
    }

    // Return accumulate rewards over the given _fromTime to _toTime.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        for (uint8 epochId = 2; epochId >= 1; --epochId) {
            if (_toTime >= epochEndTimes[epochId - 1]) {
                if (_fromTime >= epochEndTimes[epochId - 1]) {
                    return _toTime.sub(_fromTime).mul(epochTombPerSecond[epochId]);
                }

                uint256 _generatedReward = _toTime.sub(epochEndTimes[epochId - 1]).mul(epochTombPerSecond[epochId]);
                if (epochId == 1) {
                    return _generatedReward.add(epochEndTimes[0].sub(_fromTime).mul(epochTombPerSecond[0]));
                }
                for (epochId = epochId - 1; epochId >= 1; --epochId) {
                    if (_fromTime >= epochEndTimes[epochId - 1]) {
                        return _generatedReward.add(epochEndTimes[epochId].sub(_fromTime).mul(epochTombPerSecond[epochId]));
                    }
                    _generatedReward = _generatedReward.add(epochEndTimes[epochId].sub(epochEndTimes[epochId - 1]).mul(epochTombPerSecond[epochId]));
                }
                return _generatedReward.add(epochEndTimes[0].sub(_fromTime).mul(epochTombPerSecond[0]));
            }
        }
        return _toTime.sub(_fromTime).mul(epochTombPerSecond[0]);
    }

    // View function to see pending TOMBs on frontend.
    function pendingTOMB(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accTombPerShare = pool.accTombPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _tombReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accTombPerShare = accTombPerShare.add(_tombReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accTombPerShare).div(1e18).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (tokenSupply == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        if (!pool.isStarted) {
            pool.isStarted = true;
            totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
        }
        if (totalAllocPoint > 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _tombReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accTombPerShare = pool.accTombPerShare.add(_tombReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 _pending = user.amount.mul(pool.accTombPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeTombTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accTombPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public {
        address _sender = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 _pending = user.amount.mul(pool.accTombPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeTombTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accTombPerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 _amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.token.safeTransfer(msg.sender, _amount);
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
    }

    // Safe tomb transfer function, just in case if rounding error causes pool to not have enough TOMBs.
    function safeTombTransfer(address _to, uint256 _amount) internal {
        uint256 _tombBal = tomb.balanceOf(address(this));
        if (_tombBal > 0) {
            if (_amount > _tombBal) {
                tomb.safeTransfer(_to, _tombBal);
            } else {
                tomb.safeTransfer(_to, _amount);
            }
        }
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function governanceRecoverUnsupported(
        IERC20 _token,
        uint256 amount,
        address to
    ) external onlyOperator {
        if (block.timestamp < epochEndTimes[1] + 30 days) {
            // do not allow to drain token if less than 30 days after farming
            require(_token != tomb, "!tomb");
            uint256 length = poolInfo.length;
            for (uint256 pid = 0; pid < length; ++pid) {
                PoolInfo storage pool = poolInfo[pid];
                require(_token != pool.token, "!pool.token");
            }
        }
        _token.safeTransfer(to, amount);
    }
}

File 2 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 4 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tomb","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochEndTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochTombPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTOMB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accTombPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tomb","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600060045560c06040526910f0cf064dd5920000006080908152690cb49b44ba602d80000060a05262000037906006906002620001d2565b503480156200004557600080fd5b506040516200207c3803806200207c833981810160405260408110156200006b57600080fd5b508051602090910151428111620000b2576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b03821615620000de57600180546001600160a01b0319166001600160a01b0384161790555b600581905562054600808201600755620bdd808201600855600680546200012a9291906000906200010b57fe5b90600052602060002001546200016960201b620015271790919060201c565b600a55600680546200014791620697809160019081106200010b57fe5b600b5550506000600c81905580546001600160a01b0319163317905562000244565b6000808211620001c0576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381620001ca57fe5b049392505050565b8280548282559060005260206000209081019282156200021b579160200282015b828111156200021b57825182906001600160501b0316905591602001919060010190620001f3565b50620002299291506200022d565b5090565b5b808211156200022957600081556001016200022e565b611e2880620002546000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c8063630b5ba1116100cd5780639a25cefc11610081578063b89e73c111610066578063b89e73c114610454578063c040f23a14610471578063e2bbb158146104795761016c565b80639a25cefc14610404578063b3ab15fb146104215761016c565b806389744bb4116100b257806389744bb41461033257806393f1a40b1461036b57806396805e54146103bd5761016c565b8063630b5ba11461030d5780637704d44e146103155761016c565b806351eb05a61161012457806354575af41161010957806354575af414610291578063570ca735146102d45780635f96dc11146103055761016c565b806351eb05a6146102575780635312ea8e146102745761016c565b80631ab06ee5116101555780631ab06ee5146101ec578063231f0c6a14610211578063441a3e70146102345761016c565b80631526fe271461017157806317caf6f1146101d2575b600080fd5b61018e6004803603602081101561018757600080fd5b503561049c565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b6101da6104f4565b60408051918252519081900360200190f35b61020f6004803603604081101561020257600080fd5b50803590602001356104fa565b005b6101da6004803603604081101561022757600080fd5b50803590602001356105cf565b61020f6004803603604081101561024a57600080fd5b50803590602001356107ca565b61020f6004803603602081101561026d57600080fd5b50356109e0565b61020f6004803603602081101561028a57600080fd5b5035610b82565b61020f600480360360608110156102a757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359160409091013516610c2b565b6102dc610e1f565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101da610e3b565b61020f610e41565b6101da6004803603602081101561032b57600080fd5b5035610e64565b6101da6004803603604081101561034857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e78565b6103a46004803603604081101561038157600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610ffa565b6040805192835260208301919091528051918290030190f35b61020f600480360360808110156103d357600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169060408101351515906060013561101e565b6101da6004803603602081101561041a57600080fd5b5035611285565b61020f6004803603602081101561043757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166112a3565b6101da6004803603602081101561046a57600080fd5b503561135a565b6102dc611367565b61020f6004803603604081101561048f57600080fd5b5080359060200135611383565b600281815481106104a957fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909160ff1685565b60045481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461056a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d58602a913960400191505060405180910390fd5b610572610e41565b60006002838154811061058157fe5b60009182526020909120600590910201600481015490915060ff16156105c8576105c4826105be83600101546004546115a890919063ffffffff16565b9061161f565b6004555b6001015550565b600060025b60018160ff16106107af5760076001820360ff16600381106105f257fe5b015483106107885760076001820360ff166003811061060d57fe5b015484106106425761063a600a8260ff166003811061062857fe5b015461063485876115a8565b90611693565b9150506107c4565b6000610678600a8360ff166003811061065757fe5b015461063460076001860360ff166003811061066f57fe5b015487906115a8565b90508160ff16600114156106b4576106ab6106a4600a60005b015461063488600760005b0154906115a8565b829061161f565b925050506107c4565b6001820391505b60018260ff16106107795760076001830360ff16600381106106d957fe5b0154851061070d576106ab6106a4600a8460ff16600381106106f757fe5b01546106348860078760ff166003811061069c57fe5b61074d6106a4600a8460ff166003811061072357fe5b015461063460076001870360ff166003811061073b57fe5b015460078760ff166003811061069c57fe5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019190506106bb565b6106ab6106a4600a6000610691565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016105d4565b50600a546107c19061063484866115a8565b90505b92915050565b60003390506000600284815481106107de57fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252922080546005909202909201925084111561088c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610895856109e0565b60006108d282600101546108cc670de0b6b3a76400006108c68760030154876000015461169390919063ffffffff16565b90611527565b906115a8565b90508015610931576108e48482611706565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561096857815461094390866115a8565b825582546109689073ffffffffffffffffffffffffffffffffffffffff1685876117fc565b6003830154825461098691670de0b6b3a7640000916108c691611693565b6001830155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000600282815481106109ef57fe5b9060005260206000209060050201905080600201544211610a105750610b7f565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610a8057600080fd5b505afa158015610a94573d6000803e3d6000fd5b505050506040513d6020811015610aaa57600080fd5b5051905080610ac0575042600290910155610b7f565b600482015460ff16610b0f57600480830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558301549054610b0b9161161f565b6004555b60045415610b76576000610b278360020154426105cf565b90506000610b486004546108c686600101548561169390919063ffffffff16565b9050610b6e610b63846108c684670de0b6b3a7640000611693565b60038601549061161f565b600385015550505b50426002909101555b50565b600060028281548110610b9157fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610bee9173ffffffffffffffffffffffffffffffffffffffff9190911690836117fc565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d58602a913960400191505060405180910390fd5b60085462278d0001421015610df95760015473ffffffffffffffffffffffffffffffffffffffff84811691161415610d3457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f21746f6d62000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60025460005b81811015610df657600060028281548110610d5157fe5b60009182526020909120600590910201805490915073ffffffffffffffffffffffffffffffffffffffff87811691161415610ded57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21706f6f6c2e746f6b656e000000000000000000000000000000000000000000604482015290519081900360640190fd5b50600101610d3a565b50505b610e1a73ffffffffffffffffffffffffffffffffffffffff841682846117fc565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60025460005b81811015610e6057610e58816109e0565b600101610e47565b5050565b600a8160038110610e7157fe5b0154905081565b60008060028481548110610e8857fe5b600091825260208083208784526003808352604080862073ffffffffffffffffffffffffffffffffffffffff808b168852908552818720600590960290930191820154825482517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610f2657600080fd5b505afa158015610f3a573d6000803e3d6000fd5b505050506040513d6020811015610f5057600080fd5b5051600285015490915042118015610f6757508015155b15610fc4576000610f7c8560020154426105cf565b90506000610f9d6004546108c688600101548561169390919063ffffffff16565b9050610fbf610fb8846108c684670de0b6b3a7640000611693565b859061161f565b935050505b610fef83600101546108cc670de0b6b3a76400006108c686886000015461169390919063ffffffff16565b979650505050505050565b60036020908152600092835260408084209091529082529020805460019091015482565b60005473ffffffffffffffffffffffffffffffffffffffff16331461108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d58602a913960400191505060405180910390fd5b61109783611889565b81156110a5576110a5610e41565b6005544210156110d157806110bd57506005546110cc565b6005548110156110cc57506005545b6110e5565b8015806110dd57504281105b156110e55750425b6000600554821115806110f85750428211155b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169215159290921790915590915061127e5760045461127a908661161f565b6004555b5050505050565b6006818154811061129257fe5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314611313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d58602a913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60078160038110610e7157fe5b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600033905060006002848154811061139757fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529220600590910290910191506113de856109e0565b80541561147757600061141682600101546108cc670de0b6b3a76400006108c68760030154876000015461169390919063ffffffff16565b90508015611475576114288482611706565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156114b05781546114a19073ffffffffffffffffffffffffffffffffffffffff16843087611957565b80546114ad908561161f565b81555b600382015481546114ce91670de0b6b3a7640000916108c691611693565b6001820155604080518581529051869173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600080821161159757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816115a057fe5b049392505050565b60008282111561161957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156107c157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826116a2575060006107c4565b828202828482816116af57fe5b04146107c1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611da86021913960400191505060405180910390fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561177757600080fd5b505afa15801561178b573d6000803e3d6000fd5b505050506040513d60208110156117a157600080fd5b505190508015610e1a57808211156117dc576001546117d79073ffffffffffffffffffffffffffffffffffffffff1684836117fc565b610e1a565b600154610e1a9073ffffffffffffffffffffffffffffffffffffffff1684845b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610e1a9084906119f2565b60025460005b81811015610e1a578273ffffffffffffffffffffffffffffffffffffffff16600282815481106118bb57fe5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff16141561194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f546f6d62526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b60010161188f565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526119ec9085906119f2565b50505050565b6060611a54826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611aca9092919063ffffffff16565b805190915015610e1a57808060200190516020811015611a7357600080fd5b5051610e1a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611dc9602a913960400191505060405180910390fd5b6060611ad98484600085611ae3565b90505b9392505050565b606082471015611b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611d826026913960400191505060405180910390fd5b611b4785611c93565b611bb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611c1c57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611bdf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c7e576040519150601f19603f3d011682016040523d82523d6000602084013e611c83565b606091505b5091509150610fef828286611c99565b3b151590565b60608315611ca8575081611adc565b825115611cb85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d1c578181015183820152602001611d04565b50505050905090810190601f168015611d495780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe546f6d62526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122071e6ade4282ca1ab944f4e2065536bab0de1bb6a5014d5696d40601e317cec5064736f6c634300060c00330000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb70000000000000000000000000000000000000000000000000000000060b8cb48

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb70000000000000000000000000000000000000000000000000000000060b8cb48

-----Decoded View---------------
Arg [0] : _tomb (address): 0x6c021ae822bea943b2e66552bde1d2696a53fbb7
Arg [1] : _poolStartTime (uint256): 1622723400

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb7
Arg [1] : 0000000000000000000000000000000000000000000000000000000060b8cb48


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.