Contract 0xc0f0847844938e17b79a271669e819d38665e63e

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc86b315fa385f3f5e227c390853a5304b8e4a68ae49b5e9f4f2f427d48c3a9baEmergency Withdr...403025352022-06-11 19:26:43107 days 22 hrs ago0x80acdadfdc65f011c3ddc75f7dbae7d06f5339bf IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.002455809151
0xe758ab0057a4988e16e8fe541060497d53a5c2ea264179e2401363dd5b1f9c47Emergency Withdr...403025292022-06-11 19:26:36107 days 22 hrs ago0x80acdadfdc65f011c3ddc75f7dbae7d06f5339bf IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.002351363558
0x25684591b91fb8d1334e21140b03d6eece8b14c1e77e263526a8e4d9b06ef807Emergency Withdr...403025232022-06-11 19:26:29107 days 22 hrs ago0x80acdadfdc65f011c3ddc75f7dbae7d06f5339bf IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.002579658122
0x08a57ba8e4cd11330fa6892c6c9e815953f2b5d3d3d9b31b1fc4ef87819964e4Withdraw337305182022-03-18 6:44:15193 days 10 hrs ago0x3c811c0b7c4ac2a59f490cdf114099d8173a21e1 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.013682274233
0x065a83cae8ee3a879f8cc426e3dcf14476b1c00346eaeda7d06ffa01b0cbf764Withdraw337305062022-03-18 6:43:59193 days 10 hrs ago0x3c811c0b7c4ac2a59f490cdf114099d8173a21e1 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.011820729104
0x0d6a96ed03ef074ff8cab3d55a42d0562811795361317a0d4fee88bbecac1104Withdraw336231492022-03-17 1:43:00194 days 15 hrs ago0x383697a7fef14483920ba9be57c26115383d1dda IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.055103933502
0x6f74e659a52e37c5a647d721ab3e73bdbd6571aa99fb004cbc852d96d5bfb724Withdraw335892532022-03-16 15:57:14195 days 1 hr ago0x572d25967ff49b54aa484e5e71ebcea9a13c58ac IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.026866632
0x78973d93ed0d3b959cf07ed59d822c5c5d0d54b0d59ec2df5b3da245404cd4f9Withdraw335650992022-03-16 9:23:18195 days 8 hrs ago0x0a9bc3b0c40ef4c29ac62e8e34058fdc593074f0 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.018435505223
0x427457d6f1197954185a0e2f9e3731686f2b3229d709c48fdddbcadf79edb33cWithdraw335596352022-03-16 7:55:53195 days 9 hrs ago0x40ba6b6ee6f3de10b835e328b68d88a336809ffb IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.017222966739
0xf546f505ad60ad3b97f51ad22f47041da9f3c4d19d410d76cced659637387a59Withdraw335596052022-03-16 7:55:25195 days 9 hrs ago0x40ba6b6ee6f3de10b835e328b68d88a336809ffb IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.020917750726
0x4dba2a35ca986738b20da604b0ee6d22da8e10004ea24bb9f2ff5f4eca522725Withdraw335475682022-03-16 4:45:11195 days 12 hrs ago0x1103fa3b4724d26db933621befb2f84dc55f4e07 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.012000042854
0x45f8736dca1cf615f8d139a836810de1799015dcbbbad86d3c2d641c33dfed81Withdraw335427692022-03-16 3:31:21195 days 14 hrs ago0x4b46db1b3f2b5dec2a831664175a0d4ad9224440 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.029067160223
0x07c2ca1108484e5e8a6717a52d11bcc2a4ac1fe8c7e3bd9ded729bbc7713cc81Withdraw335427542022-03-16 3:31:08195 days 14 hrs ago0x4b46db1b3f2b5dec2a831664175a0d4ad9224440 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.035298016173
0xf91f750b592c02c245e0a089c68fd614c45859de395ca00d057e68e59b30ffe2Withdraw335390412022-03-16 2:26:07195 days 15 hrs ago0x80acdadfdc65f011c3ddc75f7dbae7d06f5339bf IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.045727542044
0x7acd54f25834f1dadd77f3d895d2e5d5e70d69879e26a8f8a658eade84b29557Withdraw335390042022-03-16 2:25:12195 days 15 hrs ago0x80acdadfdc65f011c3ddc75f7dbae7d06f5339bf IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.036819865901
0x27f4caa9cb23dfee998b91abf3053f8a36b047eccfc1a9eabf4c91403cf45c40Withdraw335359162022-03-16 1:30:57195 days 16 hrs ago0x66e086c039c5ef99e6789d68baf9e200c06ecd85 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.031197951075
0x3a0f76dc7c76677384c40573a6d81ebc55a1c13fa0b8d517a866f0dff09ac067Withdraw335339532022-03-16 0:58:07195 days 16 hrs ago0xc504f99ec5a08e869d217f22c82b18a5b9c8f740 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.021790413404
0x8db12fa34c0929dfb49aa3a016f014eb2439ce1147b8d9e1681a439278f1819cWithdraw335300662022-03-15 23:59:16195 days 17 hrs ago0x1d4b8462dd9f7faa60944ef40b59e1b1e2cf34a1 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.023658792775
0x6d921b53040e2a8e5336d737b5519bb458ac9ee208ae73fe04f75a466a498845Withdraw335300452022-03-15 23:58:59195 days 17 hrs ago0x1d4b8462dd9f7faa60944ef40b59e1b1e2cf34a1 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.023928709725
0xc4d51e70cfc354b067c96cadea0330e6e83ea48818f2c38e8b655d810d1f5852Withdraw335296202022-03-15 23:52:50195 days 17 hrs ago0xd7bb491fa59e2e7b2e2c4e32de0c7c6ba68d0b9c IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.033624058885
0xbef856972b4ffaac3d0d12245b65e4198f6bfd823129df474d490c8e68bf2b2dWithdraw335269742022-03-15 23:06:43195 days 18 hrs ago0x3aefa90aeafd7a293a8c8746a9ffc30fc5173382 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.02298917169
0xd1ef43b64e12bd398505445b2ae157c8143a5262133cc3d28286e4187ffea178Withdraw335243192022-03-15 22:23:25195 days 19 hrs ago0x6bfc44690eb5f38346c9eef2ca5aad27e0c66b38 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.020771303794
0x778430bbb93c70564087ce1a006ca297b592c147f0f4b5d5d818ea273e29c6ecWithdraw335234982022-03-15 22:11:38195 days 19 hrs ago0x135076af865085cb575fa5b1a3a8d36b4d0332d8 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.0193705633
0xe88373359fa65e58dd855244a6e8bc8b8c00fd67868aab3e4cef13941a8c2642Withdraw335234882022-03-15 22:11:29195 days 19 hrs ago0x135076af865085cb575fa5b1a3a8d36b4d0332d8 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.02379430242
0x27366c3696a21001585df1ae17099e8a7962573f9173ff70369eb3ea46706d50Withdraw335227332022-03-15 21:59:49195 days 19 hrs ago0x27dd3c3bbaa91604a9706345d964a740da9bbc87 IN  0xc0f0847844938e17b79a271669e819d38665e63e0 FTM0.025254539576
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x56b65a1302a9f01a7ef399c1d42919b8078196d70b8962c00e310d8fb13058a1332123042022-03-12 8:02:32199 days 9 hrs ago 0x3f7f2a0faa31a291a7b3470ac5c4dd6b8b060470  Contract Creation0 FTM
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

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

Contract Name:
TombGenesisRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : TombGenesisRewardPool.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 TombGenesisRewardPool {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many 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. TOMB to distribute.
        uint256 lastRewardTime; // Last time that TOMB distribution occurs.
        uint256 accTombPerShare; // Accumulated TOMB per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public tomb;
    address public daoFundAddress;

    // 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;

    // The time when TOMB mining ends.
    uint256 public poolEndTime;

    uint256 public tombPerSecond;
    // uint256 public runningTime;
    // uint256 public totalRewards;

    // TESTNET
    // uint256 public tombPerSecond = 3.0555555 ether; // 11000 TOMB / (1h * 60min * 60s)
    // uint256 public runningTime = 72 hours; // 1 hours
    // uint256 public constant TOTAL_REWARDS = 11000 ether;
    // END TESTNET

    // MAINNET
    // uint256 public tombPerSecond = 0.03858 ether; // 10000 TOMB / (3d * 24h * 60min * 60s)
    uint256 public runningTime = 3 days; // 3 days
    uint256 public constant TOTAL_REWARDS = 14000 ether;
    // END MAINNET

    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,
        address _daoFund,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_tomb != address(0)) tomb = IERC20(_tomb);
        if (_daoFund != address(0)) daoFundAddress = _daoFund;
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        tombPerSecond = TOTAL_REWARDS.div(runningTime);
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "TombGenesisPool: 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, "TombGenesisPool: 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 _from to _to block.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(tombPerSecond);
            return poolEndTime.sub(_fromTime).mul(tombPerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(tombPerSecond);
            return _toTime.sub(_fromTime).mul(tombPerSecond);
        }
    }

    // View function to see pending TOMB 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);
            uint256 depositDebt = _amount.mul(100).div(10000); // tax: 1% of deposit
            user.amount = user.amount.add(_amount.sub(depositDebt));
            pool.token.safeTransfer(daoFundAddress, depositDebt);
        }
        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 _tombBalance = tomb.balanceOf(address(this));
        if (_tombBalance > 0) {
            if (_amount > _tombBalance) {
                tomb.safeTransfer(_to, _tombBalance);
            } 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 < poolEndTime + 90 days) {
            // do not allow to drain core token (TOMB or lps) if less than 90 days after pool ends
            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 : 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 3 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 4 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 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tomb","type":"address"},{"internalType":"address","name":"_daoFund","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":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[],"name":"daoFundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"_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":[],"name":"poolEndTime","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":[],"name":"runningTime","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":"tombPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

608060405260006005556203f4806009553480156200001d57600080fd5b506040516200198038038062001980833981810160405260608110156200004357600080fd5b508051602082015160409092015190919042811162000092576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b03831615620000be57600180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b03821615620000ea57600280546001600160a01b0319166001600160a01b0384161790555b60068190556009548082016007556200011b906902f6f10780d22cc000009062000139602090811b620010b917901c565b6008555050600080546001600160a01b0319163317905550620001a2565b600080821162000190576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816200019a57fe5b049392505050565b6117ce80620001b26000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063630b5ba1116100b857806396805e541161007c57806396805e541461034d578063a2b123a814610387578063ad9bd68f1461038f578063b3ab15fb14610397578063c040f23a146103bd578063e2bbb158146103c557610142565b8063630b5ba1146102c45780636e271dd5146102cc57806389744bb4146102d457806393f1a40b14610300578063943f013d1461034557610142565b8063441a3e701161010a578063441a3e701461020557806351eb05a6146102285780635312ea8e1461024557806354575af414610262578063570ca735146102985780635f96dc11146102bc57610142565b806309cf6091146101475780631526fe271461016157806317caf6f1146101b55780631ab06ee5146101bd578063231f0c6a146101e2575b600080fd5b61014f6103e8565b60408051918252519081900360200190f35b61017e6004803603602081101561017757600080fd5b50356103f6565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61014f610441565b6101e0600480360360408110156101d357600080fd5b5080359060200135610447565b005b61014f600480360360408110156101f857600080fd5b50803590602001356104f5565b6101e06004803603604081101561021b57600080fd5b50803590602001356105ba565b6101e06004803603602081101561023e57600080fd5b5035610777565b6101e06004803603602081101561025b57600080fd5b50356108d5565b6101e06004803603606081101561027857600080fd5b506001600160a01b03813581169160208101359160409091013516610971565b6102a0610ab9565b604080516001600160a01b039092168252519081900360200190f35b61014f610ac8565b6101e0610ace565b61014f610af1565b61014f600480360360408110156102ea57600080fd5b50803590602001356001600160a01b0316610af7565b61032c6004803603604081101561031657600080fd5b50803590602001356001600160a01b0316610c58565b6040805192835260208301919091528051918290030190f35b61014f610c7c565b6101e06004803603608081101561036357600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610c82565b61014f610e7f565b6102a0610e85565b6101e0600480360360208110156103ad57600080fd5b50356001600160a01b0316610e94565b6102a0610eff565b6101e0600480360360408110156103db57600080fd5b5080359060200135610f0e565b6902f6f10780d22cc0000081565b6003818154811061040357fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60055481565b6000546001600160a01b031633146104905760405162461bcd60e51b815260040180806020018281038252602b81526020018061176e602b913960400191505060405180910390fd5b610498610ace565b6000600383815481106104a757fe5b60009182526020909120600590910201600481015490915060ff16156104ee576104ea826104e4836001015460055461112090919063ffffffff16565b9061117d565b6005555b6001015550565b6000818310610506575060006105b4565b600754821061056e576007548310610520575060006105b4565b60065483116105535761054c60085461054660065460075461112090919063ffffffff16565b906111de565b90506105b4565b61054c6008546105468560075461112090919063ffffffff16565b600654821161057f575060006105b4565b60065483116105a35761054c6008546105466006548561112090919063ffffffff16565b60085461054c906105468486611120565b92915050565b60003390506000600384815481106105ce57fe5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922080546005909202909201925084111561064a576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61065385610777565b6000610690826001015461068a670de0b6b3a7640000610684876003015487600001546111de90919063ffffffff16565b906110b9565b90611120565b905080156106e2576106a28482611237565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561070c5781546106f49086611120565b8255825461070c906001600160a01b031685876112ed565b6003830154825461072a91670de0b6b3a764000091610684916111de565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006003828154811061078657fe5b90600052602060002090600502019050806002015442116107a757506108d2565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107f157600080fd5b505afa158015610805573d6000803e3d6000fd5b505050506040513d602081101561081b57600080fd5b50519050806108315750426002909101556108d2565b600482015460ff166108625760048201805460ff1916600190811790915582015460055461085e9161117d565b6005555b600554156108c957600061087a8360020154426104f5565b9050600061089b6005546106848660010154856111de90919063ffffffff16565b90506108c16108b68461068484670de0b6b3a76400006111de565b60038601549061117d565b600385015550505b50426002909101555b50565b6000600382815481106108e457fe5b600091825260208083208584526004825260408085203380875293528420805485825560018201959095556005909302018054909450919291610934916001600160a01b039190911690836112ed565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109ba5760405162461bcd60e51b815260040180806020018281038252602b81526020018061176e602b913960400191505060405180910390fd5b6007546276a70001421015610aa0576001546001600160a01b0384811691161415610a15576040805162461bcd60e51b815260206004808301919091526024820152633a37b6b160e11b604482015290519081900360640190fd5b60035460005b81811015610a9d57600060038281548110610a3257fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a94576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a1b565b50505b610ab46001600160a01b03841682846112ed565b505050565b6000546001600160a01b031681565b60065481565b60035460005b81811015610aed57610ae581610777565b600101610ad4565b5050565b60075481565b60008060038481548110610b0757fe5b60009182526020808320878452600480835260408086206001600160a01b038a811688529085528187206005969096029093016003810154815483516370a0823160e01b81523095810195909552925191985095969491909316926370a08231926024808201939291829003018186803b158015610b8457600080fd5b505afa158015610b98573d6000803e3d6000fd5b505050506040513d6020811015610bae57600080fd5b5051600285015490915042118015610bc557508015155b15610c22576000610bda8560020154426104f5565b90506000610bfb6005546106848860010154856111de90919063ffffffff16565b9050610c1d610c168461068484670de0b6b3a76400006111de565b859061117d565b935050505b610c4d836001015461068a670de0b6b3a76400006106848688600001546111de90919063ffffffff16565b979650505050505050565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b6000546001600160a01b03163314610ccb5760405162461bcd60e51b815260040180806020018281038252602b81526020018061176e602b913960400191505060405180910390fd5b610cd48361133f565b8115610ce257610ce2610ace565b600654421015610d0e5780610cfa5750600654610d09565b600654811015610d0957506006545b610d22565b801580610d1a57504281105b15610d225750425b600060065482111580610d355750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260038054600181018255945295517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590940293840180546001600160a01b031916919096161790945594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f909201805460ff191692151592909217909155909150610e7857600554610e74908661117d565b6005555b5050505050565b60085481565b6002546001600160a01b031681565b6000546001600160a01b03163314610edd5760405162461bcd60e51b815260040180806020018281038252602b81526020018061176e602b913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6000339050600060038481548110610f2257fe5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922060059091029091019150610f5c85610777565b805415610fe8576000610f94826001015461068a670de0b6b3a7640000610684876003015487600001546111de90919063ffffffff16565b90508015610fe657610fa68482611237565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b831561104f578154611005906001600160a01b03168430876113d9565b60006110186127106106848760646111de565b905061102f6110278683611120565b83549061117d565b8255600254835461104d916001600160a01b039182169116836112ed565b505b6003820154815461106d91670de0b6b3a764000091610684916111de565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600080821161110f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161111857fe5b049392505050565b600082821115611177576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156111d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826111ed575060006105b4565b828202828482816111fa57fe5b04146111d75760405162461bcd60e51b81526004018080602001828103825260218152602001806117236021913960400191505060405180910390fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561128257600080fd5b505afa158015611296573d6000803e3d6000fd5b505050506040513d60208110156112ac57600080fd5b505190508015610ab457808211156112da576001546112d5906001600160a01b031684836112ed565b610ab4565b600154610ab4906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ab4908490611439565b60035460005b81811015610ab457826001600160a01b03166003828154811061136457fe5b60009182526020909120600590910201546001600160a01b031614156113d1576040805162461bcd60e51b815260206004820152601f60248201527f546f6d6247656e65736973506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b600101611345565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611433908590611439565b50505050565b606061148e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114ea9092919063ffffffff16565b805190915015610ab4578080602001905160208110156114ad57600080fd5b5051610ab45760405162461bcd60e51b815260040180806020018281038252602a815260200180611744602a913960400191505060405180910390fd5b60606114f98484600085611501565b949350505050565b6060824710156115425760405162461bcd60e51b81526004018080602001828103825260268152602001806116fd6026913960400191505060405180910390fd5b61154b85611652565b61159c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115db5780518252601f1990920191602091820191016115bc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461163d576040519150601f19603f3d011682016040523d82523d6000602084013e611642565b606091505b5091509150610c4d828286611658565b3b151590565b606083156116675750816111d7565b8251156116775782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c15781810151838201526020016116a9565b50505050905090810190601f1680156116ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6d6247656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72a264697066735822122012735903235d917aefb2126ef7b8c0f0d492c6d5f4f95a7f8ebdb77fa06174e064736f6c634300060c003300000000000000000000000075985bf28b9a556b245eb154909707f964388fc30000000000000000000000003c811c0b7c4ac2a59f490cdf114099d8173a21e100000000000000000000000000000000000000000000000000000000622c419f

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.