Contract 0x7afd06811120462e86dbd41554445928C7AFBCAD

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb306d5b86c334c9ae5649b0df4acd766d72ed0e5b367d14855205b6dbd235592Set Operator671775962022-06-06 22:35:09113 days 18 hrs agoPolaris Finance: DEV Wallet IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000065679
0x8cf74aeeb21e30d967e229c6d86d2a2c58b3bae0e88416a3565700661f6a03faWithdraw670950832022-06-05 17:11:22114 days 23 hrs ago0x09513f22c90ee30d050ac3c6361cd849a58ef66a IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0xbfeb1ce8ea77a56c4fb2cd7ee096c79c8c1dc3217241d94164ae1d64f7d7e27dWithdraw652120552022-05-09 8:06:35142 days 8 hrs ago0x367a99146b361611d13b36b423ed1627c1414929 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000167637
0x746368f02eca233a318ac23ae1cbc908035fa6f2a5ac4fad1234af25941a1943Withdraw638432332022-04-19 7:54:37162 days 8 hrs ago0x3ea7376bf96cc220fac9fe3ad147b98989dfb695 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000078888
0x0a70dd4c9872515769d18f355bc79f03b4e1843e64d74c41b772d3a274640258Withdraw634187012022-04-13 4:23:27168 days 12 hrs ago0xad4f13c18ea481170d8f0e624cf95f20e15b3dfa IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0xe9172414f9062aa2173f923271b8a54637698cea8c04b2ec81ed0c2b80fe562fWithdraw627292932022-04-03 4:49:17178 days 11 hrs ago0xeb1ee7920d69dd0db9d31fdbb80f76fe6db6e4bc IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.0000025818
0xeb237f0cbbef28e36c30b5bf8df9797b75c05d52124f16d6e40223322cacddbcWithdraw623952722022-03-29 7:23:55183 days 9 hrs ago0x76a143b7e5a5d1a1de5edd92e9d2c27cd9c5e8c6 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0xe87d1545bafb182cc7075c44f81dc7f201855b7c8822c2c93f389cb0fc3e0563Withdraw623952502022-03-29 7:23:27183 days 9 hrs ago0x76a143b7e5a5d1a1de5edd92e9d2c27cd9c5e8c6 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0x65ed252787956ab4f9c2933800fb10406cb7842f868d32a21f18a0dcd214b7ceWithdraw623951712022-03-29 7:21:46183 days 9 hrs ago0x76a143b7e5a5d1a1de5edd92e9d2c27cd9c5e8c6 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0xb315d055ff1f86d05542ecdab0c7272841d4f528b74bfbdb0b22e178af124464Withdraw619503092022-03-22 18:33:27189 days 22 hrs ago0x52634a5f4393b9493b3bc1a8b951db0f4116f10d IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0xa35cff38344b29564abf752600bb3768a0b5e2b7f71b46d114de787fccb61776Withdraw614825122022-03-15 12:19:02197 days 4 hrs ago0xafe3a619e52d5a9d6c8a55850d4a7ae2b4fc81a2 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000167637
0x45afb640e3a7804aec8ca393acdb88ed229b525679458a5ff1e4b1a04ec58bf2Withdraw611780512022-03-11 0:18:14201 days 16 hrs ago0x128ebf3a6b68fe6bc8f7141842187b02f112707d IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0xc04272d124f3169be70a38604da6c95ce719430ccecc9be5ff66e72d5ea69392Withdraw611349322022-03-10 9:10:05202 days 7 hrs ago0x52634a5f4393b9493b3bc1a8b951db0f4116f10d IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0x2f7c0dec512e2f584892821b976c854ba9ea03f4f64b619abe16bb8d151c3cf7Withdraw606211322022-03-02 21:59:02209 days 18 hrs ago0x1451436326707f295eae48f43c1a8cf1476e25f1 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0xb76a45bec396bfd4b464410bf27032e1af6fdbfaf57150df1bb46ce3069f4008Withdraw606211092022-03-02 21:58:34209 days 18 hrs ago0x1451436326707f295eae48f43c1a8cf1476e25f1 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0x0cf1c6baf863213b9e665b1d541b1baa7cfde951b7f6db8242af59b5ab03428bWithdraw602045202022-02-24 22:14:51215 days 18 hrs ago0x39eac0896f964941b1e8da160ef504e4ae03da29 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.0000036993
0xbc14466a16d70da25481935d6150529fb43fb94af71fc9cafd54d33730df66beWithdraw601285192022-02-23 19:47:30216 days 20 hrs ago0x8b8492cd2da735e0aba3961e83c8fcf849679d77 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0x69f9a800b6515d40aa6ffb3462eef262bb56227824f2b3f43976cdc685333646Withdraw601285102022-02-23 19:47:18216 days 20 hrs ago0x8b8492cd2da735e0aba3961e83c8fcf849679d77 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0
0x8094e754e86f16c4e95149cfc86a0175facc1641a5fd6f29c78465c2f727a4b7Withdraw601196682022-02-23 16:38:05216 days 23 hrs ago0xad4f13c18ea481170d8f0e624cf95f20e15b3dfa IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000166623
0x7f75967c77a4fcddef7662eead6d47ab1f891071b8ef36bfe49123c831485c36Withdraw600937752022-02-23 7:29:58217 days 9 hrs ago0x5b3d09482bf16d19c2bf9f0c018207fcfe6ac571 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000264
0x8ca22c6fb868c9c4ee1360f22d0bcb825911c7e280b43a887e5b2b66358490afWithdraw600937622022-02-23 7:29:42217 days 9 hrs ago0x5b3d09482bf16d19c2bf9f0c018207fcfe6ac571 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000252966
0x91bfcdc4f2bd5725d10dc1e9aa13dfcf954ad4a5b9d9d274b822d016f8fa56a8Withdraw600937452022-02-23 7:29:21217 days 9 hrs ago0x5b3d09482bf16d19c2bf9f0c018207fcfe6ac571 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000263919
0xa3a8a2bf93ee8e723f6dc329ed70e106f8cacdebe5cd16cbe536d4c59acf6438Withdraw600937202022-02-23 7:28:49217 days 9 hrs ago0x5b3d09482bf16d19c2bf9f0c018207fcfe6ac571 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.0000026418
0x5fb5e27fd8a0e41e94d3aacf45aed9b48511c3e460828b5e26694f22c2c07001Withdraw600936862022-02-23 7:28:07217 days 9 hrs ago0x5b3d09482bf16d19c2bf9f0c018207fcfe6ac571 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000312702
0xe0b23c87302d00700b92ff592dcb0307c8c271f975bbe2e18030462facce855eWithdraw600162052022-02-22 4:22:35218 days 12 hrs ago0xca40f6779b0f86ad9cd9f11ffd44bcc4a25d8137 IN  Polaris Finance: Polar Genesis Reward Pool0 ETH0.00000257955
[ Download CSV Export 
Parent Txn Hash Block From To Value
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.

Contract Source Code Verified (Exact Match)

Contract Name:
PolarGenesisRewardPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.6.12;

import "IERC20.sol";
import "SafeERC20.sol";
import "SafeMath.sol";

// Note that this pool has no minter key of POLAR (rewards).
// Instead, the governance will call POLAR distributeReward method and send reward to this pool at the beginning.
contract PolarGenesisRewardPool {
    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. POLAR to distribute.
        uint256 lastRewardTime; // Last time that POLAR distribution occurs.
        uint256 accPolarPerShare; // Accumulated POLAR per share, times 1e18. See below.
        bool isStarted; // if lastRewardBlock has passed
    }

    IERC20 public polar;

    // 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 POLAR mining starts.
    uint256 public poolStartTime;

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

    // TESTNET
    // uint256 public polarPerSecond = 3.0555555e18; // 11000 POLAR / (1h * 60min * 60s)
    // uint256 public runningTime = 24 hours; // 1 hours
    // uint256 public constant TOTAL_REWARDS = 11000e18;
    // END TESTNET

    // MAINNET
    uint256 public polarPerSecond = 0.0462962963e18; // 10000 POLAR / (24h * 60min * 60s)
    uint256 public runningTime = 1 days; // 1 days
    uint256 public constant TOTAL_REWARDS = 4000e18;
    // 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 _polar,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_polar != address(0)) polar = IERC20(_polar);
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "PolarGenesisPool: 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, "PolarGenesisPool: 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,
            accPolarPerShare : 0,
            isStarted : _isStarted
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's POLAR 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(polarPerSecond);
            return poolEndTime.sub(_fromTime).mul(polarPerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(polarPerSecond);
            return _toTime.sub(_fromTime).mul(polarPerSecond);
        }
    }

    // View function to see pending POLAR on frontend.
    function pendingPOLAR(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accPolarPerShare = pool.accPolarPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _polarReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accPolarPerShare = accPolarPerShare.add(_polarReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accPolarPerShare).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 _polarReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accPolarPerShare = pool.accPolarPerShare.add(_polarReward.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.accPolarPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safePolarTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accPolarPerShare).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.accPolarPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safePolarTransfer(_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.accPolarPerShare).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 POLAR transfer function, just in case if rounding error causes pool to not have enough POLARs.
    function safePolarTransfer(address _to, uint256 _amount) internal {
        uint256 _polarBalance = polar.balanceOf(address(this));
        if (_polarBalance > 0) {
            if (_amount > _polarBalance) {
                polar.safeTransfer(_to, _polarBalance);
            } else {
                polar.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 (POLAR or lps) if less than 90 days after pool ends
            require(_token != polar, "polar");
            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 "SafeMath.sol";
import "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
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "PolarGenesisRewardPool.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_polar","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":"pendingPOLAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"polar","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"polarPerSecond","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":"accPolarPerShare","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":"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"}]

6080604052600060045566a47a3c7760b3006007556201518060085534801561002757600080fd5b506040516118543803806118548339818101604052604081101561004a57600080fd5b508051602090910151428111610090576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156100bb57600180546001600160a01b0319166001600160a01b0384161790555b60058190556008540160065550600080546001600160a01b0319163317905561176b806100e96000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063570ca735116100b857806393f1a40b1161007c57806393f1a40b146102d9578063943f013d1461031e57806396805e5414610326578063b3ab15fb14610360578063e2bbb15814610386578063f42df1d7146103a957610137565b8063570ca735146102b15780635f96dc11146102b9578063630b5ba1146102c15780636e271dd5146102c95780637d5a3f63146102d157610137565b8063231f0c6a116100ff578063231f0c6a146101fb578063441a3e701461021e57806351eb05a6146102415780635312ea8e1461025e57806354575af41461027b57610137565b80630996dc301461013c57806309cf6091146101605780631526fe271461017a57806317caf6f1146101ce5780631ab06ee5146101d6575b600080fd5b6101446103d5565b604080516001600160a01b039092168252519081900360200190f35b6101686103e4565b60408051918252519081900360200190f35b6101976004803603602081101561019057600080fd5b50356103f1565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61016861043c565b6101f9600480360360408110156101ec57600080fd5b5080359060200135610442565b005b6101686004803603604081101561021157600080fd5b50803590602001356104f0565b6101f96004803603604081101561023457600080fd5b50803590602001356105b5565b6101f96004803603602081101561025757600080fd5b5035610772565b6101f96004803603602081101561027457600080fd5b50356108d0565b6101f96004803603606081101561029157600080fd5b506001600160a01b0381358116916020810135916040909101351661096c565b610144610ab3565b610168610ac2565b6101f9610ac8565b610168610aeb565b610168610af1565b610305600480360360408110156102ef57600080fd5b50803590602001356001600160a01b0316610af7565b6040805192835260208301919091528051918290030190f35b610168610b1b565b6101f96004803603608081101561033c57600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b21565b6101f96004803603602081101561037657600080fd5b50356001600160a01b0316610d1e565b6101f96004803603604081101561039c57600080fd5b5080359060200135610d89565b610168600480360360408110156103bf57600080fd5b50803590602001356001600160a01b0316610ef9565b6001546001600160a01b031681565b68d8d726b7177a80000081565b600281815481106103fe57fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60045481565b6000546001600160a01b0316331461048b5760405162461bcd60e51b815260040180806020018281038252602c815260200180611699602c913960400191505060405180910390fd5b610493610ac8565b6000600283815481106104a257fe5b60009182526020909120600590910201600481015490915060ff16156104e9576104e5826104df836001015460045461105590919063ffffffff16565b906110b2565b6004555b6001015550565b6000818310610501575060006105af565b600654821061056957600654831061051b575060006105af565b600554831161054e5761054760075461054160055460065461105590919063ffffffff16565b90611113565b90506105af565b6105476007546105418560065461105590919063ffffffff16565b600554821161057a575060006105af565b600554831161059e576105476007546105416005548561105590919063ffffffff16565b600754610547906105418486611055565b92915050565b60003390506000600284815481106105c957fe5b600091825260208083208784526003825260408085206001600160a01b03881686529092529220805460059092029092019250841115610645576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61064e85610772565b600061068b8260010154610685670de0b6b3a764000061067f8760030154876000015461111390919063ffffffff16565b9061116c565b90611055565b905080156106dd5761069d84826111d3565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156107075781546106ef9086611055565b82558254610707906001600160a01b03168587611289565b6003830154825461072591670de0b6b3a76400009161067f91611113565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061078157fe5b90600052602060002090600502019050806002015442116107a257506108cd565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107ec57600080fd5b505afa158015610800573d6000803e3d6000fd5b505050506040513d602081101561081657600080fd5b505190508061082c5750426002909101556108cd565b600482015460ff1661085d576004808301805460ff191660019081179091558301549054610859916110b2565b6004555b600454156108c45760006108758360020154426104f0565b9050600061089660045461067f86600101548561111390919063ffffffff16565b90506108bc6108b18461067f84670de0b6b3a7640000611113565b6003860154906110b2565b600385015550505b50426002909101555b50565b6000600282815481106108df57fe5b60009182526020808320858452600382526040808520338087529352842080548582556001820195909555600590930201805490945091929161092f916001600160a01b03919091169083611289565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109b55760405162461bcd60e51b815260040180806020018281038252602c815260200180611699602c913960400191505060405180910390fd5b6006546276a70001421015610a9a576001546001600160a01b0384811691161415610a0f576040805162461bcd60e51b81526020600482015260056024820152643837b630b960d91b604482015290519081900360640190fd5b60025460005b81811015610a9757600060028281548110610a2c57fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a8e576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a15565b50505b610aae6001600160a01b0384168284611289565b505050565b6000546001600160a01b031681565b60055481565b60025460005b81811015610ae757610adf81610772565b600101610ace565b5050565b60065481565b60075481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6000546001600160a01b03163314610b6a5760405162461bcd60e51b815260040180806020018281038252602c815260200180611699602c913960400191505060405180910390fd5b610b73836112db565b8115610b8157610b81610ac8565b600554421015610bad5780610b995750600554610ba8565b600554811015610ba857506005545b610bc1565b801580610bb957504281105b15610bc15750425b600060055482111580610bd45750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610d1757600454610d1390866110b2565b6004555b5050505050565b6000546001600160a01b03163314610d675760405162461bcd60e51b815260040180806020018281038252602c815260200180611699602c913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000339050600060028481548110610d9d57fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610dd785610772565b805415610e63576000610e0f8260010154610685670de0b6b3a764000061067f8760030154876000015461111390919063ffffffff16565b90508015610e6157610e2184826111d3565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315610e8f578154610e80906001600160a01b0316843087611375565b8054610e8c90856110b2565b81555b60038201548154610ead91670de0b6b3a76400009161067f91611113565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b60008060028481548110610f0957fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600590960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610f8157600080fd5b505afa158015610f95573d6000803e3d6000fd5b505050506040513d6020811015610fab57600080fd5b5051600285015490915042118015610fc257508015155b1561101f576000610fd78560020154426104f0565b90506000610ff860045461067f88600101548561111390919063ffffffff16565b905061101a6110138461067f84670de0b6b3a7640000611113565b85906110b2565b935050505b61104a8360010154610685670de0b6b3a764000061067f86886000015461111390919063ffffffff16565b979650505050505050565b6000828211156110ac576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561110c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082611122575060006105af565b8282028284828161112f57fe5b041461110c5760405162461bcd60e51b81526004018080602001828103825260218152602001806116eb6021913960400191505060405180910390fd5b60008082116111c2576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111cb57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561121e57600080fd5b505afa158015611232573d6000803e3d6000fd5b505050506040513d602081101561124857600080fd5b505190508015610aae578082111561127657600154611271906001600160a01b03168483611289565b610aae565b600154610aae906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aae9084906113d5565b60025460005b81811015610aae57826001600160a01b03166002828154811061130057fe5b60009182526020909120600590910201546001600160a01b0316141561136d576040805162461bcd60e51b815260206004820181905260248201527f506f6c617247656e65736973506f6f6c3a206578697374696e6720706f6f6c3f604482015290519081900360640190fd5b6001016112e1565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113cf9085906113d5565b50505050565b606061142a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114869092919063ffffffff16565b805190915015610aae5780806020019051602081101561144957600080fd5b5051610aae5760405162461bcd60e51b815260040180806020018281038252602a81526020018061170c602a913960400191505060405180910390fd5b6060611495848460008561149d565b949350505050565b6060824710156114de5760405162461bcd60e51b81526004018080602001828103825260268152602001806116c56026913960400191505060405180910390fd5b6114e7856115ee565b611538576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115775780518252601f199092019160209182019101611558565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115d9576040519150601f19603f3d011682016040523d82523d6000602084013e6115de565b606091505b509150915061104a8282866115f4565b3b151590565b6060831561160357508161110c565b8251156116135782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561165d578181015183820152602001611645565b50505050905090810190601f16801561168a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe506f6c617247656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a50f830118883c333e55524deda1cfcf72e04508aa0d3d40bd26d663f3cf458564736f6c634300060c0033000000000000000000000000f0f3b9eee32b1f490a4b8720cf6f005d4ae9ea8600000000000000000000000000000000000000000000000000000000620e54e0

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

000000000000000000000000f0f3b9eee32b1f490a4b8720cf6f005d4ae9ea8600000000000000000000000000000000000000000000000000000000620e54e0

-----Decoded View---------------
Arg [0] : _polar (address): 0xf0f3b9eee32b1f490a4b8720cf6f005d4ae9ea86
Arg [1] : _poolStartTime (uint256): 1645106400

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0f3b9eee32b1f490a4b8720cf6f005d4ae9ea86
Arg [1] : 00000000000000000000000000000000000000000000000000000000620e54e0


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