Contract 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdfa1ba495542aa9f3e18808b8c55edd52f8ff480c4e034eb5f5fb64d8c127aa60x6080604086835422022-03-27 8:50:38248 days 16 hrs ago0x0724668e123a4888dfa854ce452b40d28540001d IN  Create: CanisterV20 ETH0.01463331682 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xcd8c99eb5f7f39b812f09b101c00893ebbb0f83c84db8fa880409d21519700fe400425072022-11-21 19:54:049 days 5 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x29ec98685e75fc073334e37cd19ecfee21ab44cb502a5e4b0dddbacb0ff0e074385196392022-11-16 10:13:4814 days 14 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xdd07c1e2cbb9f39dc2d91ae27f3272beebf9785fc8f8823b43698cc935137860385196212022-11-16 10:13:4114 days 14 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xb8b097a36ca9c9748810ca7e0d48c8df5cc85138e14311cf7933e2b933ea2279385191782022-11-16 10:11:3514 days 14 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xb56371bebcc3f7d8cbcdac23c2f3e3edb1b23324526944a591a306df9e1add8e374548852022-11-12 9:05:5918 days 15 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x40cf064b92115a60e76abd2089f2dc3e4738238718de124c821e3a4841001dcf369325452022-11-10 13:56:2220 days 11 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x7be698222d8ac571cb37fd688d973e15dedf3f236e896b031bcc4bf9f24561d1357462732022-11-06 14:26:3724 days 10 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x526fecdb33fbaed4b65edea44afccab92f714345521e0a4d7044c8721b24936a357454902022-11-06 14:23:1324 days 10 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x1e39d2f78c3005c6a6722b2a564fd314bf5c0098b72381f0fbc0b14d47798951351230052022-11-04 5:23:2226 days 19 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x28aa3706ae3e60d6671d54cc12dfdd21353c72c517baa64540469970b01cd960351229842022-11-04 5:23:1326 days 19 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xff21049b2a4fc794d2841932aa338c965dff94ec2d1205e1fd27efa588e877eb349821322022-11-03 14:23:3327 days 10 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x3f8d501e46cef943f91f0cc849da9e25ec1e63c2bd9acfea69a9dca56c5898a5349160542022-11-03 8:46:1927 days 16 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x9ab1c1f01608871212cf21b3e8762491b691206fddd9263b494c1fbcc2908e76349159752022-11-03 8:45:4927 days 16 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x448ca0887bbcfad63e7fdc315e4e591cede9366eb0e35132e1a3f53c333f9e15337354032022-10-29 23:47:4332 days 1 hr ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xb58b71c5f222dbd02de592720da04cebb6de554a0af49767d6839ae97c4a0345337353682022-10-29 23:47:2932 days 1 hr ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x142808130c1065fafec0b5df69c727a5eac2a1caf079f55067a757e99c7ed5f1334890782022-10-29 2:31:5832 days 22 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x65655c87834c6dfeebcd8a3fcd578bef209abe99793249fd7e9c59026e1d4826328616172022-10-26 21:40:1535 days 3 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x6a165ad2c559d05948bbef0be18deb7e8ae922c9ff99e3dec58926cbb6dc864c328615652022-10-26 21:39:5435 days 3 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xdc22b3cf2ca5df4039be042ef8492d8c86fe1b7cc563ee4e4eefd907ffe31a44322961532022-10-24 20:48:5337 days 4 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xa41ff7ebdb74108f6716d7a9bf017fdcc04e533aeef4165765f15fb8213ea2d3308518942022-10-18 21:01:1343 days 3 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x01fa96564c2884e7e5e0e40d0ed4ab75e3fe537df3493b6ca06c61fd59f92681295301652022-10-11 9:05:0250 days 15 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x1262853d69a942a58d4558478ea2756d672b0b2f0aa6ca14140a8978a9d94f66295300082022-10-11 9:03:5050 days 15 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0x187bb912dee88be9113d423e84460145b0a18298cc06511c4c1ced84a4618dd3294888612022-10-11 2:31:3950 days 22 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xfd5782d9ab21af4e6b2296695ec7c9886c2d051057b079bf2954e27a7307a998294887962022-10-11 2:30:4850 days 22 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
0xf447b5ab836e374d81fffdd8c580008ea234fd9ff671ab02b0302f3684f92c26294547932022-10-10 19:30:3151 days 5 hrs ago 0x3b79641edd4dbe8212b65b2bcdbd89c756f15c3c 0x1df62a6aa08a61d30272b258d9b964d46ced1d0c0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CanisterV2

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : CanisterV2.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";

import "./ICanister.sol";
import "./ITreasury.sol";
import "./CanisterBase.sol";

contract CanisterV2 is
    Initializable,
    ICanister,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable,
    CanisterBase
{
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;
    using SafeERC20Upgradeable for IERC20Upgradeable;

    EnumerableSetUpgradeable.AddressSet private pools;

    modifier onlyAuthorized() {
        require(
            authorized[msg.sender] || owner() == msg.sender,
            "caller is not authorized"
        );
        _;
    }

    modifier poolExists(address poolToken) {
        require(pools.contains(poolToken), "Pool does not exist");
        _;
    }

    modifier canisterActive(address poolToken) {
        require(endTimestamp > block.timestamp, "Canister reward ended");
        _;
    }

    function initialize(
        address _boo,
        address _treasury,
        uint256 _totalReward,
        uint256 _startTimestamp,
        uint256 _endTimestamp,
        uint256 _initialUnlock,
        address _devaddr,
        uint256[] memory _withdrawalFees
    ) public initializer {
        __Ownable_init();
        __ReentrancyGuard_init();
        boo = IERC20Upgradeable(_boo);
        treasury = ITreasury(_treasury);
        startTimestamp = _startTimestamp;
        initialUnlock = _initialUnlock;
        totalReward = _totalReward;
        ratePerSecond = _totalReward / (_endTimestamp - _startTimestamp);
        devaddr = _devaddr;
        withdrawalFees = _withdrawalFees;
    }

    // View function to see pending $BOO on frontend.'
    // Add pendingRewards in each pool and claimed rewards in RewardInfo for accuracy
    function getPendingRewards(address _user, address[] memory poolTokens)
        public
        view
        returns (uint256)
    {
        uint256 reward = 0;
        for (uint256 i = 0; i < poolTokens.length; i++) {
            reward = reward + getPendingReward(_user, poolTokens[i]);
        }
        return reward;
    }

    // Returns pendingReward in a pool
    function getPendingReward(address _user, address poolToken)
        public
        view
        returns (uint256)
    {
        if (block.timestamp < startTimestamp) return 0;
        UserInfo storage user = userInfo[poolToken][_user];
        PoolInfo storage pool = poolInfo[poolToken];
        uint256 rewardPerShare = pool.rewardPerShare;

        if (block.timestamp > pool.lastRewardTimestamp && pool.balance > 0) {
            uint256 pendingReward = ratePerSecond *
                (block.timestamp - pool.lastRewardTimestamp);
            uint256 reward = (pendingReward * pool.allocPoint) /
                totalAllocPoint;
            rewardPerShare =
                rewardPerShare +
                ((reward * 1 ether) / pool.balance);
        }
        return ((user.amount * rewardPerShare) / 1 ether) - user.rewardDebt;
    }

    function updatePool(address poolToken) public poolExists(poolToken) {
        PoolInfo storage pool = poolInfo[poolToken];
        if (block.timestamp <= pool.lastRewardTimestamp) return;

        uint256 supply = pool.balance;
        if (supply == 0) {
            pool.lastRewardTimestamp = block.timestamp;
            return;
        }
        treasury.requestFund();
        uint256 pendingReward = ratePerSecond *
            (block.timestamp - pool.lastRewardTimestamp);
        uint256 reward = (pendingReward * pool.allocPoint) / totalAllocPoint;
        pool.rewardPerShare =
            pool.rewardPerShare +
            ((reward * 1 ether) / supply);
        pool.lastRewardTimestamp = block.timestamp;
        emit Update(poolToken, pool.rewardPerShare, pool.lastRewardTimestamp);
    }

    function _harvest(address poolToken) internal {
        PoolInfo storage pool = poolInfo[poolToken];
        UserInfo storage user = userInfo[poolToken][msg.sender];

        if (user.amount > 0) {
            uint256 pending = ((user.amount * pool.rewardPerShare) / 1 ether) -
                user.rewardDebt;
            if (pending > 0) {
                // boo.transfer(msg.sender, pending);
                // Reset the rewardDebtAtBlock to the current block for the user.
                RewardInfo storage _reward = rewardInfo[msg.sender];
                _reward.totalReward = _reward.totalReward + pending;
                _reward.reward += pending;
                user.rewardDebtAtTimestamp = block.timestamp;
                emit SendReward(msg.sender, poolToken, pending);
            }
            // Recalculate the rewardDebt for the user.
            user.rewardDebt = (user.amount * pool.rewardPerShare) / 1 ether;
        }
    }

    function getRewardInfo(address _user) public view returns (uint256) {
        return rewardInfo[_user].reward;
    }

    // User deposit tokens
    function deposit(
        address _user,
        address poolToken,
        uint256 amount
    ) public poolExists(poolToken) nonReentrant {
        UserInfo storage user = userInfo[poolToken][_user];
        PoolInfo storage pool = poolInfo[poolToken];
        IERC20Upgradeable token = IERC20Upgradeable(poolToken);
        // When a user deposits, we need to update the pool and harvest beforehand,
        // since the rates will change.
        updatePool(poolToken);
        _harvest(poolToken);

        token.safeTransferFrom(msg.sender, address(this), amount);
        user.amount += amount;
        user.totalDeposited += amount;
        pool.balance += amount;
        if (user.amount == 0) {
            user.rewardDebtAtTimestamp = block.timestamp;
        }
        user.rewardDebt = (user.amount * pool.rewardPerShare) / 1 ether;
        if (user.firstDepositTimestamp > 0) {} else {
            user.firstDepositTimestamp = block.timestamp;
        }
        user.lastDepositTimestamp = block.timestamp;
        emit Deposit(_user, poolToken, amount);
    }

    function addRewardToUser(address _user, uint256 amount)
        external
        onlyAuthorized
    {
        RewardInfo storage _reward = rewardInfo[msg.sender];
        _reward.totalReward = _reward.totalReward + amount;
        _reward.reward += amount;
        emit RewardAddedToUser(msg.sender, _user, amount);
    }

    function claimRewards(address[] memory poolTokens) public {
        for (uint256 i = 0; i < poolTokens.length; i++) {
            updatePool(poolTokens[i]);
            _harvest(poolTokens[i]);
        }
        RewardInfo storage user = rewardInfo[msg.sender];
        // uint256 amount = user.totalReward;
        uint256 amount = getUnlocked(
            user.reward,
            user.totalReward,
            user.totalClaimed
        );

        if (pools.contains(address(boo))) {
            if (
                amount >
                boo.balanceOf(address(this)) - poolInfo[address(boo)].balance
            ) {
                amount =
                    boo.balanceOf(address(this)) -
                    poolInfo[address(boo)].balance;
            }
        } else {
            if (amount > boo.balanceOf(address(this))) {
                amount = boo.balanceOf(address(this));
            }
        }

        user.reward -= amount;
        user.totalClaimed += amount;
        boo.safeTransfer(msg.sender, amount);
        emit RewardClaimed(msg.sender, amount);
    }

    function getWithdrawable(address _user, address[] memory poolTokens)
        public
        view
        returns (uint256)
    {
        uint256 amount;
        for (uint256 i = 0; i < poolTokens.length; i++) {
            UserInfo storage user = userInfo[poolTokens[i]][_user];
            amount += getUnlocked(
                user.amount,
                user.totalDeposited,
                user.totalWithdrawn
            );
        }
        return amount;
    }

    function getClaimable(address _user) public view returns (uint256) {
        RewardInfo storage user = rewardInfo[_user];
        return getUnlocked(user.reward, user.totalReward, user.totalClaimed);
    }

    function getLockedReward(address _user) public view returns (uint256) {
        RewardInfo storage user = rewardInfo[_user];
        return
            user.reward -
            getUnlocked(user.reward, user.totalReward, user.totalClaimed);
    }

    // Returns unlocked token amount that users can withdraw
    function getUnlocked(
        uint256 current,
        uint256 total,
        uint256 claimed
    ) public view returns (uint256) {
        if (block.timestamp < startTimestamp) {
            return 0;
        } else if (block.timestamp >= endTimestamp) {
            return current;
        }
        uint256 releaseBlock = block.timestamp - startTimestamp;
        uint256 totalLockedBlock = endTimestamp - startTimestamp;
        uint256 initialUnlockScale = 100 - initialUnlock;
        uint256 unlockedTotalDeposited = (total *
            (((releaseBlock * 1e5 * initialUnlockScale) /
                totalLockedBlock /
                100) + ((initialUnlock * 1e5) / 100))) / 1e5;
        if (claimed >= total) return 0;
        else return unlockedTotalDeposited - claimed;
    }

    // User withdraws tokens from respective token pools
    function withdraw(
        address _user,
        address poolToken,
        uint256 amount
    ) public poolExists(poolToken) nonReentrant {
        require(msg.sender == _user, "Only owner can withdraw");
        UserInfo storage user = userInfo[poolToken][_user];
        PoolInfo storage pool = poolInfo[poolToken];
        require(
            amount <=
                getUnlocked(
                    user.amount,
                    user.totalDeposited,
                    user.totalWithdrawn
                ),
            "Given amount is not unlocked yet"
        );
        updatePool(poolToken);
        _harvest(poolToken);
        if (amount > 0) {
            user.amount = user.amount - amount;
            if (user.lastWithdrawTimestamp > 0) {
                user.timestampDelta =
                    block.timestamp -
                    user.lastWithdrawTimestamp;
            } else {
                user.timestampDelta =
                    block.timestamp -
                    user.firstDepositTimestamp;
            }
            //25% fee for withdrawals of tokens in the same block to prevent abuse from flashloans
            if (
                user.timestampDelta == withdrawalFees[0] ||
                block.timestamp == user.lastWithdrawTimestamp
            ) {
                uint256 fees = (amount * 25) / 100;
                pool.token.transfer(msg.sender, amount - fees);
                pool.token.transfer(address(devaddr), fees);
            } else if (
                user.timestampDelta > withdrawalFees[0] &&
                user.timestampDelta <= withdrawalFees[1]
            ) {
                //10% fee if a user deposits and withdraws in between same block and 59 minutes.
                uint256 fees = (amount * 10) / 100;
                pool.token.safeTransfer(msg.sender, amount - fees);
                pool.token.safeTransfer(address(devaddr), fees);
            } else {
                pool.token.transfer(msg.sender, amount);
            }
            user.rewardDebt = (user.amount * pool.rewardPerShare) / 1 ether;
            user.lastWithdrawTimestamp = block.timestamp;
            pool.balance -= amount;
            user.totalWithdrawn += amount;
            emit Withdraw(msg.sender, poolToken, amount);
        }
    }

    function getCurrentLockedRate() public view returns (uint256) {
      if (block.timestamp < startTimestamp) {
            return 0;
      } else if (block.timestamp >= endTimestamp) {
          return 100;
      }
      uint256 releaseBlock = block.timestamp - startTimestamp;
      uint256 totalLockedBlock = endTimestamp - startTimestamp;
      uint256 initialUnlockScale = 100 - initialUnlock;
      return  (((releaseBlock * 1e5 * initialUnlockScale) /
              totalLockedBlock /
              100) + ((initialUnlock * 1e5) / 100)) / 1e5;
    }

    function addPool(address poolToken, uint256 _allocPoint)
        public
        onlyAuthorized
    {
        require(
            pools.contains(poolToken) == false,
            "Token already allocated for canister"
        );
        totalAllocPoint += _allocPoint;
        uint256 lastRewardTimestamp = block.timestamp > startTimestamp
            ? block.timestamp
            : startTimestamp;
        if (pools.add(poolToken)) {
            poolInfo[poolToken] = PoolInfo({
                token: IERC20Upgradeable(poolToken),
                allocPoint: _allocPoint,
                balance: 0,
                lastRewardTimestamp: lastRewardTimestamp,
                rewardPerShare: 0
            });
            emit PoolAdded(poolToken, _allocPoint);
        }
    }

    function setPool(address poolToken, uint256 _allocPoint)
        public
        onlyAuthorized
        poolExists(poolToken)
    {
        totalAllocPoint =
            totalAllocPoint -
            poolInfo[poolToken].allocPoint +
            _allocPoint;
        poolInfo[poolToken].allocPoint = _allocPoint;
        emit PoolUpdated(poolToken, _allocPoint);
    }

    function removePool(address poolToken)
        external
        virtual
        onlyAuthorized
        poolExists(poolToken)
    {
        if (poolInfo[poolToken].balance == 0 && pools.remove(poolToken)) {
            totalAllocPoint -= poolInfo[poolToken].allocPoint;
            delete poolInfo[poolToken];
            emit PoolRemoved(poolToken);
        }
    }

    function poolLength() external view returns (uint256) {
        return pools.length();
    }

    function getPoolBalance(address poolToken) public view returns (uint256) {
        return poolInfo[poolToken].balance;
    }

    function getUserBalance(address poolToken, address _user)
        public
        view
        returns (uint256)
    {
        return userInfo[poolToken][_user].amount;
    }

    function addAuthorized(address _toAdd) public onlyOwner {
        authorized[_toAdd] = true;
    }

    function removeAuthorized(address _toRemove) public onlyOwner {
        require(_toRemove != msg.sender);
        authorized[_toRemove] = false;
    }

    function setInitialUnlock(uint256 _initialUnlock) public onlyAuthorized {
        require(_initialUnlock < 100);
        initialUnlock = _initialUnlock;
    }

    function updateTimestamp(uint256 _startTimestamp, uint256 _endTimestamp)
        external
        onlyAuthorized
    {
        if (_startTimestamp > 0) {
            startTimestamp = _startTimestamp;
        }

        if (_endTimestamp > 0) {
            require(
                _endTimestamp > _startTimestamp,
                "Rewards must last > 1 sec"
            );
            require(
                _endTimestamp > block.timestamp,
                "Cannot end rewards in the past"
            );

            endTimestamp = _endTimestamp;
        }

        ratePerSecond = totalReward / (endTimestamp - startTimestamp);
    }

    function setTotalReward(uint256 amount) external onlyAuthorized {
        totalReward = amount;
        ratePerSecond = totalReward / (endTimestamp - startTimestamp);
    }

    function setWithdrawalFeeStages(uint256[] memory _userFees)
        public
        onlyAuthorized
    {
        withdrawalFees = _userFees;
    }
}

File 2 of 12 : ITreasury.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';


interface ITreasury {
    struct StreamInfo {
        uint256 totalFund;
        uint256 startTimestamp;
        uint256 endTimestamp;
        uint256 lastPullTimestamp;
        uint256 ratePerSecond;
        uint256 funded;
    }
    
    function requestFund() external returns (uint256 rewardsPaid);

    function grantTokenToStream(address _stream, uint256 _amount) external;

    function getStreams() external view returns (address[] memory);

    function getStreamInfo(address _stream) external view returns (StreamInfo memory);

    function getGlobalRatePerSecond() external view returns (uint256 globalRatePerSecond);

    function getRatePerSecond(address _stream) external view returns (uint256 ratePerSecond);

    function getPendingFund(address _stream) external view returns (uint256 pendingFund);
}

File 3 of 12 : ICanister.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';

interface ICanister {
  struct UserInfo {
    uint256 amount; // How many tokens the user has provided.
    uint256 lastWithdrawTimestamp; // the last Timestamp a user withdrew at.
    uint256 firstDepositTimestamp; // the first Timestamp a user deposited at.
    uint256 lastDepositTimestamp; // the last Timestamp user depostied at.
    uint256 totalDeposited;
    uint256 totalWithdrawn;
    uint256 rewardDebt;
    uint256 rewardDebtAtTimestamp; // the last Timestamp user stake
    uint256 timestampDelta;
  }

  struct RewardInfo {
    uint256 lastClaimedTimestamp;
    uint256 totalReward;
    uint256 reward;
    uint256 totalClaimed;
  }

  // Info of each pool.
  struct PoolInfo {
    IERC20Upgradeable token; // Address of token contract (BOO, MAGIC, BOO-MAGIC, etc)
    uint256 allocPoint; // How many points are assigned to this pool.
    uint256 balance; // Total tokens locked up
    uint256 rewardPerShare;
    uint256 lastRewardTimestamp;
  }

  // View function to see pending $BOO on frontend.'
  // Add pendingRewards in each pool and claimed rewards in RewardInfo for accuracy
  function getPendingRewards(address _user, address[] memory poolTokens) external view returns (uint256);

  function updatePool(address poolToken) external;

  function getRewardInfo(address _user) external view returns (uint256);

  // User deposit tokens
  function deposit(address _user, address poolToken, uint256 amount) external;
  
  // User withdraws tokens from respective token pools
  function withdraw(address _user, address poolToken, uint256 amount) external;

  function claimRewards(address[] memory poolTokens) external;

  function getWithdrawable(address _user, address[] memory poolTokens) external view returns (uint256);

  function getClaimable(address _user) external view returns (uint256);

  function getLockedReward(address _user) external view returns (uint256);
}

File 4 of 12 : CanisterBase.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;

import "./ITreasury.sol";
import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';
import "./ICanister.sol";
import '@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol';


contract CanisterBase {
  mapping(address => bool) public authorized;
  ITreasury treasury;
  uint256 public totalReward;
  uint256 public startTimestamp;
  uint256 public endTimestamp;
  uint256 public ratePerSecond;

  IERC20Upgradeable public boo;
  // Owner address; Withdrawal fees would go to this address
  address public devaddr;

  uint256 public totalAllocPoint;

  uint256 public initialUnlock; // In percentage, e.g 25 for 25%

  uint256[] public withdrawalFees;

  mapping (address => ICanister.PoolInfo) public poolInfo;

  // poolTokenAddress => userAddress => UserInfo
  mapping(address => mapping(address => ICanister.UserInfo)) public userInfo; // poolId => userAddress => UserInfo
  mapping(address => ICanister.RewardInfo) public rewardInfo; // userAddress => RewardInfo

  event Update(address indexed poolToken, uint256 rewardPerShare, uint256 lastRewardBlock);
  event FundDifference(address indexed poolToken, uint256 blockTimestamp, uint256 lastRewardTimestamp, uint256 pulledFund, uint256 pendingReward);
  event Deposit(address indexed user, address indexed poolToken, uint256 amount);
  event SendReward(address indexed user, address indexed poolToken, uint256 reward);
  event RewardClaimed(address indexed user, uint256 reward);
  event Withdraw(address indexed user, address indexed poolToken, uint256 amount);
  event PoolAdded(address indexed poolToken, uint256 allocPoint);
  event PoolUpdated(address indexed poolToken, uint256 allocPoint);
  event PoolRemoved(address indexed poolToken);
  event RewardAddedToUser(address indexed sender, address indexed receiver, uint256 amount);
}

File 5 of 12 : EnumerableSetUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSetUpgradeable {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 6 of 12 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 7 of 12 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 12 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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));
        }
    }

    /**
     * @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(IERC20Upgradeable 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 9 of 12 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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 10 of 12 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 11 of 12 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 12 of 12 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pulledFund","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pendingReward","type":"uint256"}],"name":"FundDifference","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":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolToken","type":"address"}],"name":"PoolRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"PoolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardAddedToUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"SendReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardPerShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardBlock","type":"uint256"}],"name":"Update","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"poolToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"_toAdd","type":"address"}],"name":"addAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addRewardToUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boo","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"poolTokens","type":"address[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentLockedRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getLockedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"poolToken","type":"address"}],"name":"getPendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address[]","name":"poolTokens","type":"address[]"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"}],"name":"getPoolBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getRewardInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"name":"getUnlocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address[]","name":"poolTokens","type":"address[]"}],"name":"getWithdrawable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialUnlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_boo","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_totalReward","type":"uint256"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"},{"internalType":"uint256","name":"_initialUnlock","type":"uint256"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256[]","name":"_withdrawalFees","type":"uint256[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20Upgradeable","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"rewardPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toRemove","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"}],"name":"removePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardInfo","outputs":[{"internalType":"uint256","name":"lastClaimedTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalReward","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"totalClaimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initialUnlock","type":"uint256"}],"name":"setInitialUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setTotalReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_userFees","type":"uint256[]"}],"name":"setWithdrawalFeeStages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolToken","type":"address"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"}],"name":"updateTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lastWithdrawTimestamp","type":"uint256"},{"internalType":"uint256","name":"firstDepositTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastDepositTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalDeposited","type":"uint256"},{"internalType":"uint256","name":"totalWithdrawn","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardDebtAtTimestamp","type":"uint256"},{"internalType":"uint256","name":"timestampDelta","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50612ee0806100206000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80638eff1a9811610146578063cf1c316a116100c3578063e09ac55711610087578063e09ac557146106a1578063e6fd48bc146106b4578063f2fde38b146106bd578063f776ad3f146106d0578063f9f031df146106e3578063fe0f3a13146106f657600080fd5b8063cf1c316a14610629578063d28682ea1461063c578063d49e77cd14610668578063d8101e301461067b578063d9caed121461068e57600080fd5b8063b77da06f1161010a578063b77da06f14610572578063b918161114610585578063bc78f0d5146105b8578063c3f368af146105cb578063cbecf6b5146105d457600080fd5b80638eff1a98146104c15780639a7b5f11146104ca5780639bb9a04214610543578063a583024b14610556578063a85adeab1461056957600080fd5b8063485d7d94116101df578063715018a6116101a3578063715018a614610466578063750142e61461046e5780637b46c54f146104775780638340f5491461048a5780638624053b1461049d5780638da5cb5b146104b057600080fd5b8063485d7d94146103c95780634b3df200146103dc57806350feb3ec146104075780635c48360f1461041a5780636805d6ad1461042d57600080fd5b80631df7e7cc116102265780631df7e7cc1461037357806332a9caba1461037b57806335ed32b5146103905780633b7d0946146103a357806346a94940146103b657600080fd5b806306032d7414610263578063081e3eda146102a25780630f208beb146102aa57806317caf6f11461035757806318f20d0d14610360575b600080fd5b61028f6102713660046128a2565b6001600160a01b0316600090815260a4602052604090206002015490565b6040519081526020015b60405180910390f35b61028f610709565b6103136102b83660046128bd565b60a3602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080154905089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015260e083015261010082015261012001610299565b61028f609f5481565b61028f61036e3660046129cd565b61071a565b61028f6107cf565b61038e610389366004612a1b565b610895565b005b61028f61039e3660046129cd565b610a44565b61038e6103b13660046128a2565b610a93565b61038e6103c4366004612aa0565b610be2565b61038e6103d73660046128a2565b610c48565b609d546103ef906001600160a01b031681565b6040516001600160a01b039091168152602001610299565b61038e610415366004612ad5565b610ca9565b61038e610428366004612a1b565b610dd6565b61028f61043b3660046128bd565b6001600160a01b03918216600090815260a36020908152604080832093909416825291909152205490565b61038e610ed8565b61028f60995481565b61038e6104853660046128a2565b610f0e565b61038e610498366004612af7565b6110bd565b61038e6104ab366004612b33565b611289565b6033546001600160a01b03166103ef565b61028f609c5481565b6105116104d83660046128a2565b60a260205260009081526040902080546001820154600283015460038401546004909401546001600160a01b0390931693919290919085565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610299565b61028f610551366004612bc9565b6113df565b61028f6105643660046128a2565b611400565b61028f609b5481565b61028f6105803660046128a2565b611439565b6105a86105933660046128a2565b60976020526000908152604090205460ff1681565b6040519015158152602001610299565b61038e6105c6366004612bc9565b61147a565b61028f60a05481565b6106096105e23660046128a2565b60a46020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610299565b61038e6106373660046128a2565b6114f5565b61028f61064a3660046128a2565b6001600160a01b0316600090815260a2602052604090206002015490565b609e546103ef906001600160a01b031681565b61038e610689366004612bc9565b611543565b61038e61069c366004612af7565b6115a8565b61028f6106af366004612be2565b611ab4565b61028f609a5481565b61038e6106cb3660046128a2565b611bad565b61038e6106de366004612a1b565b611c48565b61038e6106f1366004612c0e565b611d20565b61028f6107043660046128bd565b61204f565b600061071560a5612163565b905090565b60008060005b83518110156107c557600060a3600086848151811061074157610741612c43565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000876001600160a01b03166001600160a01b0316815260200190815260200160002090506107a5816000015482600401548360050154611ab4565b6107af9084612c6f565b92505080806107bd90612c87565b915050610720565b5090505b92915050565b6000609a544210156107e15750600090565b609b5442106107f05750606490565b6000609a54426108009190612ca2565b90506000609a54609b546108149190612ca2565b9050600060a05460646108279190612ca2565b9050620186a0606460a054620186a06108409190612cb9565b61084a9190612cd8565b6064848461085b88620186a0612cb9565b6108659190612cb9565b61086f9190612cd8565b6108799190612cd8565b6108839190612c6f565b61088d9190612cd8565b935050505090565b3360009081526097602052604090205460ff16806108cc5750336108c16033546001600160a01b031690565b6001600160a01b0316145b6108f15760405162461bcd60e51b81526004016108e890612cfa565b60405180910390fd5b6108fc60a58361216d565b156109555760405162461bcd60e51b8152602060048201526024808201527f546f6b656e20616c726561647920616c6c6f636174656420666f722063616e6960448201526339ba32b960e11b60648201526084016108e8565b80609f60008282546109679190612c6f565b9091555050609a54600090421161098057609a54610982565b425b905061098f60a58461218f565b15610a3f576040805160a0810182526001600160a01b038581168083526020808401878152600085870181815260608701828152608088018a815286845260a2865292899020975188546001600160a01b03191697169690961787559151600187015590516002860155925160038501559151600490930192909255915184815290917f0c98febfffcec480c66a977e13f14bafdb5199ea9603591a0715b0cabe0c3ae291015b60405180910390a25b505050565b600080805b83518110156107c557610a7585858381518110610a6857610a68612c43565b602002602001015161204f565b610a7f9083612c6f565b915080610a8b81612c87565b915050610a49565b3360009081526097602052604090205460ff1680610aca575033610abf6033546001600160a01b031690565b6001600160a01b0316145b610ae65760405162461bcd60e51b81526004016108e890612cfa565b80610af260a58261216d565b610b0e5760405162461bcd60e51b81526004016108e890612d31565b6001600160a01b038216600090815260a26020526040902060020154158015610b3d5750610b3d60a5836121a4565b15610bde576001600160a01b038216600090815260a26020526040812060010154609f805491929091610b71908490612ca2565b90915550506001600160a01b038216600081815260a2602052604080822080546001600160a01b0319168155600181018390556002810183905560038101839055600401829055517f4106dfdaa577573db51c0ca93f766dbedfa0758faa2e7f5bcdb7c142be803c3f9190a25b5050565b3360009081526097602052604090205460ff1680610c19575033610c0e6033546001600160a01b031690565b6001600160a01b0316145b610c355760405162461bcd60e51b81526004016108e890612cfa565b8051610bde9060a1906020840190612826565b6033546001600160a01b03163314610c725760405162461bcd60e51b81526004016108e890612d5e565b6001600160a01b038116331415610c8857600080fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b3360009081526097602052604090205460ff1680610ce0575033610cd56033546001600160a01b031690565b6001600160a01b0316145b610cfc5760405162461bcd60e51b81526004016108e890612cfa565b8115610d0857609a8290555b8015610db257818111610d5d5760405162461bcd60e51b815260206004820152601960248201527f52657761726473206d757374206c617374203e2031207365630000000000000060448201526064016108e8565b428111610dac5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f7420656e64207265776172647320696e207468652070617374000060448201526064016108e8565b609b8190555b609a54609b54610dc29190612ca2565b609954610dcf9190612cd8565b609c555050565b3360009081526097602052604090205460ff1680610e0d575033610e026033546001600160a01b031690565b6001600160a01b0316145b610e295760405162461bcd60e51b81526004016108e890612cfa565b81610e3560a58261216d565b610e515760405162461bcd60e51b81526004016108e890612d31565b6001600160a01b038316600090815260a26020526040902060010154609f548391610e7b91612ca2565b610e859190612c6f565b609f556001600160a01b038316600081815260a2602052604090819020600101849055517f2f4ae87a584f00dc35b043dd1c5ac839c1f41cd3a66e834d4e13faa6251634e690610a369085815260200190565b6033546001600160a01b03163314610f025760405162461bcd60e51b81526004016108e890612d5e565b610f0c60006121b9565b565b80610f1a60a58261216d565b610f365760405162461bcd60e51b81526004016108e890612d31565b6001600160a01b038216600090815260a26020526040902060048101544211610f5e57505050565b600281015480610f745750426004909101555050565b609860009054906101000a90046001600160a01b03166001600160a01b031663e0d4ee676040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fed9190612d93565b5060008260040154426110009190612ca2565b609c5461100d9190612cb9565b90506000609f548460010154836110249190612cb9565b61102e9190612cd8565b90508261104382670de0b6b3a7640000612cb9565b61104d9190612cd8565b846003015461105c9190612c6f565b6003850181905542600486018190556040516001600160a01b038916927f5429acfa1bb2f4dabe79b6340b7d91d801c2d985aabad7148c2476bbd9421cf8926110ad92918252602082015260400190565b60405180910390a2505050505050565b816110c960a58261216d565b6110e55760405162461bcd60e51b81526004016108e890612d31565b600260655414156111385760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108e8565b60026065556001600160a01b03808416600081815260a360209081526040808320948916835293815283822092825260a29052919091208461117981610f0e565b6111828661220b565b6111976001600160a01b038216333088612334565b848360000160008282546111ab9190612c6f565b92505081905550848360040160008282546111c69190612c6f565b92505081905550848260020160008282546111e19190612c6f565b909155505082546111f3574260078401555b60038201548354670de0b6b3a76400009161120d91612cb9565b6112179190612cd8565b600684015560028301541561122b57611232565b4260028401555b4260038401556040518581526001600160a01b0380881691908916907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a3505060016065555050505050565b600054610100900460ff166112a45760005460ff16156112a8565b303b155b61130b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108e8565b600054610100900460ff1615801561132d576000805461ffff19166101011790555b6113356123a5565b61133d6123d4565b609d80546001600160a01b03808c166001600160a01b03199283161790925560988054928b1692909116919091179055609a86905560a084905560998790556113868686612ca2565b6113909088612cd8565b609c55609e80546001600160a01b0319166001600160a01b03851617905581516113c19060a1906020850190612826565b5080156113d4576000805461ff00191690555b505050505050505050565b60a181815481106113ef57600080fd5b600091825260209091200154905081565b6001600160a01b038116600090815260a460205260408120600281015460018201546003830154611432929190611ab4565b9392505050565b6001600160a01b038116600090815260a46020526040812060028101546001820154600383015461146b929190611ab4565b81600201546114329190612ca2565b3360009081526097602052604090205460ff16806114b15750336114a66033546001600160a01b031690565b6001600160a01b0316145b6114cd5760405162461bcd60e51b81526004016108e890612cfa565b6099819055609a54609b546114e29190612ca2565b6099546114ef9190612cd8565b609c5550565b6033546001600160a01b0316331461151f5760405162461bcd60e51b81526004016108e890612d5e565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b3360009081526097602052604090205460ff168061157a57503361156f6033546001600160a01b031690565b6001600160a01b0316145b6115965760405162461bcd60e51b81526004016108e890612cfa565b606481106115a357600080fd5b60a055565b816115b460a58261216d565b6115d05760405162461bcd60e51b81526004016108e890612d31565b600260655414156116235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108e8565b6002606555336001600160a01b038516146116805760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79206f776e65722063616e20776974686472617700000000000000000060448201526064016108e8565b6001600160a01b03808416600081815260a360209081526040808320948916835293815283822092825260a29052919091208154600483015460058401546116c9929190611ab4565b8411156117185760405162461bcd60e51b815260206004820181905260248201527f476976656e20616d6f756e74206973206e6f7420756e6c6f636b65642079657460448201526064016108e8565b61172185610f0e565b61172a8561220b565b8315611aa757815461173d908590612ca2565b82556001820154156117625760018201546117589042612ca2565b6008830155611777565b60028201546117719042612ca2565b60088301555b60a160008154811061178b5761178b612c43565b9060005260206000200154826008015414806117aa5750816001015442145b156118d557600060646117be866019612cb9565b6117c89190612cd8565b82549091506001600160a01b031663a9059cbb336117e68489612ca2565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118559190612dac565b508154609e5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156118aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ce9190612dac565b5050611a00565b60a16000815481106118e9576118e9612c43565b90600052602060002001548260080154118015611928575060a160018154811061191557611915612c43565b9060005260206000200154826008015411155b1561198a576000606461193c86600a612cb9565b6119469190612cd8565b9050611968336119568388612ca2565b84546001600160a01b03169190612403565b609e548254611984916001600160a01b03918216911683612403565b50611a00565b805460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156119da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fe9190612dac565b505b60038101548254670de0b6b3a764000091611a1a91612cb9565b611a249190612cd8565b6006830155426001830155600281018054859190600090611a46908490612ca2565b9250508190555083826005016000828254611a619190612c6f565b90915550506040518481526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a35b5050600160655550505050565b6000609a54421015611ac857506000611432565b609b544210611ad8575082611432565b6000609a5442611ae89190612ca2565b90506000609a54609b54611afc9190612ca2565b9050600060a0546064611b0f9190612ca2565b90506000620186a0606460a054620186a0611b2a9190612cb9565b611b349190612cd8565b60648585611b4589620186a0612cb9565b611b4f9190612cb9565b611b599190612cd8565b611b639190612cd8565b611b6d9190612c6f565b611b779089612cb9565b611b819190612cd8565b9050868610611b97576000945050505050611432565b611ba18682612ca2565b98975050505050505050565b6033546001600160a01b03163314611bd75760405162461bcd60e51b81526004016108e890612d5e565b6001600160a01b038116611c3c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e8565b611c45816121b9565b50565b3360009081526097602052604090205460ff1680611c7f575033611c746033546001600160a01b031690565b6001600160a01b0316145b611c9b5760405162461bcd60e51b81526004016108e890612cfa565b33600090815260a4602052604090206001810154611cba908390612c6f565b816001018190555081816002016000828254611cd69190612c6f565b90915550506040518281526001600160a01b0384169033907f6c99313f3db6a27d404cc363b26b5f85efa0546cbbb4c5a24dca55a699b038899060200160405180910390a3505050565b60005b8151811015611d8257611d4e828281518110611d4157611d41612c43565b6020026020010151610f0e565b611d70828281518110611d6357611d63612c43565b602002602001015161220b565b80611d7a81612c87565b915050611d23565b5033600090815260a460205260408120600281015460018201546003830154929392611daf929190611ab4565b609d54909150611dca9060a5906001600160a01b031661216d565b15611ef057609d546001600160a01b0316600081815260a26020526040908190206002015490516370a0823160e01b81523060048201529091906370a0823190602401602060405180830381865afa158015611e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4e9190612d93565b611e589190612ca2565b811115611eeb57609d546001600160a01b0316600081815260a26020526040908190206002015490516370a0823160e01b81523060048201529091906370a0823190602401602060405180830381865afa158015611eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ede9190612d93565b611ee89190612ca2565b90505b611fd2565b609d546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5c9190612d93565b811115611fd257609d546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611fab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcf9190612d93565b90505b80826002016000828254611fe69190612ca2565b92505081905550808260030160008282546120019190612c6f565b9091555050609d5461201d906001600160a01b03163383612403565b60405181815233907f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724190602001610a36565b6000609a54421015612063575060006107c9565b6001600160a01b03808316600081815260a360209081526040808320948816835293815283822092825260a290529190912060038101546004820154421180156120b1575060008260020154115b156121295760008260040154426120c89190612ca2565b609c546120d59190612cb9565b90506000609f548460010154836120ec9190612cb9565b6120f69190612cd8565b600285015490915061211082670de0b6b3a7640000612cb9565b61211a9190612cd8565b6121249084612c6f565b925050505b60068301548354670de0b6b3a764000090612145908490612cb9565b61214f9190612cd8565b6121599190612ca2565b9695505050505050565b60006107c9825490565b6001600160a01b03811660009081526001830160205260408120541515611432565b6000611432836001600160a01b038416612433565b6000611432836001600160a01b038416612482565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038116600090815260a26020908152604080832060a38352818420338552909252909120805415610a3f5760008160060154670de0b6b3a7640000846003015484600001546122619190612cb9565b61226b9190612cd8565b6122759190612ca2565b905080156123055733600090815260a460205260409020600181015461229c908390612c6f565b8160010181905550818160020160008282546122b89190612c6f565b90915550504260078401556040518281526001600160a01b0386169033907fbeb84cff67f4a9b45ba0cb88ead8c179758db1deb5d0ecda594c7d7e091c02029060200160405180910390a3505b60038301548254670de0b6b3a76400009161231f91612cb9565b6123299190612cd8565b600683015550505050565b6040516001600160a01b038085166024830152831660448201526064810182905261239f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612575565b50505050565b600054610100900460ff166123cc5760405162461bcd60e51b81526004016108e890612dce565b610f0c612647565b600054610100900460ff166123fb5760405162461bcd60e51b81526004016108e890612dce565b610f0c612677565b6040516001600160a01b038316602482015260448101829052610a3f90849063a9059cbb60e01b90606401612368565b600081815260018301602052604081205461247a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107c9565b5060006107c9565b6000818152600183016020526040812054801561256b5760006124a6600183612ca2565b85549091506000906124ba90600190612ca2565b905081811461251f5760008660000182815481106124da576124da612c43565b90600052602060002001549050808760000184815481106124fd576124fd612c43565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061253057612530612e19565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107c9565b60009150506107c9565b60006125ca826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126a59092919063ffffffff16565b805190915015610a3f57808060200190518101906125e89190612dac565b610a3f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108e8565b600054610100900460ff1661266e5760405162461bcd60e51b81526004016108e890612dce565b610f0c336121b9565b600054610100900460ff1661269e5760405162461bcd60e51b81526004016108e890612dce565b6001606555565b60606126b484846000856126bc565b949350505050565b60608247101561271d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108e8565b6001600160a01b0385163b6127745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108e8565b600080866001600160a01b031685876040516127909190612e5b565b60006040518083038185875af1925050503d80600081146127cd576040519150601f19603f3d011682016040523d82523d6000602084013e6127d2565b606091505b50915091506127e28282866127ed565b979650505050505050565b606083156127fc575081611432565b82511561280c5782518084602001fd5b8160405162461bcd60e51b81526004016108e89190612e77565b828054828255906000526020600020908101928215612861579160200282015b82811115612861578251825591602001919060010190612846565b5061286d929150612871565b5090565b5b8082111561286d5760008155600101612872565b80356001600160a01b038116811461289d57600080fd5b919050565b6000602082840312156128b457600080fd5b61143282612886565b600080604083850312156128d057600080fd5b6128d983612886565b91506128e760208401612886565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561292f5761292f6128f0565b604052919050565b600067ffffffffffffffff821115612951576129516128f0565b5060051b60200190565b600082601f83011261296c57600080fd5b8135602061298161297c83612937565b612906565b82815260059290921b840181019181810190868411156129a057600080fd5b8286015b848110156129c2576129b581612886565b83529183019183016129a4565b509695505050505050565b600080604083850312156129e057600080fd5b6129e983612886565b9150602083013567ffffffffffffffff811115612a0557600080fd5b612a118582860161295b565b9150509250929050565b60008060408385031215612a2e57600080fd5b612a3783612886565b946020939093013593505050565b600082601f830112612a5657600080fd5b81356020612a6661297c83612937565b82815260059290921b84018101918181019086841115612a8557600080fd5b8286015b848110156129c25780358352918301918301612a89565b600060208284031215612ab257600080fd5b813567ffffffffffffffff811115612ac957600080fd5b6126b484828501612a45565b60008060408385031215612ae857600080fd5b50508035926020909101359150565b600080600060608486031215612b0c57600080fd5b612b1584612886565b9250612b2360208501612886565b9150604084013590509250925092565b600080600080600080600080610100898b031215612b5057600080fd5b612b5989612886565b9750612b6760208a01612886565b965060408901359550606089013594506080890135935060a08901359250612b9160c08a01612886565b915060e089013567ffffffffffffffff811115612bad57600080fd5b612bb98b828c01612a45565b9150509295985092959890939650565b600060208284031215612bdb57600080fd5b5035919050565b600080600060608486031215612bf757600080fd5b505081359360208301359350604090920135919050565b600060208284031215612c2057600080fd5b813567ffffffffffffffff811115612c3757600080fd5b6126b48482850161295b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612c8257612c82612c59565b500190565b6000600019821415612c9b57612c9b612c59565b5060010190565b600082821015612cb457612cb4612c59565b500390565b6000816000190483118215151615612cd357612cd3612c59565b500290565b600082612cf557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526018908201527f63616c6c6572206973206e6f7420617574686f72697a65640000000000000000604082015260600190565b602080825260139082015272141bdbdb08191bd95cc81b9bdd08195e1a5cdd606a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612da557600080fd5b5051919050565b600060208284031215612dbe57600080fd5b8151801515811461143257600080fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b60005b83811015612e4a578181015183820152602001612e32565b8381111561239f5750506000910152565b60008251612e6d818460208701612e2f565b9190910192915050565b6020815260008251806020840152612e96816040850160208701612e2f565b601f01601f1916919091016040019291505056fea26469706673582212201da623ecd7ccaa01660ad52616a277ec6a9573c5f805ce6be6919a6f0b24e98e64736f6c634300080a0033

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.