Contract 0x9a896d3c54d7e45b558bd5fff26bf1e8c031f93b

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0160975e33c69efe9c8269dde16d37727649bf532a3261a5fa2bce96cf4e0f30Withdraw203047292021-10-28 0:38:121 hr 47 mins ago0xe328b5120378d93cf94c015fc6b6fdb4a2ce6c95 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.011392675564
0xe09407ae16a3905b13e5f4832a35d1cc7b51b8dae7086d767e8e7ee8c642877dWithdraw202706682021-10-27 16:41:159 hrs 44 mins ago0x86b1cae91df27b77fb81f406883406ba7d4d2451 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.039994828848
0x7546adda87727a9514590dd47b2af913f94800c5b049bc0d7f6c3ca6517ce6d9Withdraw202628452021-10-27 14:39:1511 hrs 46 mins ago0xa8543e962ebd40ea46bf2d97e5ff7bdc8893baaa IN  Tomb Finance: Genesis Rewards Pool0 FTM0.010426040056
0xa731b2bd173ce7a5802c925375ec7156e2ed89213b7f1fe17ffdbf76e518732eWithdraw202536582021-10-27 12:27:3813 hrs 57 mins ago0xd02c82bb317055b5322f3fd09d40a8a380051829 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.016650810035
0xfa80ab42d7481fef0fb1cc5f8376d97decf55157b9c59dbe3d3b6326f42c3cffWithdraw202335992021-10-27 7:32:3518 hrs 52 mins ago0xb5b5f7df8c48225112488de0197a623c2b18fbdb IN  Tomb Finance: Genesis Rewards Pool0 FTM0.034736360697
0xff934794ebdf8d9bdbb4656607f5652f9c916c83d029ff9f9c221939d2b33523Withdraw202181642021-10-27 3:39:1122 hrs 46 mins ago0xe6d29c26e40ff86485b4abaf86ea454a9cf83ce2 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.018205222882
0xfd1a15ed30ad81e13ea21cf0ca8094fb56f2771049538bcd561ad9173e9b093aWithdraw202128422021-10-27 2:12:021 day 13 mins ago0x40b3b37d94396019995c25cbe538c5767403fa06 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.010842953126
0x29d9addf36d0dd0f33fb3e3cb57c21c458fe23475741a368ae90d0e2d955a232Withdraw202084112021-10-27 1:06:511 day 1 hr ago0xf5f3ca3fa125a5ab9c3232eb46dc552dfa7156c3 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.014286676621
0x843995f3389389e95d8b448164a1029ef13ec7c437a12d9d44fbab227b16a40fWithdraw202065082021-10-27 0:38:501 day 1 hr ago0x3bd2ae696606ae589da188ce84dfe95ecae4dacf IN  Tomb Finance: Genesis Rewards Pool0 FTM0.015533882105
0x2c52bb5dfe7defb25c24680ffc312bcd397842cc6a74b97be7312decfa150a79Withdraw201915912021-10-26 21:10:131 day 5 hrs ago0x1d2dcbeafe4168e6b33b6041cdd6faf7ee9ad02b IN  Tomb Finance: Genesis Rewards Pool0 FTM0.026797262307
0xd382f532848cfc64f8526234dfee04c27e277ff898e2fb08d737d822e16fe1caWithdraw201914192021-10-26 21:08:011 day 5 hrs ago0x22ae3cd101a646e4a6600e5bd753c4784e1cc193 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.031726964121
0x05aa3ff406409d20079233164f4fe74390a5f42d5563f5f33c9be5ee0f17373aWithdraw201913832021-10-26 21:07:311 day 5 hrs ago0x22ae3cd101a646e4a6600e5bd753c4784e1cc193 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.186383431737
0xd4202e584e7baae1789aed577272350587927d4516a1fddc4e1f7b17453280daWithdraw201498852021-10-26 10:52:041 day 15 hrs ago0x55b8d8a0b2ec1bd2eb334a6d1a7a8df8b99dea7a IN  Tomb Finance: Genesis Rewards Pool0 FTM0.018485526502
0x0aca2d5621f4e88fd6be08c06ba228a6cf9b77e1974236a868534f6bdd4d1572Withdraw201421552021-10-26 9:04:541 day 17 hrs ago0xbffbf48afbb25697b85c2ea2df698b33cc6cb988 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.021065479833
0x814c0e685d373f8769a395ad92ef3751dd61c13d05e880824a583d87b31b833dWithdraw201420662021-10-26 9:03:151 day 17 hrs ago0xbffbf48afbb25697b85c2ea2df698b33cc6cb988 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.0203247216
0x1ca348db596ed00605c545f364dca1e05bd1b25ad6ffbfb2b386af6c685a98c5Withdraw201239002021-10-26 4:35:561 day 21 hrs ago0x572496ac02a4d4b71018896c1dd03f8a9ab4b7cc IN  Tomb Finance: Genesis Rewards Pool0 FTM0.01170484143
0x226c26266ad1219d853ef0daa1aaac2952e7922beddc7f25a0cdb0b153cc4b6fWithdraw201078262021-10-26 0:46:322 days 1 hr ago0xa8064fe41cf8a9d82818315997a1cbcf5357e354 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.011138379712
0x7721050a6c37e8e0bb05a6b393a68ddc7d951a04ab4788a9cb734b5ce5362702Withdraw201021192021-10-25 23:21:032 days 3 hrs ago0xd5665893e2c3ce22bf0291412ac61d8caddf764d IN  Tomb Finance: Genesis Rewards Pool0 FTM0.006415199712
0xccd3bdeeda1b7efb9b307a4992fce099ba22379d4282cc7f87f7455579c20599Withdraw200877442021-10-25 20:06:312 days 6 hrs ago0x991bb7b847efaeac6659107d6bb3071ea469b16b IN  Tomb Finance: Genesis Rewards Pool0 FTM0.009281710425
0xb758285d01250cfd8c57b5fa8d5f002f0216a791183c677751dae516cb49631aWithdraw200804232021-10-25 18:28:372 days 7 hrs ago0xebdb26d9d2a5049d6ec67a19a64857535342e653 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.006659746145
0xfa02cf8818a1ddbda50f25b232665c0be2f9d53e0fc150edbdec3336a685431cWithdraw200771422021-10-25 17:44:072 days 8 hrs ago0x1873554c2b89bcb578e18f99327020eecf13efc2 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.00777011544
0x11ede9ef903682372356984b99bd4a2058443365367fea36cdf2eab5d4af3e7dWithdraw200721292021-10-25 16:32:092 days 9 hrs ago0xc6966631acf2533a247ddfb67c85493aa4e7e336 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.012514617791
0x3f72b31558d78c40776ccbc2f2af405e18acb65a921c2ebcf519d3b3598059d9Withdraw200509472021-10-25 11:24:382 days 15 hrs ago0xec2ddd25907fd1eb9476df8dd4617f25c33592f4 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.018357945012
0x0f60448f101c278bcc963bcad4274f5a5d15294166c5957f5ef092f0edccf998Withdraw200509082021-10-25 11:24:022 days 15 hrs ago0xec2ddd25907fd1eb9476df8dd4617f25c33592f4 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.010668339914
0xc1e9e97987520fa43f5d1be66ec74a48b48e494b2b361d7541d5d8a528ed3d63Withdraw200507852021-10-25 11:22:222 days 15 hrs ago0xec2ddd25907fd1eb9476df8dd4617f25c33592f4 IN  Tomb Finance: Genesis Rewards Pool0 FTM0.007326421515
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x0c392a2f701e5b02df2f5c32016d80db8c51b17780f584ea92a641fbfde8f5ae83068242021-05-30 22:39:22150 days 3 hrs ago Tomb Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TombGenesisRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 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 shiba;

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

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

    // MAINNET
    // uint256 public tombPerSecond = 0.11574 ether; // 10000 TOMB / (24h * 60min * 60s)
    // uint256 public runningTime = 1 days; // 1 days
    // uint256 public constant TOTAL_REWARDS = 10000 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 _shiba,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_tomb != address(0)) tomb = IERC20(_tomb);
        if (_shiba != address(0)) shiba = _shiba;
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + 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);
            if(address(pool.token) == shiba) {
                user.amount = user.amount.add(_amount.mul(9900).div(10000));
            } else {
                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 _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 : 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":"address","name":"_shiba","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":[{"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":"shiba","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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"}]

60806040526000600555672a678389c8fdb8006008556201518060095534801561002857600080fd5b50604051611e4a380380611e4a8339818101604052606081101561004b57600080fd5b5080516020820151604090920151909190428111610099576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038316156100c457600180546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156100ef57600280546001600160a01b0319166001600160a01b0384161790555b6006819055600954016007555050600080546001600160a01b03191633179055611d2c8061011e6000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063630b5ba1116100d857806396805e541161008c578063c040f23a11610066578063c040f23a14610450578063d763914714610458578063e2bbb1581461046057610182565b806396805e54146103ce578063a2b123a814610415578063b3ab15fb1461041d57610182565b806389744bb4116100bd57806389744bb41461033b57806393f1a40b14610374578063943f013d146103c657610182565b8063630b5ba11461032b5780636e271dd51461033357610182565b8063441a3e701161013a57806354575af41161011457806354575af4146102af578063570ca735146102f25780635f96dc111461032357610182565b8063441a3e701461025257806351eb05a6146102755780635312ea8e1461029257610182565b806317caf6f11161016b57806317caf6f1146102025780631ab06ee51461020a578063231f0c6a1461022f57610182565b806309cf6091146101875780631526fe27146101a1575b600080fd5b61018f610483565b60408051918252519081900360200190f35b6101be600480360360208110156101b757600080fd5b5035610491565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61018f6104e9565b61022d6004803603604081101561022057600080fd5b50803590602001356104ef565b005b61018f6004803603604081101561024557600080fd5b50803590602001356105c4565b61022d6004803603604081101561026857600080fd5b5080359060200135610689565b61022d6004803603602081101561028b57600080fd5b503561089f565b61022d600480360360208110156102a857600080fd5b5035610a41565b61022d600480360360608110156102c557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359160409091013516610aea565b6102fa610ce0565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61018f610cfc565b61022d610d02565b61018f610d25565b61018f6004803603604081101561035157600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610d2b565b6103ad6004803603604081101561038a57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610eb2565b6040805192835260208301919091528051918290030190f35b61018f610ed6565b61022d600480360360808110156103e457600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013515159060600135610edc565b61018f611143565b61022d6004803603602081101561043357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611149565b6102fa611200565b6102fa61121c565b61022d6004803603604081101561047657600080fd5b5080359060200135611238565b6902544faa778090e0000081565b6003818154811061049e57fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909160ff1685565b60055481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ccc602b913960400191505060405180910390fd5b610567610d02565b60006003838154811061057657fe5b60009182526020909120600590910201600481015490915060ff16156105bd576105b9826105b3836001015460055461142590919063ffffffff16565b9061149c565b6005555b6001015550565b60008183106105d557506000610683565b600754821061063d5760075483106105ef57506000610683565b60065483116106225761061b60085461061560065460075461142590919063ffffffff16565b90611517565b9050610683565b61061b6008546106158560075461142590919063ffffffff16565b600654821161064e57506000610683565b60065483116106725761061b6008546106156006548561142590919063ffffffff16565b60085461061b906106158486611425565b92915050565b600033905060006003848154811061069d57fe5b6000918252602080832087845260048252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252922080546005909202909201925084111561074b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6107548561089f565b6000610791826001015461078b670de0b6b3a76400006107858760030154876000015461151790919063ffffffff16565b9061158a565b90611425565b905080156107f0576107a3848261160b565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156108275781546108029086611425565b825582546108279073ffffffffffffffffffffffffffffffffffffffff168587611701565b6003830154825461084591670de0b6b3a76400009161078591611517565b6001830155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000600382815481106108ae57fe5b90600052602060002090600502019050806002015442116108cf5750610a3e565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561093f57600080fd5b505afa158015610953573d6000803e3d6000fd5b505050506040513d602081101561096957600080fd5b505190508061097f575042600290910155610a3e565b600482015460ff166109ce576004820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558201546005546109ca9161149c565b6005555b60055415610a355760006109e68360020154426105c4565b90506000610a0760055461078586600101548561151790919063ffffffff16565b9050610a2d610a228461078584670de0b6b3a7640000611517565b60038601549061149c565b600385015550505b50426002909101555b50565b600060038281548110610a5057fe5b600091825260208083208584526004825260408085203380875293528420805485825560018201959095556005909302018054909450919291610aad9173ffffffffffffffffffffffffffffffffffffffff919091169083611701565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ccc602b913960400191505060405180910390fd5b6007546276a70001421015610cba5760015473ffffffffffffffffffffffffffffffffffffffff84811691161415610bf557604080517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048083019190915260248201527f746f6d6200000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60035460005b81811015610cb757600060038281548110610c1257fe5b60009182526020909120600590910201805490915073ffffffffffffffffffffffffffffffffffffffff87811691161415610cae57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f706f6f6c2e746f6b656e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b50600101610bfb565b50505b610cdb73ffffffffffffffffffffffffffffffffffffffff84168284611701565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b60035460005b81811015610d2157610d198161089f565b600101610d08565b5050565b60075481565b60008060038481548110610d3b57fe5b600091825260208083208784526004808352604080862073ffffffffffffffffffffffffffffffffffffffff8a811688529085528187206005969096029093016003810154815483517f70a082310000000000000000000000000000000000000000000000000000000081523095810195909552925191985095969491909316926370a08231926024808201939291829003018186803b158015610dde57600080fd5b505afa158015610df2573d6000803e3d6000fd5b505050506040513d6020811015610e0857600080fd5b5051600285015490915042118015610e1f57508015155b15610e7c576000610e348560020154426105c4565b90506000610e5560055461078588600101548561151790919063ffffffff16565b9050610e77610e708461078584670de0b6b3a7640000611517565b859061149c565b935050505b610ea7836001015461078b670de0b6b3a764000061078586886000015461151790919063ffffffff16565b979650505050505050565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ccc602b913960400191505060405180910390fd5b610f558361178e565b8115610f6357610f63610d02565b600654421015610f8f5780610f7b5750600654610f8a565b600654811015610f8a57506006545b610fa3565b801580610f9b57504281105b15610fa35750425b600060065482111580610fb65750428211155b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff878116825260208201898152928201868152600060608401818152861580156080870190815260038054600181018255945295517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600590940293840180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015592517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f90920180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169215159290921790915590915061113c57600554611138908661149c565b6005555b5050505050565b60085481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ccc602b913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b600033905060006003848154811061124c57fe5b6000918252602080832087845260048252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529220600590910290910191506112938561089f565b80541561132c5760006112cb826001015461078b670de0b6b3a76400006107858760030154876000015461151790919063ffffffff16565b9050801561132a576112dd848261160b565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156113ae5781546113569073ffffffffffffffffffffffffffffffffffffffff1684308761185c565b600254825473ffffffffffffffffffffffffffffffffffffffff9081169116141561139f57611398611390612710610785876126ac611517565b82549061149c565b81556113ae565b80546113ab908561149c565b81555b600382015481546113cc91670de0b6b3a76400009161078591611517565b6001820155604080518581529051869173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b60008282111561149657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561151057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261152657506000610683565b8282028284828161153357fe5b0414611510576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611c816021913960400191505060405180910390fd5b60008082116115fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161160357fe5b049392505050565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561167c57600080fd5b505afa158015611690573d6000803e3d6000fd5b505050506040513d60208110156116a657600080fd5b505190508015610cdb57808211156116e1576001546116dc9073ffffffffffffffffffffffffffffffffffffffff168483611701565b610cdb565b600154610cdb9073ffffffffffffffffffffffffffffffffffffffff1684845b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610cdb9084906118f7565b60035460005b81811015610cdb578273ffffffffffffffffffffffffffffffffffffffff16600382815481106117c057fe5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff16141561185457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f546f6d6247656e65736973506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b600101611794565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526118f19085906118f7565b50505050565b6060611959826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119cf9092919063ffffffff16565b805190915015610cdb5780806020019051602081101561197857600080fd5b5051610cdb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611ca2602a913960400191505060405180910390fd5b60606119de84846000856119e6565b949350505050565b606082471015611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611c5b6026913960400191505060405180910390fd5b611a4a85611b96565b611ab557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611b1f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611ae2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611b81576040519150601f19603f3d011682016040523d82523d6000602084013e611b86565b606091505b5091509150610ea7828286611b9c565b3b151590565b60608315611bab575081611510565b825115611bbb5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c1f578181015183820152602001611c07565b50505050905090810190601f168015611c4c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6d6247656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72a2646970667358221220efe8cf548634515f91297ef6ad8af49411a06ac5ac82ccef3103292966ee629b64736f6c634300060c00330000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb70000000000000000000000009ba3e4f84a34df4e08c112e1a0ff148b816556150000000000000000000000000000000000000000000000000000000060b779c8

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

0000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb70000000000000000000000009ba3e4f84a34df4e08c112e1a0ff148b816556150000000000000000000000000000000000000000000000000000000060b779c8

-----Decoded View---------------
Arg [0] : _tomb (address): 0x6c021ae822bea943b2e66552bde1d2696a53fbb7
Arg [1] : _shiba (address): 0x9ba3e4f84a34df4e08c112e1a0ff148b81655615
Arg [2] : _poolStartTime (uint256): 1622637000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c021ae822bea943b2e66552bde1d2696a53fbb7
Arg [1] : 0000000000000000000000009ba3e4f84a34df4e08c112e1a0ff148b81655615
Arg [2] : 0000000000000000000000000000000000000000000000000000000060b779c8


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.