Contract 0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xc73146d59a09f80e53bb205585427905a03a6608fda22f32ff83dd252a36c8aa86160472021-06-25 22:06:4439 days 17 hrs ago0xc168e6e33b11fee6b2fe5a3259a973840bc508eb IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0x154f7358a2fe8eb2aeb4bc28ceb30d61902fe93fc1abb86ba3a507e242b31c0780292962021-06-05 10:23:4960 days 5 hrs ago0x1d0cc48df9a0884a40315787fb9a0388f29785c5 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0xc769c5c581b08d2158d8c43d54dc9f5731047df6edc363153ffea253a740f01f79806322021-06-03 17:42:5661 days 22 hrs ago0x2d3a5bd564d492e528bd83de47b1e0bf72e27ea5 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.00039369
0xd8b9924379ff49f368789de94fb7d5e5466d580600bfdd33e7a603f103c807e879804402021-06-03 17:33:2061 days 22 hrs ago0xacc87cb01421360ec7f9cdcfe0ec62b9c02c15dc IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.000181085
0x9d1f223946b6f74026389b316f4f3e11e0ef64ec83f9db6b6ff997f2979cb32f79564022021-06-02 21:27:2162 days 18 hrs ago0x3cc4d5e7d3f4ae8cdb34d1a011b07b00309b556f IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0xd38c2ff9288aa7b3483d5515a4520484114fda7be1aaf5a664f35cbe4261b36278660132021-05-30 17:50:4665 days 22 hrs ago0x4eb7f19d6efcace59eaed70220da5002709f9b71 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0xe1e0080b4e3691bb1685634033beea325b5366beeeb06a73f748b8ea0623051178605902021-05-30 13:18:4466 days 2 hrs ago0x6d848c6896507c157c90d2b937b9f318914cfd5d IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0x21191978b85ac58cf8e378279932cd93eed2ed3586a6622ab204bc1ee8ba23dd77754022021-05-27 14:02:2769 days 1 hr ago0x4e7e322cedd9c7c4a80fceb01f6a1e8b872a99c4 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0xf34c5f8e720b5803ce088be62e2243370ef0ab43841e6155ade349c0b919e6bb75598112021-05-20 1:28:0976 days 14 hrs ago0xecf0545684a06a4ea7b9c2fb1b6c08f50436e9db IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.00092544
0xf9048cb393923f6f20dddd2760ec1f6e72dff3af09ddf9bd9c1ee853b84c578575442592021-05-19 12:24:3677 days 3 hrs ago0xab12253171a0d73df64b115cd43fe0a32feb9daa IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0x839b3494388bb35ae18ee1ba19356677ea39617ad8b8c18fd5364628e7ce691a75145872021-05-18 11:15:5978 days 4 hrs ago0x4f46f8d5d164327cac6a15e336de9e9cbac3ea6f IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0x9feff6fede55eeed3ee729cf9207cd7390d926b2d42e83ab0e0852c255f4d4d175062732021-05-18 4:02:4478 days 11 hrs ago0x90c0bf8d71369d21f8addf0da33d21dcb0b1c384 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0006422
0x70b260b7b44fb19e977b890f0a50aeb112b5e2d755910bd91a5073d4a295ee5e74588512021-05-16 12:02:4080 days 3 hrs ago0xb840c6494708fa41e6aecb9d047c23a828a40c58 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0xfc4d2c833dae9947575f375a571bf7068beab2c32a5a09cf38d52ddad74f97d274557212021-05-16 9:24:1480 days 6 hrs ago0xe760d615062271ecad0133ca9110f75364edc5e0 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.00056118
0xa9fb70ab13ac33ebe2e317b8e9df4cf655724e98cd5f38ecda5460713dac325874557072021-05-16 9:23:3280 days 6 hrs ago0xe760d615062271ecad0133ca9110f75364edc5e0 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.000557655
0xa0f26a316a024eca1365ff279b518a76d35c9f1e20a0a0160fab67dea1e90cbe74438062021-05-15 23:22:4080 days 16 hrs ago0xba8782db02067e5f6517616dc4eedb741e2864fd IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.000785652
0xd78cca84efcb7ffab552bce8e945ea44d153ea2ec1f299db5f08d849112b213c74437972021-05-15 23:22:1380 days 16 hrs ago0xba8782db02067e5f6517616dc4eedb741e2864fd IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.000675717
0xbc2e5c67808dc4f3d1489d60d6168ecf3b4bce4e8232d6b067d580d2cf9b438e74403452021-05-15 20:28:1180 days 19 hrs ago0xf4078085cebb638016afc6e209229f1f7028a0fa IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0x8fc1f6205ec5f62f791188f37742a7a77be4d54ca466ab85e60cfd30a45f49a974355852021-05-15 16:29:0180 days 23 hrs ago0x14d92832265eeafdef9e526356fefc90105966c3 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0xe0b71700835fcf0c82b44d6e3f71ff99cc64ac84480edc3285ed47e4787f6bde74265172021-05-15 8:49:3881 days 7 hrs ago0x8170f9304373dc5eb1cb91cd1edf878769c69b3c IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0xeadd0b617a625117198e93d1934323793ce5bcb33c5b6a4cd164697b199b372d74087522021-05-14 17:27:0381 days 22 hrs ago0x3ba3893fde7e06eaf13a4c06e190147b867c82fb IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0008462
0xbaf4bc8938efb2e13481283666ac07b791bd14329497fd14ff195385c2e175b674086512021-05-14 17:22:0081 days 22 hrs ago0xb366e2348ca1e6d46d9124e719be8a7cf4b1dc86 IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0006962
0x11e028bd214acef3fcc7899aae73c5279e445e70798967f1cde174f3a9b8c04573810452021-05-13 18:06:2082 days 21 hrs ago0x1d937d16cb0d8f62538cb8b2433a8b7fc064a05e IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0x991c902aad6618c1ce365690c48b7a04e393f27c58e56d63f1a830f53031807f73775482021-05-13 15:07:2283 days 50 mins ago0xfa3ce52c15f19f363833b2983340325000a4636c IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0007712
0x0a69f30d8170859a7d467ee3bf7f4b9d85ad8364616f138d1357fda92834b13973769162021-05-13 14:35:4683 days 1 hr ago0x022766b23fef0f84b3c654e954141b0b4e38005c IN  0x1bb6fdaf6258071f4d2e96d70ffeb8ad392f299b0 BNB0.0006422
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x8E8Ca3719360809cd4BFe175De58992E7d3e7874

Contract Name:
PotPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : PotPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "./inheritance/Controllable.sol";
import "./interface/IController.sol";

import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-upgradeable/math/MathUpgradeable.sol";

abstract contract IRewardDistributionRecipient is Ownable {

    mapping (address => bool) public rewardDistribution;

    constructor(address[] memory _rewardDistributions) public {
        // NotifyHelper
        rewardDistribution[0xF71042C88458ff1702c3870f62F4c764712Cc9F0] = true;

        for(uint256 i = 0; i < _rewardDistributions.length; i++) {
          rewardDistribution[_rewardDistributions[i]] = true;
        }
    }

    function notifyTargetRewardAmount(address rewardToken, uint256 reward) external virtual;
    function notifyRewardAmount(uint256 reward) external virtual;

    modifier onlyRewardDistribution() {
        require(rewardDistribution[_msgSender()], "Caller is not reward distribution");
        _;
    }

    function setRewardDistribution(address[] calldata _newRewardDistribution, bool _flag)
        external
        onlyOwner
    {
        for(uint256 i = 0; i < _newRewardDistribution.length; i++){
          rewardDistribution[_newRewardDistribution[i]] = _flag;
        }
    }
}

contract PotPool is IRewardDistributionRecipient, Controllable, BEP20 {

    using Address for address;
    using SafeBEP20 for IBEP20;
    using SafeMath for uint256;

    address public lpToken;
    uint256 public duration; // making it not a constant is less gas efficient, but portable

    mapping(address => uint256) public stakedBalanceOf;

    mapping (address => bool) smartContractStakers;
    address[] public rewardTokens;
    mapping(address => uint256) public periodFinishForToken;
    mapping(address => uint256) public rewardRateForToken;
    mapping(address => uint256) public lastUpdateTimeForToken;
    mapping(address => uint256) public rewardPerTokenStoredForToken;
    mapping(address => mapping(address => uint256)) public userRewardPerTokenPaidForToken;
    mapping(address => mapping(address => uint256)) public rewardsForToken;

    event RewardAdded(address rewardToken, uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, address rewardToken, uint256 reward);
    event RewardDenied(address indexed user, address rewardToken, uint256 reward);
    event SmartContractRecorded(address indexed smartContractAddress, address indexed smartContractInitiator);

    modifier updateRewards(address account) {
      for(uint256 i = 0; i < rewardTokens.length; i++ ){
        address rt = rewardTokens[i];
        rewardPerTokenStoredForToken[rt] = rewardPerToken(rt);
        lastUpdateTimeForToken[rt] = lastTimeRewardApplicable(rt);
        if (account != address(0)) {
            rewardsForToken[rt][account] = earned(rt, account);
            userRewardPerTokenPaidForToken[rt][account] = rewardPerTokenStoredForToken[rt];
        }
      }
      _;
    }

    modifier updateReward(address account, address rt){
      rewardPerTokenStoredForToken[rt] = rewardPerToken(rt);
      lastUpdateTimeForToken[rt] = lastTimeRewardApplicable(rt);
      if (account != address(0)) {
          rewardsForToken[rt][account] = earned(rt, account);
          userRewardPerTokenPaidForToken[rt][account] = rewardPerTokenStoredForToken[rt];
      }
      _;
    }

    /** View functions to respect old interface */
    function rewardToken() public view returns(address) {
      return rewardTokens[0];
    }

    function rewardPerToken() public view returns(uint256) {
      return rewardPerToken(rewardTokens[0]);
    }

    function periodFinish() public view returns(uint256) {
      return periodFinishForToken[rewardTokens[0]];
    }

    function rewardRate() public view returns(uint256) {
      return rewardRateForToken[rewardTokens[0]];
    }

    function lastUpdateTime() public view returns(uint256) {
      return lastUpdateTimeForToken[rewardTokens[0]];
    }

    function rewardPerTokenStored() public view returns(uint256) {
      return rewardPerTokenStoredForToken[rewardTokens[0]];
    }

    function userRewardPerTokenPaid(address user) public view returns(uint256) {
      return userRewardPerTokenPaidForToken[rewardTokens[0]][user];
    }

    function rewards(address user) public view returns(uint256) {
      return rewardsForToken[rewardTokens[0]][user];
    }

    // [Hardwork] setting the reward, lpToken, duration, and rewardDistribution for each pool
    constructor(
        address[] memory _rewardTokens,
        address _lpToken,
        uint256 _duration,
        address[] memory _rewardDistribution,
        address _storage,
        string memory _name,
        string memory _symbol,
        uint8 _decimals
      ) public
      BEP20(_name, _symbol)
      IRewardDistributionRecipient(_rewardDistribution)
      Controllable(_storage) // only used for referencing the grey list
    {
        require(_decimals == BEP20(_lpToken).decimals(), "decimals has to be aligned with the lpToken");
        require(_rewardTokens.length != 0, "should initialize with at least 1 rewardToken");
        rewardTokens = _rewardTokens;
        lpToken = _lpToken;
        duration = _duration;
    }

    function lastTimeRewardApplicable(uint256 i) public view returns (uint256) {
        return lastTimeRewardApplicable(rewardTokens[i]);
    }

    function lastTimeRewardApplicable(address rt) public view returns (uint256) {
        return MathUpgradeable.min(block.timestamp, periodFinishForToken[rt]);
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return lastTimeRewardApplicable(rewardTokens[0]);
    }

    function rewardPerToken(uint256 i) public view returns (uint256) {
        return rewardPerToken(rewardTokens[i]);
    }

    function rewardPerToken(address rt) public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStoredForToken[rt];
        }
        return
            rewardPerTokenStoredForToken[rt].add(
                lastTimeRewardApplicable(rt)
                    .sub(lastUpdateTimeForToken[rt])
                    .mul(rewardRateForToken[rt])
                    .mul(1e18)
                    .div(totalSupply())
            );
    }

    function earned(uint256 i, address account) public view returns (uint256) {
        return earned(rewardTokens[i], account);
    }

    function earned(address account) public view returns (uint256) {
        return earned(rewardTokens[0], account);
    }

    function earned(address rt, address account) public view returns (uint256) {
        return
            stakedBalanceOf[account]
                .mul(rewardPerToken(rt).sub(userRewardPerTokenPaidForToken[rt][account]))
                .div(1e18)
                .add(rewardsForToken[rt][account]);
    }

    function stake(uint256 amount) public updateRewards(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        recordSmartContract();
        super._mint(msg.sender, amount); // BEP20 is used as a staking receipt
        stakedBalanceOf[msg.sender] = stakedBalanceOf[msg.sender].add(amount);
        IBEP20(lpToken).safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public updateRewards(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super._burn(msg.sender, amount);
        stakedBalanceOf[msg.sender] = stakedBalanceOf[msg.sender].sub(amount);
        IBEP20(lpToken).safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(MathUpgradeable.min(stakedBalanceOf[msg.sender], balanceOf(msg.sender)));
        getAllRewards();
    }

    /// A push mechanism for accounts that have not claimed their rewards for a long time.
    /// The implementation is semantically analogous to getReward(), but uses a push pattern
    /// instead of pull pattern.
    function pushAllRewards(address recipient) public updateRewards(recipient) onlyGovernance {
      bool rewardPayout = (!smartContractStakers[recipient] || !IController(controller()).greyList(recipient));
      for(uint256 i = 0 ; i < rewardTokens.length; i++ ){
        uint256 reward = earned(rewardTokens[i], recipient);
        if (reward > 0) {
            rewardsForToken[rewardTokens[i]][recipient] = 0;
            // If it is a normal user and not smart contract,
            // then the requirement will pass
            // If it is a smart contract, then
            // make sure that it is not on our greyList.
            if (rewardPayout) {
                IBEP20(rewardTokens[i]).safeTransfer(recipient, reward);
                emit RewardPaid(recipient, rewardTokens[i], reward);
            } else {
                emit RewardDenied(recipient, rewardTokens[i], reward);
            }
        }
      }
    }

    function getAllRewards() public updateRewards(msg.sender) {
      recordSmartContract();
      bool rewardPayout = (!smartContractStakers[msg.sender] || !IController(controller()).greyList(msg.sender));
      for(uint256 i = 0 ; i < rewardTokens.length; i++ ){
        _getRewardAction(rewardTokens[i], rewardPayout);
      }
    }

    function getReward(address rt) public updateReward(msg.sender, rt) {
      recordSmartContract();
      _getRewardAction(
        rt,
        // don't payout if it is a grey listed smart contract
        (!smartContractStakers[msg.sender] || !IController(controller()).greyList(msg.sender))
      );
    }

    function getReward() public {
      getReward(rewardTokens[0]);
    }

    function _getRewardAction(address rt, bool rewardPayout) internal {
      uint256 reward = earned(rt, msg.sender);
      if (reward > 0 && IBEP20(rt).balanceOf(address(this)) >= reward ) {
          rewardsForToken[rt][msg.sender] = 0;
          // If it is a normal user and not smart contract,
          // then the requirement will pass
          // If it is a smart contract, then
          // make sure that it is not on our greyList.
          if (rewardPayout) {
              IBEP20(rt).safeTransfer(msg.sender, reward);
              emit RewardPaid(msg.sender, rt, reward);
          } else {
              emit RewardDenied(msg.sender, rt, reward);
          }
      }
    }

    function addRewardToken(address rt) public onlyGovernance {
      require(getRewardTokenIndex(rt) == uint256(-1), "Reward token already exists");
      rewardTokens.push(rt);
    }

    function removeRewardToken(address rt) public onlyGovernance {
      uint256 i = getRewardTokenIndex(rt);
      require(i != uint256(-1), "Reward token does not exists");
      require(periodFinishForToken[rewardTokens[i]] < block.timestamp, "Can only remove when the reward period has passed");
      require(rewardTokens.length > 1, "Cannot remove the last reward token");
      uint256 lastIndex = rewardTokens.length - 1;

      // swap
      rewardTokens[i] = rewardTokens[lastIndex];

      // delete last element
      rewardTokens.pop();
    }

    // If the return value is MAX_UINT256, it means that
    // the specified reward token is not in the list
    function getRewardTokenIndex(address rt) public view returns(uint256) {
      for(uint i = 0 ; i < rewardTokens.length ; i++){
        if(rewardTokens[i] == rt)
          return i;
      }
      return uint256(-1);
    }

    function notifyTargetRewardAmount(address _rewardToken, uint256 reward)
        public override
        onlyRewardDistribution
        updateRewards(address(0))
    {
        // overflow fix according to https://sips.synthetix.io/sips/sip-77
        require(reward < uint(-1) / 1e18, "the notified reward cannot invoke multiplication overflow");

        uint256 i = getRewardTokenIndex(_rewardToken);
        require(i != uint256(-1), "rewardTokenIndex not found");

        if (block.timestamp >= periodFinishForToken[_rewardToken]) {
            rewardRateForToken[_rewardToken] = reward.div(duration);
        } else {
            uint256 remaining = periodFinishForToken[_rewardToken].sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRateForToken[_rewardToken]);
            rewardRateForToken[_rewardToken] = reward.add(leftover).div(duration);
        }
        lastUpdateTimeForToken[_rewardToken] = block.timestamp;
        periodFinishForToken[_rewardToken] = block.timestamp.add(duration);
        emit RewardAdded(_rewardToken, reward);
    }

    function notifyRewardAmount(uint256 reward)
        external override
        onlyRewardDistribution
        updateRewards(address(0))
    {
      notifyTargetRewardAmount(rewardTokens[0], reward);
    }

    function rewardTokensLength() public view returns(uint256){
      return rewardTokens.length;
    }

    // Harvest Smart Contract recording
    function recordSmartContract() internal {
      if( tx.origin != msg.sender ) {
        smartContractStakers[msg.sender] = true;
        emit SmartContractRecorded(msg.sender, tx.origin);
      }
    }

}

File 2 of 13 : Controllable.sol
//SPDX-License-Identifier: Unlicense

pragma solidity 0.6.12;

import "./Governable.sol";

contract Controllable is Governable {

  constructor(address _storage) Governable(_storage) public {
  }

  modifier onlyController() {
    require(store.isController(msg.sender), "Not a controller");
    _;
  }

  modifier onlyControllerOrGovernance(){
    require((store.isController(msg.sender) || store.isGovernance(msg.sender)),
      "The caller must be controller or governance");
    _;
  }

  function controller() public view returns (address) {
    return store.controller();
  }
}

File 3 of 13 : IController.sol
//SPDX-License-Identifier: Unlicense

pragma solidity 0.6.12;

interface IController {
    // [Grey list]
    // An EOA can safely interact with the system no matter what.
    // If you're using Metamask, you're using an EOA.
    // Only smart contracts may be affected by this grey list.
    //
    // This contract will not be able to ban any EOA from the system
    // even if an EOA is being added to the greyList, he/she will still be able
    // to interact with the whole system as if nothing happened.
    // Only smart contracts will be affected by being added to the greyList.
    // This grey list is only used in Vault.sol, see the code there for reference
    function greyList(address _target) external view returns(bool);

    function addVaultAndStrategy(address _vault, address _strategy) external;
    function doHardWork(address _vault) external;
    function hasVault(address _vault) external returns(bool);

    function salvage(address _token, uint256 amount) external;
    function salvageStrategy(address _strategy, address _token, uint256 amount) external;

    function notifyFee(address _underlying, uint256 fee) external;
    function profitSharingNumerator() external view returns (uint256);
    function profitSharingDenominator() external view returns (uint256);

    function feeRewardForwarder() external view returns(address);
    function setFeeRewardForwarder(address _value) external;
}

File 4 of 13 : BEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

import '../../access/Ownable.sol';
import '../../GSN/Context.sol';
import './IBEP20.sol';
import '../../math/SafeMath.sol';
import '../../utils/Address.sol';

/**
 * @dev Implementation of the {IBEP20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of BEP20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

    /**
     * @dev Returns the token name.
     */
    function name() public override view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {BEP20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {BEP20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {BEP20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {BEP20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, 'BEP20: transfer amount exceeds allowance')
        );
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, 'BEP20: decreased allowance below zero')
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(sender != address(0), 'BEP20: transfer from the zero address');
        require(recipient != address(0), 'BEP20: transfer to the zero address');

        _balances[sender] = _balances[sender].sub(amount, 'BEP20: transfer amount exceeds balance');
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), 'BEP20: mint to the zero address');

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), 'BEP20: burn from the zero address');

        _balances[account] = _balances[account].sub(amount, 'BEP20: burn amount exceeds balance');
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), 'BEP20: approve from the zero address');
        require(spender != address(0), 'BEP20: approve to the zero address');

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')
        );
    }
}

File 5 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, 'SafeMath: multiplication overflow');

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, 'SafeMath: division by zero');
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, 'SafeMath: modulo by zero');
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 6 of 13 : IBEP20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address _owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 13 : SafeBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import './IBEP20.sol';
import '../../math/SafeMath.sol';
import '../../utils/Address.sol';

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: decreased allowance below zero'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IBEP20 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, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}

File 8 of 13 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

import '../GSN/Context.sol';

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 9 of 13 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 10 of 13 : Governable.sol
//SPDX-License-Identifier: Unlicense

pragma solidity 0.6.12;

import "./Storage.sol";

contract Governable {

  Storage public store;

  constructor(address _store) public {
    require(_store != address(0), "new storage shouldn't be empty");
    store = Storage(_store);
  }

  modifier onlyGovernance() {
    require(store.isGovernance(msg.sender), "Not governance");
    _;
  }

  function setStorage(address _store) public onlyGovernance {
    require(_store != address(0), "new storage shouldn't be empty");
    store = Storage(_store);
  }

  function governance() public view returns (address) {
    return store.governance();
  }
}

File 11 of 13 : Storage.sol
//SPDX-License-Identifier: Unlicense

pragma solidity 0.6.12;

contract Storage {

  address public governance;
  address public controller;

  constructor() public {
    governance = msg.sender;
  }

  modifier onlyGovernance() {
    require(isGovernance(msg.sender), "Not governance");
    _;
  }

  function setGovernance(address _governance) public onlyGovernance {
    require(_governance != address(0), "new governance shouldn't be empty");
    governance = _governance;
  }

  function setController(address _controller) public onlyGovernance {
    require(_controller != address(0), "new controller shouldn't be empty");
    controller = _controller;
  }

  function isGovernance(address account) public view returns (bool) {
    return account == governance;
  }

  function isController(address account) public view returns (bool) {
    return account == controller;
  }
}

File 12 of 13 : Context.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 13 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, 'Address: insufficient balance');

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}('');
        require(success, 'Address: unable to send value, recipient may have reverted');
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, 'Address: low-level call failed');
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, 'Address: low-level call with value failed');
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, 'Address: insufficient balance for call');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_rewardTokens","type":"address[]"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"address[]","name":"_rewardDistribution","type":"address[]"},{"internalType":"address","name":"_storage","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardDenied","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"smartContractAddress","type":"address"},{"indexed":true,"internalType":"address","name":"smartContractInitiator","type":"address"}],"name":"SmartContractRecorded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"addRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"getRewardTokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTimeForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyTargetRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"periodFinishForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"pushAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardDistribution","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rt","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenStoredForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRateForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewardsForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_newRewardDistribution","type":"address[]"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setRewardDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_store","type":"address"}],"name":"setStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"store","outputs":[{"internalType":"contract Storage","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaidForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620040173803806200401783398181016040526101008110156200003857600080fd5b81019080805160405193929190846401000000008211156200005957600080fd5b9083019060208201858111156200006f57600080fd5b82518660208202830111640100000000821117156200008d57600080fd5b82525081516020918201928201910280838360005b83811015620000bc578181015183820152602001620000a2565b505050509190910160408181526020840151908401516060909401805191969495929493509084640100000000821115620000f657600080fd5b9083019060208201858111156200010c57600080fd5b82518660208202830111640100000000821117156200012a57600080fd5b82525081516020918201928201910280838360005b83811015620001595781810151838201526020016200013f565b5050505090500160405260200180519060200190929190805160405193929190846401000000008211156200018d57600080fd5b908301906020820185811115620001a357600080fd5b8251640100000000811182820188101715620001be57600080fd5b82525081516020918201929091019080838360005b83811015620001ed578181015183820152602001620001d3565b50505050905090810190601f1680156200021b5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200023f57600080fd5b9083019060208201858111156200025557600080fd5b82516401000000008111828201881017156200027057600080fd5b82525081516020918201929091019080838360005b838110156200029f57818101518382015260200162000285565b50505050905090810190601f168015620002cd5780820380516001836020036101000a031916815260200191505b50604052602001519150839050828580886000620002ea620005d3565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35073f71042c88458ff1702c3870f62f4c764712cc9f06000908152600160208190527ff9f477c87be32cbf67f827616e72b0b1430f6cb38fcad0413d118ba0164a70c6805460ff191690911790555b8151811015620003d95760018060008484815181106200039e57fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905560010162000382565b50506001600160a01b03811662000437576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03929092169190911790555081516200046d906006906020850190620005d7565b50805162000483906007906020840190620005d7565b50506008805460ff19166012179055506040805163313ce56760e01b815290516001600160a01b0389169163313ce567916004808301926020929190829003018186803b158015620004d457600080fd5b505afa158015620004e9573d6000803e3d6000fd5b505050506040513d60208110156200050057600080fd5b505160ff828116911614620005475760405162461bcd60e51b815260040180806020018281038252602b81526020018062003fec602b913960400191505060405180910390fd5b8751620005865760405162461bcd60e51b815260040180806020018281038252602d81526020018062003fbf602d913960400191505060405180910390fd5b87516200059b90600c9060208b01906200065c565b5050600880546001600160a01b0390971661010002610100600160a81b03199097169690961790955550505060095550620006fa9050565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200061a57805160ff19168380011785556200064a565b828001600101855582156200064a579182015b828111156200064a5782518255916020019190600101906200062d565b5062000658929150620006c2565b5090565b828054828255906000526020600020908101928215620006b4579160200282015b82811115620006b457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200067d565b5062000658929150620006d9565b5b80821115620006585760008155600101620006c3565b5b80821115620006585780546001600160a01b0319168155600101620006da565b6138b5806200070a6000396000f3fe608060405234801561001057600080fd5b50600436106103ae5760003560e01c806380faa57d116101f4578063c00007b01161011a578063e9fad8ee116100ad578063f2fde38b1161007c578063f2fde38b14610ae3578063f77c479114610b09578063f7c618c114610b11578063fce42aee14610b19576103ae565b8063e9fad8ee14610a90578063ebe2b12b14610a98578063eeca156214610aa0578063f122977714610abd576103ae565b8063cf039f49116100e9578063cf039f4914610a00578063dd62ed3e14610a2e578063df136d6514610a5c578063e39c08fc14610a64576103ae565b8063c00007b01461099c578063c393bd2f146109c2578063c8f33c91146109f0578063cd3daf9d146109f8576103ae565b80639600e1ed11610192578063a457c2d711610161578063a457c2d71461091f578063a694fc3a1461094b578063a9059cbb14610968578063bf199e6214610994576103ae565b80639600e1ed146108ae578063975057e7146108d4578063a0712d68146108dc578063a31ff86b146108f9576103ae565b80638b876347116101ce5780638b876347146108525780638da5cb5b146108785780639137c1a71461088057806395d89b41146108a6576103ae565b806380faa57d14610825578063874c120b1461082d578063893d20e81461084a576103ae565b806332797e2f116102d95780635aa6e6751161027757806370a082311161024657806370a08231146107d2578063715018a6146107f85780637b0a47ee146108005780637bb7bed114610808576103ae565b80635aa6e675146107545780635fcbd28514610778578063638634ee146107805780637092a063146107a6576103ae565b80633d18b912116102b35780633d18b912146106f85780633d509c97146107005780633fee85e61461072657806345b35f561461074c576103ae565b806332797e2f1461063d57806339509351146106af5780633c6b16ab146106db576103ae565b80631676539111610351578063211dc32d11610320578063211dc32d1461059e57806323b872dd146105cc5780632e1a7d4d14610602578063313ce5671461061f576103ae565b8063167653911461052257806316e23e0e1461054857806318160ddd1461056e5780631c03e6cc14610576576103ae565b806306fdde031161038d57806306fdde031461044b5780630700037d146104c8578063095ea7b3146104ee5780630fb5a6b41461051a576103ae565b80628cc262146103b3578063010ef87a146103eb57806303c698d214610425575b600080fd5b6103d9600480360360208110156103c957600080fd5b50356001600160a01b0316610b3f565b60408051918252519081900360200190f35b6104116004803603602081101561040157600080fd5b50356001600160a01b0316610b75565b604080519115158252519081900360200190f35b6103d96004803603602081101561043b57600080fd5b50356001600160a01b0316610b8a565b610453610be3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561048d578181015183820152602001610475565b50505050905090810190601f1680156104ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d9600480360360208110156104de57600080fd5b50356001600160a01b0316610c79565b6104116004803603604081101561050457600080fd5b506001600160a01b038135169060200135610cc9565b6103d9610ce7565b6103d96004803603602081101561053857600080fd5b50356001600160a01b0316610ced565b6103d96004803603602081101561055e57600080fd5b50356001600160a01b0316610cff565b6103d9610d11565b61059c6004803603602081101561058c57600080fd5b50356001600160a01b0316610d17565b005b6103d9600480360360408110156105b457600080fd5b506001600160a01b0381358116916020013516610e80565b610411600480360360608110156105e257600080fd5b506001600160a01b03813581169160208101359091169060400135610f19565b61059c6004803603602081101561061857600080fd5b5035610fa0565b610627611159565b6040805160ff9092168252519081900360200190f35b61059c6004803603604081101561065357600080fd5b81019060208101813564010000000081111561066e57600080fd5b82018360208201111561068057600080fd5b803590602001918460208302840111640100000000831117156106a257600080fd5b9193509150351515611162565b610411600480360360408110156106c557600080fd5b506001600160a01b038135169060200135611215565b61059c600480360360208110156106f157600080fd5b5035611263565b61059c6113d9565b61059c6004803603602081101561071657600080fd5b50356001600160a01b0316611406565b6103d96004803603602081101561073c57600080fd5b50356001600160a01b0316611672565b61059c611684565b61075c611851565b604080516001600160a01b039092168252519081900360200190f35b61075c6118c7565b6103d96004803603602081101561079657600080fd5b50356001600160a01b03166118db565b61059c600480360360408110156107bc57600080fd5b506001600160a01b0381351690602001356118ff565b6103d9600480360360208110156107e857600080fd5b50356001600160a01b0316611c4e565b61059c611c69565b6103d9611d0b565b61075c6004803603602081101561081e57600080fd5b5035611d49565b6103d9611d70565b6103d96004803603602081101561084357600080fd5b5035611da2565b61075c611dce565b6103d96004803603602081101561086857600080fd5b50356001600160a01b0316611dd8565b61075c611dec565b61059c6004803603602081101561089657600080fd5b50356001600160a01b0316611dfb565b610453611f31565b6103d9600480360360208110156108c457600080fd5b50356001600160a01b0316611f92565b61075c611fa4565b610411600480360360208110156108f257600080fd5b5035611fb3565b61059c6004803603602081101561090f57600080fd5b50356001600160a01b0316612026565b6104116004803603604081101561093557600080fd5b506001600160a01b038135169060200135612403565b61059c6004803603602081101561096157600080fd5b503561246b565b6104116004803603604081101561097e57600080fd5b506001600160a01b03813516906020013561262a565b6103d961263e565b61059c600480360360208110156109b257600080fd5b50356001600160a01b0316612644565b6103d9600480360360408110156109d857600080fd5b506001600160a01b0381358116916020013516612799565b6103d96127b6565b6103d96127ca565b6103d960048036036040811015610a1657600080fd5b506001600160a01b03813581169160200135166127dd565b6103d960048036036040811015610a4457600080fd5b506001600160a01b03813581169160200135166127fa565b6103d9612825565b6103d960048036036040811015610a7a57600080fd5b50803590602001356001600160a01b0316612839565b61059c61284b565b6103d961287f565b6103d960048036036020811015610ab657600080fd5b5035612893565b6103d960048036036020811015610ad357600080fd5b50356001600160a01b03166128a5565b61059c60048036036020811015610af957600080fd5b50356001600160a01b0316612948565b61075c6129ac565b61075c6129f1565b6103d960048036036020811015610b2f57600080fd5b50356001600160a01b0316612a1b565b6000610b6d600c600081548110610b5257fe5b6000918252602090912001546001600160a01b031683610e80565b90505b919050565b60016020526000908152604090205460ff1681565b6000805b600c54811015610bd957826001600160a01b0316600c8281548110610baf57fe5b6000918252602090912001546001600160a01b03161415610bd1579050610b70565b600101610b8e565b5060001992915050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b5050505050905090565b600060126000600c600081548110610c8d57fe5b60009182526020808320909101546001600160a01b03908116845283820194909452604092830182209386168252929092529020549050919050565b6000610cdd610cd6612a2d565b8484612a31565b5060015b92915050565b60095481565b600a6020526000908152604090205481565b600e6020526000908152604090205481565b60055490565b600254604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610d6257600080fd5b505afa158015610d76573d6000803e3d6000fd5b505050506040513d6020811015610d8c57600080fd5b5051610dd0576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600019610ddc82610b8a565b14610e2e576040805162461bcd60e51b815260206004820152601b60248201527f52657761726420746f6b656e20616c7265616479206578697374730000000000604482015290519081900360640190fd5b600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038083166000818152601260209081526040808320948616808452948252808320549383526011825280832094835293905291822054610f129190610f0c90670de0b6b3a764000090610f0690610ee790610ee18a6128a5565b90612b1d565b6001600160a01b0388166000908152600a602052604090205490612b5f565b90612bb8565b90612bfa565b9392505050565b6000610f26848484612c54565b610f9684610f32612a2d565b610f91856040518060600160405280602881526020016136b9602891396001600160a01b038a16600090815260046020526040812090610f70612a2d565b6001600160a01b031681526020810191909152604001600020549190612da6565b612a31565b5060019392505050565b3360005b600c54811015611081576000600c8281548110610fbd57fe5b6000918252602090912001546001600160a01b03169050610fdd816128a5565b6001600160a01b038216600090815260106020526040902055610fff816118db565b6001600160a01b038083166000908152600f60205260409020919091558316156110785761102d8184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b50600101610fa4565b50600082116110cb576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6110d53383612e3d565b336000908152600a60205260409020546110ef9083612b1d565b336000818152600a602052604090209190915560085461111f916101009091046001600160a01b03169084612f2d565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b60085460ff1690565b61116a612a2d565b6000546001600160a01b039081169116146111ba576040805162461bcd60e51b8152602060048201819052602482015260008051602061376c833981519152604482015290519081900360640190fd5b60005b8281101561120f5781600160008686858181106111d657fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff19169115159190911790556001016111bd565b50505050565b6000610cdd611222612a2d565b84610f918560046000611233612a2d565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612bfa565b6001600061126f612a2d565b6001600160a01b0316815260208101919091526040016000205460ff166112c75760405162461bcd60e51b81526004018080602001828103825260218152602001806137b26021913960400191505060405180910390fd5b6000805b600c548110156113a8576000600c82815481106112e457fe5b6000918252602090912001546001600160a01b03169050611304816128a5565b6001600160a01b038216600090815260106020526040902055611326816118db565b6001600160a01b038083166000908152600f602052604090209190915583161561139f576113548184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b506001016112cb565b506113d5600c6000815481106113ba57fe5b6000918252602090912001546001600160a01b0316836118ff565b5050565b611404600c6000815481106113ea57fe5b6000918252602090912001546001600160a01b0316612644565b565b600254604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d602081101561147b57600080fd5b50516114bf576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b60006114ca82610b8a565b9050600019811415611523576040805162461bcd60e51b815260206004820152601c60248201527f52657761726420746f6b656e20646f6573206e6f742065786973747300000000604482015290519081900360640190fd5b42600d6000600c848154811061153557fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054106115965760405162461bcd60e51b81526004018080602001828103825260318152602001806136e16031913960400191505060405180910390fd5b600c546001106115d75760405162461bcd60e51b81526004018080602001828103825260238152602001806136706023913960400191505060405180910390fd5b600c805460001981019190829081106115ec57fe5b600091825260209091200154600c80546001600160a01b03909216918490811061161257fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600c80548061164b57fe5b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b600d6020526000908152604090205481565b3360005b600c54811015611765576000600c82815481106116a157fe5b6000918252602090912001546001600160a01b031690506116c1816128a5565b6001600160a01b0382166000908152601060205260409020556116e3816118db565b6001600160a01b038083166000908152600f602052604090209190915583161561175c576117118184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b50600101611688565b5061176e612f7f565b336000908152600b602052604081205460ff16158061180a57506117906129ac565b6001600160a01b03166330e412ad336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156117dc57600080fd5b505afa1580156117f0573d6000803e3d6000fd5b505050506040513d602081101561180657600080fd5b5051155b905060005b600c5481101561184c57611844600c828154811061182957fe5b6000918252602090912001546001600160a01b031683612fca565b60010161180f565b505050565b60025460408051635aa6e67560e01b815290516000926001600160a01b031691635aa6e675916004808301926020929190829003018186803b15801561189657600080fd5b505afa1580156118aa573d6000803e3d6000fd5b505050506040513d60208110156118c057600080fd5b5051905090565b60085461010090046001600160a01b031681565b6001600160a01b0381166000908152600d6020526040812054610b6d904290613133565b6001600061190b612a2d565b6001600160a01b0316815260208101919091526040016000205460ff166119635760405162461bcd60e51b81526004018080602001828103825260218152602001806137b26021913960400191505060405180910390fd5b6000805b600c54811015611a44576000600c828154811061198057fe5b6000918252602090912001546001600160a01b031690506119a0816128a5565b6001600160a01b0382166000908152601060205260409020556119c2816118db565b6001600160a01b038083166000908152600f6020526040902091909155831615611a3b576119f08184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b50600101611967565b507812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f218210611a9c5760405162461bcd60e51b81526004018080602001828103825260398152602001806137126039913960400191505060405180910390fd5b6000611aa784610b8a565b9050600019811415611b00576040805162461bcd60e51b815260206004820152601a60248201527f726577617264546f6b656e496e646578206e6f7420666f756e64000000000000604482015290519081900360640190fd5b6001600160a01b0384166000908152600d60205260409020544210611b4b57600954611b2d908490612bb8565b6001600160a01b0385166000908152600e6020526040902055611bc6565b6001600160a01b0384166000908152600d6020526040812054611b6e9042612b1d565b6001600160a01b0386166000908152600e602052604081205491925090611b96908390612b5f565b600954909150611baa90610f068784612bfa565b6001600160a01b0387166000908152600e602052604090205550505b6001600160a01b0384166000908152600f602052604090204290819055600954611bf09190612bfa565b6001600160a01b0385166000818152600d602090815260409182902093909355805191825291810185905281517fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29929181900390910190a150505050565b6001600160a01b031660009081526003602052604090205490565b611c71612a2d565b6000546001600160a01b03908116911614611cc1576040805162461bcd60e51b8152602060048201819052602482015260008051602061376c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000600e6000600c600081548110611d1f57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054905090565b600c8181548110611d5657fe5b6000918252602090912001546001600160a01b0316905081565b6000611d9d600c600081548110611d8357fe5b6000918252602090912001546001600160a01b03166118db565b905090565b6000610b6d600c8381548110611db457fe5b6000918252602090912001546001600160a01b03166128a5565b6000611d9d611dec565b600060116000600c600081548110610c8d57fe5b6000546001600160a01b031690565b600254604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015611e4657600080fd5b505afa158015611e5a573d6000803e3d6000fd5b505050506040513d6020811015611e7057600080fd5b5051611eb4576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611f0f576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b600f6020526000908152604090205481565b6002546001600160a01b031681565b6000611fbd612a2d565b6000546001600160a01b0390811691161461200d576040805162461bcd60e51b8152602060048201819052602482015260008051602061376c833981519152604482015290519081900360640190fd5b61201e612018612a2d565b83613149565b506001919050565b8060005b600c54811015612107576000600c828154811061204357fe5b6000918252602090912001546001600160a01b03169050612063816128a5565b6001600160a01b038216600090815260106020526040902055612085816118db565b6001600160a01b038083166000908152600f60205260409020919091558316156120fe576120b38184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b5060010161202a565b50600254604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561215357600080fd5b505afa158015612167573d6000803e3d6000fd5b505050506040513d602081101561217d57600080fd5b50516121c1576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0382166000908152600b602052604081205460ff16158061226657506121ec6129ac565b6001600160a01b03166330e412ad846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561223857600080fd5b505afa15801561224c573d6000803e3d6000fd5b505050506040513d602081101561226257600080fd5b5051155b905060005b600c5481101561120f5760006122a2600c838154811061228757fe5b6000918252602090912001546001600160a01b031686610e80565b905080156123fa57600060126000600c85815481106122bd57fe5b60009182526020808320909101546001600160a01b0390811684528382019490945260409283018220938a168252929092529020558215612392576123268582600c858154811061230a57fe5b6000918252602090912001546001600160a01b03169190612f2d565b846001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e600c848154811061235e57fe5b60009182526020918290200154604080516001600160a01b03909216825291810185905281519081900390910190a26123fa565b846001600160a01b03167f93d33fb9d90ae73b02f30b2f936d92ef70eeecb5ca01758197b4238941763d23600c84815481106123ca57fe5b60009182526020918290200154604080516001600160a01b03909216825291810185905281519081900390910190a25b5060010161226b565b6000610cdd612410612a2d565b84610f91856040518060600160405280602581526020016137f6602591396004600061243a612a2d565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612da6565b3360005b600c5481101561254c576000600c828154811061248857fe5b6000918252602090912001546001600160a01b031690506124a8816128a5565b6001600160a01b0382166000908152601060205260409020556124ca816118db565b6001600160a01b038083166000908152600f6020526040902091909155831615612543576124f88184610e80565b6001600160a01b038083166000818152601260209081526040808320948916808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b5060010161246f565b5060008211612593576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61259b612f7f565b6125a53383613149565b336000908152600a60205260409020546125bf9083612bfa565b336000818152600a60205260409020919091556008546125f0916101009091046001600160a01b031690308561322f565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6000610cdd612637612a2d565b8484612c54565b600c5490565b338161264f816128a5565b6001600160a01b038216600090815260106020526040902055612671816118db565b6001600160a01b038083166000908152600f60205260409020919091558216156126ea5761269f8183610e80565b6001600160a01b038083166000818152601260209081526040808320948816808452948252808320959095559181526010825283812054601183528482209382529290915291909120555b6126f2612f7f565b336000908152600b602052604090205461184c90849060ff161580612794575061271a6129ac565b6001600160a01b03166330e412ad336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561276657600080fd5b505afa15801561277a573d6000803e3d6000fd5b505050506040513d602081101561279057600080fd5b5051155b612fca565b601160209081526000928352604080842090915290825290205481565b6000600f6000600c600081548110611d1f57fe5b6000611d9d600c600081548110611db457fe5b601260209081526000928352604080842090915290825290205481565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b600060106000600c600081548110611d1f57fe5b6000610f12600c8481548110610b5257fe5b336000818152600a602052604090205461287791612872919061286d90611c4e565b613133565b610fa0565b611404611684565b6000600d6000600c600081548110611d1f57fe5b6000610b6d600c8381548110611d8357fe5b60006128af610d11565b6128d257506001600160a01b038116600090815260106020526040902054610b70565b610b6d6129296128e0610d11565b6001600160a01b0385166000908152600e6020908152604080832054600f90925290912054610f0691670de0b6b3a76400009161292391908290610ee18b6118db565b90612b5f565b6001600160a01b03841660009081526010602052604090205490612bfa565b612950612a2d565b6000546001600160a01b039081169116146129a0576040805162461bcd60e51b8152602060048201819052602482015260008051602061376c833981519152604482015290519081900360640190fd5b6129a981613289565b50565b6002546040805163f77c479160e01b815290516000926001600160a01b03169163f77c4791916004808301926020929190829003018186803b15801561189657600080fd5b6000600c600081548110612a0157fe5b6000918252602090912001546001600160a01b0316905090565b60106020526000908152604090205481565b3390565b6001600160a01b038316612a765760405162461bcd60e51b81526004018080602001828103825260248152602001806136226024913960400191505060405180910390fd5b6001600160a01b038216612abb5760405162461bcd60e51b815260040180806020018281038252602281526020018061385e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000610f1283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612da6565b600082612b6e57506000610ce1565b82820282848281612b7b57fe5b0414610f125760405162461bcd60e51b815260040180806020018281038252602181526020018061374b6021913960400191505060405180910390fd5b6000610f1283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613329565b600082820183811015610f12576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038316612c995760405162461bcd60e51b81526004018080602001828103825260258152602001806135fd6025913960400191505060405180910390fd5b6001600160a01b038216612cde5760405162461bcd60e51b81526004018080602001828103825260238152602001806137d36023913960400191505060405180910390fd5b612d1b8160405180606001604052806026815260200161378c602691396001600160a01b0386166000908152600360205260409020549190612da6565b6001600160a01b038085166000908152600360205260408082209390935590841681522054612d4a9082612bfa565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115612e355760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612dfa578181015183820152602001612de2565b50505050905090810190601f168015612e275780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216612e825760405162461bcd60e51b815260040180806020018281038252602181526020018061381b6021913960400191505060405180910390fd5b612ebf8160405180606001604052806022815260200161383c602291396001600160a01b0385166000908152600360205260409020549190612da6565b6001600160a01b038316600090815260036020526040902055600554612ee59082612b1d565b6005556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261184c90849061338e565b32331461140457336000818152600b6020526040808220805460ff19166001179055513292917f70da7b97c021a1e9d5c080587a8ecf9eae97ef5f9bc39e1ac9bfc054104e9e0691a3565b6000612fd68333610e80565b9050600081118015613060575080836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561303157600080fd5b505afa158015613045573d6000803e3d6000fd5b505050506040513d602081101561305b57600080fd5b505110155b1561184c576001600160a01b038316600090815260126020908152604080832033845290915281205581156130eb576130a36001600160a01b0384163383612f2d565b604080516001600160a01b038516815260208101839052815133927f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e928290030190a261184c565b604080516001600160a01b038516815260208101839052815133927f93d33fb9d90ae73b02f30b2f936d92ef70eeecb5ca01758197b4238941763d23928290030190a2505050565b60008183106131425781610f12565b5090919050565b6001600160a01b0382166131a4576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6005546131b19082612bfa565b6005556001600160a01b0382166000908152600360205260409020546131d79082612bfa565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261120f90859061338e565b6001600160a01b0381166132ce5760405162461bcd60e51b81526004018080602001828103825260268152602001806136936026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081836133785760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612dfa578181015183820152602001612de2565b50600083858161338457fe5b0495945050505050565b60606133e3826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661343f9092919063ffffffff16565b80519091501561184c5780806020019051602081101561340257600080fd5b505161184c5760405162461bcd60e51b815260040180806020018281038252602a815260200180613646602a913960400191505060405180910390fd5b606061344e8484600085613456565b949350505050565b6060613461856135c3565b6134b2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106134f15780518252601f1990920191602091820191016134d2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613553576040519150601f19603f3d011682016040523d82523d6000602084013e613558565b606091505b5091509150811561356c57915061344e9050565b80511561357c5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612dfa578181015183820152602001612de2565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061344e57505015159291505056fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666542455032303a204245503230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f742072656d6f766520746865206c6173742072657761726420746f6b656e4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636543616e206f6e6c792072656d6f7665207768656e207468652072657761726420706572696f642068617320706173736564746865206e6f746966696564207265776172642063616e6e6f7420696e766f6b65206d756c7469706c69636174696f6e206f766572666c6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657242455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636543616c6c6572206973206e6f742072657761726420646973747269627574696f6e42455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42455032303a206275726e2066726f6d20746865207a65726f206164647265737342455032303a206275726e20616d6f756e7420657863656564732062616c616e636542455032303a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220b0526908ebfc804495dfd7b320fb9008a6121cb9c8e7fd03559a01c55ddd6b7264736f6c634300060c003373686f756c6420696e697469616c697a652077697468206174206c65617374203120726577617264546f6b656e646563696d616c732068617320746f20626520616c69676e6564207769746820746865206c70546f6b656e0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000ad941e12544f49077fc6425cda1871e11cea52880000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000000000140000000000000000000000000c95cbe4ca30055c787cb784be99d6a8494d0d19700000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000010000000000000000000000004b5c23cac08a567ecf0c1ffca8372a45a5d337430000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f00dd244228f51547f0563e60bca65a30fbf5f7f000000000000000000000000f71042c88458ff1702c3870f62f4c764712cc9f0000000000000000000000000000000000000000000000000000000000000000a70626643616b652d4c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a70626643616b652d4c5000000000000000000000000000000000000000000000

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