Contract 0x5dbf57f44cf5019da4a9b9da17f964bba67ed502

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x57f2b591fa824a25f66be81ceaf4850f5da81c0faffde2e4a5f7a8e9021a860cWithdraw365609662022-12-08 2:51:431 hr 14 mins ago0x4b089dde708cacc4fde1762e7d807971b7d52717 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002720992973 30.001245633
0xa1e4d578ab026dcf32d57b0898c391b509570461be16e5252f647443488515d6Withdraw365609232022-12-08 2:50:131 hr 15 mins ago0x4b089dde708cacc4fde1762e7d807971b7d52717 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003234046897 30.001548275
0xe05f6bea50dbad96c344756932b77bc54d78b2f7650df4234305f5639966d9f5Deposit365597952022-12-08 2:11:251 hr 54 mins ago0x98be2f963343fa37b324070984ffd72b0460edbe IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003633782806 30.070030841
0x2985e9bc668871a6b88e8f825dfa866ce34f09e7350392dc56ccf142e673efc2Withdraw365595712022-12-08 2:01:372 hrs 4 mins ago0xb288607e428ab487b284690495a7143345ea6633 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002755344951 30.3800052
0x94cd62e1d81ba2a4a9aa3d22bc4f2441e51b2b73a402f4b925858cc7dca9dd0eWithdraw365595632022-12-08 2:01:212 hrs 4 mins ago0xb288607e428ab487b284690495a7143345ea6633 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002720880458 30.000005056
0xff315835c85ff26cbd2f765da56a61595e58caceb1165b428e2a22954fcec146Withdraw365595582022-12-08 2:01:112 hrs 4 mins ago0x9f5794df9b3a55a445633cb738e887916297240c IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003233880618 30.000005741
0x72db368e0aefa87e903fe254abf260d603bf29bf245e5e72b475eb95c4fb753bDeposit365590742022-12-08 1:44:312 hrs 21 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003625798051 30.000976792
0xbdd72e604e6966779c0565624b8cd23d6ae07a2e37293a67031f7d679ad8d7d9Withdraw365590352022-12-08 1:43:092 hrs 22 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003310334023 31.051459771
0xefab85e8aed197ddbe66fcda83ba24589896c4f0b855465456db0616d8e6dd5eWithdraw365590102022-12-08 1:42:192 hrs 23 mins ago0xb288607e428ab487b284690495a7143345ea6633 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003574135351 30.001723744
0x95ea00373fe3207554415b6695b5d43d7d4b28884113218c6c342b04bd977c52Withdraw365589052022-12-08 1:38:412 hrs 27 mins ago0x13bd44d0dd4c99f582510bc78060ef6f08d7f8ee IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002721313908 30.004784209
0x3b55b0614427008e8ae8d0f2a9d99094a9c878eac36653b2201d5bd9e8f29aecWithdraw365585402022-12-08 1:26:112 hrs 39 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003198267962 30.000262295
0xed13aed99c9552a802acc124d00f8c0824999c6f636082bce4483fd8b2515f09Deposit365585402022-12-08 1:26:112 hrs 39 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002918455516 30.000262295
0x308eb67881188ea259984fdbfb6ae6521f77d8f4ddedface379fd00b066bdd8dDeposit365584832022-12-08 1:24:132 hrs 41 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003988252228 33.000034987
0xe9ce7c8a54b52e9cd137eb61d76dfc45cfe874b6dac09b54bfec458bbf56f662Withdraw365583352022-12-08 1:16:572 hrs 49 mins ago0x24d7b16a5b547ee086293c749684a0a5dc80a815 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003072319575 33.874918135
0xe181363c12b16a85303e9df5612b90567d3d7805e6fcd019c5d336152b6c8395Withdraw365581512022-12-08 1:10:412 hrs 55 mins ago0x86acfb84c20cfe8b2b519109f7719cec3651016b IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002727229793 30.07001184
0x204cb2e6a108bc43b7455644437a64a42999aafec5f6ec14b9c6ceac83e11553Withdraw365575642022-12-08 0:50:213 hrs 15 mins ago0x43ae7aa991b61d4b6ae9b175f00c3c0abbb08f45 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.00384822079 32.308938944
0x19faed53706af314c215b32009f95a15f0feb009693f2d25ec97163f9eeab478Withdraw365574692022-12-08 0:45:053 hrs 20 mins ago0xfc5a5442b62d0711e1ec2196fae61e94002ce042 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003573210002 30.000000023
0x999c1264453a8388ddbd1158d335eb5b76c0721fe44646cd44482d15259d5691Withdraw365572462022-12-08 0:37:233 hrs 28 mins ago0xd61cb4e035837b388941c58f83f0ffe0bdc141e8 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.005620246538 61.967964829
0x9698d9c01cdeeb4905cbe81ac8a8e286a3665cf2d6539a77bb6c875dbc704b9eWithdraw365572462022-12-08 0:37:233 hrs 28 mins ago0xd61cb4e035837b388941c58f83f0ffe0bdc141e8 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002720880003 30.000000043
0xff1b9083f28b0cd296de789f58bf220df1587cf590fef154553a2f0ce928d8e4Withdraw365572212022-12-08 0:36:333 hrs 29 mins ago0x1466c392acaaafad2028606bc76429b7a7125de0 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.002720880003 30.000000035
0x79bfd99b90c5c218ec7773ca95a3bfe9247552c2cf5255bd70e4750bde1e9fdbDeposit365560412022-12-07 23:53:484 hrs 12 mins ago0xf12a4ae7aa821b2e649a85b1bc8bb49c4b5ac81f IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003881111784 32.116710675
0xc0132a5069b89455b61f92bfb62d283cfe57f0f4884073d27e168621e49d009eDeposit365560262022-12-07 23:53:144 hrs 12 mins ago0xf12a4ae7aa821b2e649a85b1bc8bb49c4b5ac81f IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003984643602 32.980000017
0x8307ca34ce8f2cabfbc4e199e2254e3c4484f21cdd32b2a1c914e5de14d146cfDeposit365557922022-12-07 23:45:144 hrs 20 mins ago0xfb954737c1538f64a993effa0995be6d69246a82 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.0043546171231.573500002
0xad2531bf4523280c7ef1834629a24902910eee91afd1352d10950a10c5d44c83Withdraw365555362022-12-07 23:36:264 hrs 29 mins ago0x43ae7aa991b61d4b6ae9b175f00c3c0abbb08f45 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.003233880002 30.000000023
0x6766332d4a6e9fefeb576ae4d66f43182341bda8e679134ae2e4a14e5c68d323Deposit365554152022-12-07 23:32:164 hrs 33 mins ago0xfb954737c1538f64a993effa0995be6d69246a82 IN  0x5dbf57f44cf5019da4a9b9da17f964bba67ed5020 MATIC0.00380658601731.500000148
[ 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.

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

Contract Name:
SpaceLiquidityMiningPool

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.6.12;

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

import "../../Operator.sol";

contract SpaceLiquidityMiningPool is Operator, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. space to distribute per block.
        uint256 lastRewardTime; // Last time that space distribution occurs.
        uint256 accSpacePerShare; // Accumulated space per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
        uint256 taxRate; // Pool's deposit fee
    }

    IERC20 public space;

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

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

    address public daoFund; //All Deposit Fee (if there is) will be sent to DaoFund
    uint256 public constant MIN_TAX_RATE = 0;
    uint256 public constant MAX_TAX_RATE = 400; // Max = 400/10000*100 = 4%

    uint256 public tokenPerSecond;
    uint256 public runningTime = 365 days; // 1 year
    uint256 public constant TOTAL_REWARDS = 56000 ether;

    bool public migrated = false;

    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);
    event MigrateRewardPool(address indexed newRewardPool);

    constructor(
        address _space,
        uint256 _poolStartTime,
        address _daoFund
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        require(_space != address(0), "!space" );
        space = IERC20(_space);
        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;
        tokenPerSecond = TOTAL_REWARDS.div(runningTime);
        daoFund = _daoFund;
    }

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

    // Add a new lp to the pool. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint256 _lastRewardTime,
        uint256 _taxRate
    ) public onlyOperator {
        require(_taxRate >= MIN_TAX_RATE && _taxRate <= MAX_TAX_RATE, "Exceed tax rate range");
        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,
        accSpacePerShare : 0,
        isStarted : _isStarted,
        taxRate : _taxRate
        }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

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

    // View function to see pending space on frontend.
    function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSpacePerShare = pool.accSpacePerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _spaceReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accSpacePerShare = accSpacePerShare.add(_spaceReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accSpacePerShare).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) internal {
        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 _spaceReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accSpacePerShare = pool.accSpacePerShare.add(_spaceReward.mul(1e18).div(tokenSupply));
        }
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit LP tokens.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
        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.accSpacePerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeSpaceTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            if (user.amount == 0) {
                // start record deposit timestamp.
                user.depositTimestamp = block.timestamp;
                user.withdrawTimestamp = block.timestamp;
            }
            uint256 _taxRate = pool.taxRate;
            uint256 _taxAmount = 0;
            if (_taxRate > 0) {
                _taxAmount = _amount.mul(_taxRate).div(10000);
            }
            uint256 _amount_post_fee = _amount.sub(_taxAmount);

            pool.token.safeTransferFrom(_sender, address(this), _amount_post_fee);
            pool.token.safeTransferFrom(_sender, daoFund, _taxAmount);
            user.amount = user.amount.add(_amount_post_fee);
        }
        user.rewardDebt = user.amount.mul(pool.accSpacePerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw LP tokens.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        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.accSpacePerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeSpaceTransfer(_sender, _pending);
            emit RewardPaid(_sender, _pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(_sender, _amount);
            if (user.amount == 0) {
                // If user withdraw all => record withdrawTimestamp
                user.withdrawTimestamp = block.timestamp;
            }
        }
        user.rewardDebt = user.amount.mul(pool.accSpacePerShare).div(1e18);
        emit Withdraw(_sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant {
        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);
    }

    // Migrating to new pool. In case poolV2 developed
    function migrate(address _newRewardPool) public onlyOperator {
        require(!migrated, "Already migrated");
        require(_newRewardPool != address(0), "Invalid address");

        migrated = true;
        tokenPerSecond = 0;
        safeSpaceTransfer(_newRewardPool, TOTAL_REWARDS);

        emit MigrateRewardPool(_newRewardPool);
    }

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

    function updateSpacePerSec(uint256 _new_spacePerSec) public onlyOperator {
        require(_new_spacePerSec >= 0, "Invalid amount");
        tokenPerSecond = _new_spacePerSec;
    }

    function setPoolTaxRate(uint256 _pid, uint256 _new_tax_rate) public onlyOperator {
        require(_new_tax_rate >= MIN_TAX_RATE && _new_tax_rate <= MAX_TAX_RATE, "Out of range");
        PoolInfo storage pool = poolInfo[_pid];
        pool.taxRate = _new_tax_rate;
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
        if (block.timestamp < poolEndTime + 90 days) {
            // do not allow to drain core token (space or lps) if less than 90 days after pool ends
            require(_token != space, "space");
            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);
    }

    function setDaoFund(address _daoFund) external onlyOperator {
        require(_daoFund != address(0), "Invalid address");
        daoFund = _daoFund;
    }
}

File 2 of 10 : Operator.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.12;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    constructor() {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

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

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0) && newOperator_ != _operator, "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 3 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return 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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 9 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_space","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"},{"internalType":"address","name":"_daoFund","type":"address"}],"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":"newRewardPool","type":"address"}],"name":"MigrateRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"MAX_TAX_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TAX_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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"},{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRewardPool","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","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":"accSpacePerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"},{"internalType":"uint256","name":"taxRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"_daoFund","type":"address"}],"name":"setDaoFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_new_tax_rate","type":"uint256"}],"name":"setPoolTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"space","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPerSecond","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":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_spacePerSec","type":"uint256"}],"name":"updateSpacePerSec","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"},{"internalType":"uint256","name":"depositTimestamp","type":"uint256"},{"internalType":"uint256","name":"withdrawTimestamp","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"}]

608060405260006006556301e13380600b55600c805460ff191690553480156200002857600080fd5b50604051620022b4380380620022b48339810160408190526200004b916200021b565b6200005f6200005962000195565b62000199565b6200006962000195565b600180546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36001600255428211620000e55760405162461bcd60e51b8152600401620000dc906200027b565b60405180910390fd5b6001600160a01b0383166200010e5760405162461bcd60e51b8152600401620000dc906200025b565b600380546001600160a01b0319166001600160a01b0385161790556007829055600b546200013d908362000299565b60088190555062000169600b54690bdbc41e0348b3000000620001e960201b620012bb1790919060201c565b600a55600980546001600160a01b0319166001600160a01b039290921691909117905550620002df9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620001f78284620002be565b9392505050565b80516001600160a01b03811681146200021657600080fd5b919050565b60008060006060848603121562000230578283fd5b6200023b84620001fe565b9250602084015191506200025260408501620001fe565b90509250925092565b60208082526006908201526521737061636560d01b604082015260600190565b6020808252600490820152636c61746560e01b604082015260600190565b60008219821115620002b957634e487b7160e01b81526011600452602481fd5b500190565b600082620002da57634e487b7160e01b81526012600452602481fd5b500490565b611fc580620002ef6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635fa7b83f1161010f57806390d3e1f0116100a2578063ce5494bb11610071578063ce5494bb146103ad578063cf4b55cb146103c0578063e2bbb158146103d3578063f2fde38b146103e6576101f0565b806390d3e1f01461035c57806393f1a40b1461036f578063943f013d14610392578063b9d4717e1461039a576101f0565b8063715018a6116100de578063715018a61461033c5780638d934f74146103445780638da5cb5b1461034c5780638fa8173214610354576101f0565b80635fa7b83f1461031157806362e006c714610319578063630b5ba11461032c5780636e271dd514610334576101f0565b80632c678c64116101875780635312ea8e116101565780635312ea8e146102db57806354575af4146102ee578063570ca735146103015780635f96dc1114610309576101f0565b80632c678c64146102a3578063441a3e70146102b85780634456eda2146102cb5780634dd91f47146102d3576101f0565b8063231f0c6a116101c3578063231f0c6a1461025557806327af9e381461026857806329605e771461027d5780632c559d2714610290576101f0565b806309cf6091146101f55780631526fe271461021357806317caf6f1146102385780631ab06ee514610240575b600080fd5b6101fd6103f9565b60405161020a9190611e7d565b60405180910390f35b610226610221366004611974565b610407565b60405161020a96959493929190611abd565b6101fd61045d565b61025361024e366004611a24565b610463565b005b6101fd610263366004611a24565b61050f565b6102706105d4565b60405161020a9190611a61565b61025361028b3660046118fb565b6105e3565b61025361029e3660046118fb565b6105f7565b6102ab610669565b60405161020a9190611ab2565b6102536102c6366004611a24565b610672565b6102ab610857565b6101fd61087d565b6102536102e9366004611974565b610882565b6102536102fc366004611933565b61096b565b610270610a78565b6101fd610a87565b6101fd610a8d565b6102536103273660046119d3565b610a93565b610253610cc3565b6101fd610cee565b610253610cf4565b610270610d08565b610270610d17565b6101fd610d26565b61025361036a366004611a24565b610d2c565b61038261037d3660046119a4565b610db6565b60405161020a9493929190611e86565b6101fd610de8565b6102536103a8366004611974565b610dee565b6102536103bb3660046118fb565b610e1d565b6101fd6103ce3660046119a4565b610eed565b6102536103e1366004611a24565b61106b565b6102536103f43660046118fb565b611284565b690bdbc41e0348b300000081565b6004818154811061041757600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60065481565b6001546001600160a01b031633146104965760405162461bcd60e51b815260040161048d90611ce1565b60405180910390fd5b61049e610cc3565b6000600483815481106104c157634e487b7160e01b600052603260045260246000fd5b60009182526020909120600690910201600481015490915060ff161561050857610504826104fe83600101546006546112ce90919063ffffffff16565b906112da565b6006555b6001015550565b6000818310610520575060006105ce565b600854821061058857600854831061053a575060006105ce565b600754831161056d57610566600a546105606007546008546112ce90919063ffffffff16565b906112e6565b90506105ce565b610566600a54610560856008546112ce90919063ffffffff16565b6007548211610599575060006105ce565b60075483116105bd57610566600a54610560600754856112ce90919063ffffffff16565b600a546105669061056084866112ce565b92915050565b6003546001600160a01b031681565b6105eb6112f2565b6105f481611331565b50565b6001546001600160a01b031633146106215760405162461bcd60e51b815260040161048d90611ce1565b6001600160a01b0381166106475760405162461bcd60e51b815260040161048d90611b25565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600c5460ff1681565b6002805414156106945760405162461bcd60e51b815260040161048d90611e46565b60028055600480543391600091859081106106bf57634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526005825260408085206001600160a01b038816865290925292208054600690920290920192508411156107115760405162461bcd60e51b815260040161048d90611d82565b61071a856113cb565b60006107578260010154610751670de0b6b3a764000061074b876003015487600001546112e690919063ffffffff16565b906112bb565b906112ce565b905080156107ab576107698482611546565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516107a29190611e7d565b60405180910390a25b84156107e25781546107bd90866112ce565b825582546107d5906001600160a01b03168587611606565b81546107e2574260038301555b6003830154825461080091670de0b6b3a76400009161074b916112e6565b826001018190555085846001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040516108429190611e7d565b60405180910390a35050600160025550505050565b6001546000906001600160a01b031661086e61165c565b6001600160a01b031614905090565b600081565b6002805414156108a45760405162461bcd60e51b815260040161048d90611e46565b600280819055506000600482815481106108ce57634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600582526040808520338087529352842080548582556001820195909555600690930201805490945091929161091e916001600160a01b03919091169083611606565b83336001600160a01b03167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516109589190611e7d565b60405180910390a3505060016002555050565b6001546001600160a01b031633146109955760405162461bcd60e51b815260040161048d90611ce1565b6008546109a5906276a700611ea1565b421015610a5f576003546001600160a01b03848116911614156109da5760405162461bcd60e51b815260040161048d90611df8565b60045460005b81811015610a5c57600060048281548110610a0b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912060069091020180549091506001600160a01b0387811691161415610a4b5760405162461bcd60e51b815260040161048d90611c88565b50610a5581611f3b565b90506109e0565b50505b610a736001600160a01b0384168284611606565b505050565b6001546001600160a01b031690565b60075481565b600a5481565b6001546001600160a01b03163314610abd5760405162461bcd60e51b815260040161048d90611ce1565b610190811115610adf5760405162461bcd60e51b815260040161048d90611e17565b610ae884611660565b8215610af657610af6610cc3565b600754421015610b245781610b0f576007549150610b1f565b600754821015610b1f5760075491505b610b39565b811580610b3057504282105b15610b39574291505b600060075483111580610b4c5750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260048054600181018255955296517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600690950294850180546001600160a01b031916919097161790955595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c83015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f8201805460ff191691151591909117905590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a090910155909150610cbb57600654610cb790876112da565b6006555b505050505050565b60045460005b81811015610cea57610cda816113cb565b610ce381611f3b565b9050610cc9565b5050565b60085481565b610cfc6112f2565b610d0660006116e1565b565b6009546001600160a01b031681565b6000546001600160a01b031690565b61019081565b6001546001600160a01b03163314610d565760405162461bcd60e51b815260040161048d90611ce1565b610190811115610d785760405162461bcd60e51b815260040161048d90611d25565b600060048381548110610d9b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600560069092020101919091555050565b600560209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b600b5481565b6001546001600160a01b03163314610e185760405162461bcd60e51b815260040161048d90611ce1565b600a55565b6001546001600160a01b03163314610e475760405162461bcd60e51b815260040161048d90611ce1565b600c5460ff1615610e6a5760405162461bcd60e51b815260040161048d90611c11565b6001600160a01b038116610e905760405162461bcd60e51b815260040161048d90611b25565b600c805460ff191660011790556000600a55610eb681690bdbc41e0348b3000000611546565b6040516001600160a01b038216907f62ae9742c57426c8d9ea267ce916e47af5650902f7e168f69d16609663c0815a90600090a250565b60008060048481548110610f1157634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526005825260408085206001600160a01b03808a16875293528085206003600690950290920193840154845491516370a0823160e01b815294965091949193919216906370a0823190610f74903090600401611a61565b60206040518083038186803b158015610f8c57600080fd5b505afa158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc4919061198c565b9050836002015442118015610fd857508015155b15611035576000610fed85600201544261050f565b9050600061100e60065461074b8860010154856112e690919063ffffffff16565b90506110306110298461074b84670de0b6b3a76400006112e6565b85906112da565b935050505b6110608360010154610751670de0b6b3a764000061074b8688600001546112e690919063ffffffff16565b979650505050505050565b60028054141561108d5760405162461bcd60e51b815260040161048d90611e46565b60028055600480543391600091859081106110b857634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526005825260408085206001600160a01b03881686529092529220600690910290910191506110f2856113cb565b80541561118057600061112a8260010154610751670de0b6b3a764000061074b876003015487600001546112e690919063ffffffff16565b9050801561117e5761113c8482611546565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516111759190611e7d565b60405180910390a25b505b831561121057805461119a57426002820181905560038201555b6005820154600081156111ba576111b761271061074b88856112e6565b90505b60006111c687836112ce565b85549091506111e0906001600160a01b0316873084611731565b60095485546111fe916001600160a01b039182169189911685611731565b835461120a90826112da565b84555050505b6003820154815461122e91670de0b6b3a76400009161074b916112e6565b816001018190555084836001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040516112709190611e7d565b60405180910390a350506001600255505050565b61128c6112f2565b6001600160a01b0381166112b25760405162461bcd60e51b815260040161048d90611b85565b6105f4816116e1565b60006112c78284611eb9565b9392505050565b60006112c78284611ef8565b60006112c78284611ea1565b60006112c78284611ed9565b6112fa61165c565b6001600160a01b031661130b610d17565b6001600160a01b031614610d065760405162461bcd60e51b815260040161048d90611cac565b6001600160a01b0381161580159061135757506001546001600160a01b03828116911614155b6113735760405162461bcd60e51b815260040161048d90611c3b565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000600482815481106113ee57634e487b7160e01b600052603260045260246000fd5b906000526020600020906006020190508060020154421161140f57506105f4565b80546040516370a0823160e01b81526000916001600160a01b0316906370a082319061143f903090600401611a61565b60206040518083038186803b15801561145757600080fd5b505afa15801561146b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148f919061198c565b9050806114a35750426002909101556105f4565b600482015460ff166114d45760048201805460ff191660019081179091558201546006546114d0916112da565b6006555b6006541561153b5760006114ec83600201544261050f565b9050600061150d60065461074b8660010154856112e690919063ffffffff16565b90506115336115288461074b84670de0b6b3a76400006112e6565b6003860154906112da565b600385015550505b504260029091015550565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611577903090600401611a61565b60206040518083038186803b15801561158f57600080fd5b505afa1580156115a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c7919061198c565b90508015610a7357808211156115f3576003546115ee906001600160a01b03168483611606565b610a73565b600354610a73906001600160a01b031684845b610a738363a9059cbb60e01b8484604051602401611625929190611a99565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611758565b3390565b60045460005b81811015610a7357826001600160a01b03166004828154811061169957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600690910201546001600160a01b031614156116d15760405162461bcd60e51b815260040161048d90611b4e565b6116da81611f3b565b9050611666565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611752846323b872dd60e01b85858560405160240161162593929190611a75565b50505050565b60006117ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117e79092919063ffffffff16565b805190915015610a7357808060200190518101906117cb9190611917565b610a735760405162461bcd60e51b815260040161048d90611dae565b60606117f684846000856117fe565b949350505050565b6060824710156118205760405162461bcd60e51b815260040161048d90611bcb565b611829856118b3565b6118455760405162461bcd60e51b815260040161048d90611d4b565b600080866001600160a01b031685876040516118619190611a45565b60006040518083038185875af1925050503d806000811461189e576040519150601f19603f3d011682016040523d82523d6000602084013e6118a3565b606091505b50915091506110608282866118c2565b6001600160a01b03163b151590565b606083156118d15750816112c7565b8251156118e15782518084602001fd5b8160405162461bcd60e51b815260040161048d9190611af2565b60006020828403121561190c578081fd5b81356112c781611f6c565b600060208284031215611928578081fd5b81516112c781611f81565b600080600060608486031215611947578182fd5b833561195281611f6c565b925060208401359150604084013561196981611f6c565b809150509250925092565b600060208284031215611985578081fd5b5035919050565b60006020828403121561199d578081fd5b5051919050565b600080604083850312156119b6578182fd5b8235915060208301356119c881611f6c565b809150509250929050565b600080600080600060a086880312156119ea578081fd5b8535945060208601356119fc81611f6c565b93506040860135611a0c81611f81565b94979396509394606081013594506080013592915050565b60008060408385031215611a36578182fd5b50508035926020909101359150565b60008251611a57818460208701611f0f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6001600160a01b039690961686526020860194909452604085019290925260608401521515608083015260a082015260c00190565b6000602082528251806020840152611b11816040850160208701611f0f565b601f01601f19169190910160400192915050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b6020808252601f908201527f7370616365526577617264506f6f6c3a206578697374696e6720706f6f6c3f00604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526010908201526f105b1c9958591e481b5a59dc985d195960821b604082015260600190565b6020808252602d908201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260408201526c103732bb9037b832b930ba37b960991b606082015260800190565b6020808252600a90820152693837b7b6173a37b5b2b760b11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b6020808252600c908201526b4f7574206f662072616e676560a01b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b602080825260059082015264737061636560d81b604082015260600190565b6020808252601590820152744578636565642074617820726174652072616e676560581b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b93845260208401929092526040830152606082015260800190565b60008219821115611eb457611eb4611f56565b500190565b600082611ed457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611ef357611ef3611f56565b500290565b600082821015611f0a57611f0a611f56565b500390565b60005b83811015611f2a578181015183820152602001611f12565b838111156117525750506000910152565b6000600019821415611f4f57611f4f611f56565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146105f457600080fd5b80151581146105f457600080fdfea2646970667358221220f7760e0cd9c92d145d6393619985b442e1940dba9d7eeba0bc4b5b70a4854c2b64736f6c634300080100330000000000000000000000004387059f4ebddacf7db89a4ea16c43fcaf629e0f000000000000000000000000000000000000000000000000000000006359019c00000000000000000000000001f80523429e64c1ff320f38a8e5f4a7c717ccd8

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