Contract 0x7347cd0215b33849b3f0aafaf78a299c1356cf3f 3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x59962c3c316dcda13a69acc5f65a6229e0e70d3755acad1ec7c2b9b619fffd80Deposit101023922022-01-27 0:38:131 hr 30 mins ago0xee372240b059f111f0db26197566c27a872b8e0c IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0045343375 27.5
0x52cf5f75f198fad54cbab880994592e374a1480caa9ec84fe7f29d585f660466Deposit100935582022-01-26 19:45:566 hrs 22 mins ago0xb37a69c4f4eb82af5ccba06ae2bd9fafb8940077 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.010669874618 48.82478067
0xcb8cd01a47d9110d17441a0791f100a637bcc584bf220f6994dbe924fd54de74Deposit100903572022-01-26 18:03:298 hrs 5 mins ago0x6a8ec2f0c03bfc23417ccc6d84d3de1735288ae8 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.004382724082 45.189244657
0xe5d178d859bc2f333fa79100fd1f17b2fa4a0e26f1dd2fc2157fa23d7daa9c75Compound100862422022-01-26 15:51:1210 hrs 17 mins ago0xf3bc722c1b27a4c21f4c3c84891a532e54894f6d IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.01053254934430.206055077
0xa63a3cc3ce8faca891224be4a8f56c7b95c778dede6b8f399b775fa7e7dc8c61Deposit100858412022-01-26 15:38:1810 hrs 30 mins ago0xbd66f30be39e1be7348020f7f1e3cf91df08a0fb IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.002383397896 29.834988561
0xbd35d7badc4cddfc81b381449536d3bc8511d432273f805e73bd487f6a2b66d0Deposit100685292022-01-26 6:05:0320 hrs 3 mins ago0x26a6dc267e276fded7b40251c8fc08b1b40df367 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.005069185 27.5
0xc4c789c0f0542ba482dee178d1554fbefacfb87ecb023f8f749deccdcda8844dDeposit100514282022-01-25 20:41:281 day 5 hrs ago0x5f0ff52df8df2c5351c47b6711c33f36c5402909 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.006592272527.5
0xf10fa515934d96e740feb6bbabc47aef7bdb693c4f3bc6b84f9d0a924a62feecDeposit100503052022-01-25 20:04:441 day 6 hrs ago0x92e8c440bd5ae54c9d95ce5a4d3bc8151fda63d8 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.002196865 27.5
0x624e0692ff7df024a6c87fe4ab688c92461c3a8402299c67c1a2b8ccca87ca79Deposit100461252022-01-25 17:45:381 day 8 hrs ago0x913638a2130dcbc13ea14557294a2855265273b3 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0035938375 27.5
0x4e933d817a4014a71046aa42f79e4e6f931b12f4f9d95a657159aa5ab20bf33cCompound100389252022-01-25 13:48:211 day 12 hrs ago0x62a6c861b16ca3691ca62860f92ca3995c335c9a IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0133455025 27.5
0xc3aa567c6420b1a1cb797d6a5960599ccbbc410c249bf58b4a4d1a4917f073b2Compound100388062022-01-25 13:44:211 day 12 hrs ago0x19d97534a01fcfb68a9aa28d694dd07d2229d397 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.009588975 27.5
0xfc0c99b8bd9d1b3b60ded4a65de600db5ecff6726304d0796133c20d77e5e55cDeposit100384032022-01-25 13:30:551 day 12 hrs ago0xf1118cd72492e4036e9e52520edebb86360791c4 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.006009685 27.5
0x71d6ccf26e8aef9cc41a501defb5b12b5a69a7f4dee227b69740119bcc8e82cdDeposit100354662022-01-25 11:53:111 day 14 hrs ago0xbf837b5276d95c874f65e2b203ab6bf3d77be896 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0035938375 27.5
0x9d85ab0acf07bda8af8421bbbbda67228a57e4fc01870511f1206c379a4b8c75Deposit100295092022-01-25 8:34:401 day 17 hrs ago0x944e297a32a0c35aee3b1d70b0115f5372989ff8 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.006009685 27.5
0x5d662cfebcd122b00603f4a2d3ddd3a41f653199cda6ac907623e53a6e6b3f39Compound100284802022-01-25 8:00:211 day 18 hrs ago0x1e964b263a2e9577ceea5fde14fa87f3486213fd IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.019365335 27.5
0xc276f943e23d436ed680df3645b526a0d94529680d78bec7bb972786e3759498Compound100179682022-01-25 2:09:021 day 23 hrs ago0x89d4249601f934829d42c71b05fba08f606c577b IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0071834675 27.5
0xcc1ad45e412383480a2d09c4773128e6fc78dcc9ad39d508fd6983bb26325a5fCompound100174642022-01-25 1:52:462 days 15 mins ago0x9fe59aa9f3d813e0d15916d49648a52187c58eb0 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.015750982527.5
0xe9396c5daa87060dc7ea8038bb9b66b77e72b95d9cb30f0a39bb6866574b71b4Deposit100062712022-01-24 19:45:102 days 6 hrs ago0x2d16bf6c8bad562cb1b3cbd87ea7913993cd8e39 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.00821876 27.5
0x64e6269916dc50d69f1a56ae8fe90e266767d23d2dcc10ac14ec2190fd26a7c1Deposit99987912022-01-24 15:40:502 days 10 hrs ago0x5e27607317e283c8d8a35dd6c2a6e6a88d2a9896 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.00554922198127.548586541
0x5eb90b54bebb465a9ecfd48595d292b4c486d821fcb3d1e9df575714b448fb44Deposit99953252022-01-24 13:50:042 days 12 hrs ago0x2286605a3938454752ac16219c131307db745ece IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.002667115 27.5
0x6c46c7985afca8b8b402944586f962f399e0cdabbe2e2239298f4de08a063d08Compound99945222022-01-24 13:23:272 days 12 hrs ago0x2849afc0229bc0260af1b92d70cc5bdd6fb445ee IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.009588975 27.5
0x9cc720b181c4eb693cc614f432b0ba63aceaa51cb8e6226227d21340d4e9c9aeCompound99812092022-01-24 6:07:572 days 20 hrs ago0x02a73cd5c9135b68798838407a136b41ddea3c5e IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.019365335 27.5
0xe3e1e325d51bed8ec78fa5db7ca27567182fceb8206309ae2576cbabd728d6d7Deposit99777792022-01-24 4:15:142 days 21 hrs ago0xc5c1a5ea530c20b734752793726723c261f01b94 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.002196865 27.5
0x0b37a615fac5f4130ab8c2c2211f8bfd9a5d094043b8b9496551c0c089855cfcDeposit99742542022-01-24 2:17:322 days 23 hrs ago0x0b42115d86b7cae44ee27e6adb2b13facb893a14 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.002196865 27.5
0x6793a06d64c132a9942296c688229fd3f67443ab609824b9684185d39240ecebDeposit99713442022-01-24 0:40:313 days 1 hr ago0xcbc1509020bdb7aedc76a41a12075d1cc5722005 IN  0x7347cd0215b33849b3f0aafaf78a299c1356cf3f0 AVAX0.0099864325 27.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bank2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : Bank2.sol
// SPDX-License-Identifier: UNLICENSED
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./libs/IBEP20.sol";
import "./libs/SafeBEP20.sol";
import "./libs/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

contract Bank2 is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;
    struct UserInfo {
      uint amount;
      uint rewardDebt;//usdc debt
      uint lastwithdraw;
      uint[] pids;
    }
    struct PoolInfo{
      uint initamt;
      uint amount;
      uint startTime;
      uint endTime;
      uint tokenPerSec;//X10^18
      uint accPerShare;
      IBEP20 token;
      uint lastRewardTime;
      address router;
      bool disableCompound;//in case of error
    }
    struct UserPInfo{
      uint rewardDebt;
    }
    struct UsdcPool{
      //usdcPerSec everyweek
      uint idx;
      uint[] wkUnit; //weekly usdcPerSec. 4week cycle
      uint usdcPerTime;//*1e18
      uint startTime;
      uint accUsdcPerShare;
      uint lastRewardTime;
    }

    /**Variables */

    mapping(address=>UserInfo) public userInfo;
    PoolInfo[] public poolInfo;
    mapping(uint=>bool) public skipPool;//in case of stuck in one token.
    mapping(uint =>mapping(address=>UserPInfo)) public userPInfo;
    address[] public lotlist;
    uint public lotstart=1;
    UsdcPool public usdcPool;
    IBEP20 public SING;
    IBEP20 public USDC=IBEP20(0xc7198437980c041c805A1EDcbA50c1Ce5db95118);//USDT in AVAX
    IBEP20 public wavax=IBEP20(0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7);
    address public singrouter=0x60aE616a2155Ee3d9A68541Ba4544862310933d4;//JoeRouter
    address public devaddr;
    address public winner;
    address public lotwinner;
    uint public winnum;
    uint public totalAmount;
    uint public newRepo;
    uint public currentRepo;
    uint public period;
    uint public endtime;
    uint public totalpayout;
    uint public entryMin=3 ether; //min SING to enroll lotterypot
    uint public lotsize;
    uint public lotrate=200;//bp of total prize.
    address public burnAddress=0x000000000000000000000000000000000000dEaD;
    uint public totalBurnt;
    bool public paused;
    mapping(address => bool) public approvedContracts;
    modifier onlyApprovedContractOrEOA() {
        require(
            tx.origin == msg.sender || approvedContracts[msg.sender],
            "onlyApprovedContractOrEOA"
        );
        _;
    }
    constructor(IBEP20 _lp) public {
      SING=IBEP20(_lp);
      paused=true;
      usdcPool.wkUnit=[0,0,0,0];
      devaddr=address(msg.sender);
      wavax.approve(singrouter,uint(-1));
      USDC.approve(singrouter,uint(-1));
      lotlist.push(burnAddress);
    }
    modifier ispaused(){
      require(paused==false,"paused");
      _;
    }

    /**View functions  */
    function userinfo(address _user) public view returns(UserInfo memory){
      return userInfo[_user];
    }
    function usdcinfo() public view returns(UsdcPool memory){
      return usdcPool;
    }
    function poolLength() public view returns(uint){
      return poolInfo.length;
    }
    function livepoolIndex() public view returns(uint[] memory,uint){
      uint[] memory index=new uint[](poolInfo.length);
      uint cnt;
      for(uint i=0;i<poolInfo.length;i++){
        if(poolInfo[i].endTime > block.timestamp){
          index[cnt++]=i;
        }
      }
      return (index,cnt);
    }
    function pendingReward(uint _pid,address _user) public view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        PoolInfo storage pool = poolInfo[_pid];
        UserPInfo storage userP=userPInfo[_pid][_user];
        uint256 _accUsdcPerShare = pool.accPerShare;
        if(block.timestamp<=pool.startTime){
          return 0;
        }
        if (block.timestamp > pool.lastRewardTime && pool.amount != 0 ) {
          uint multiplier;
          if(block.timestamp>pool.endTime){
            multiplier=pool.endTime.sub(pool.lastRewardTime);
          }else{
            multiplier = block.timestamp.sub(pool.lastRewardTime);
          }
          uint256 Reward = multiplier.mul(pool.tokenPerSec);
          _accUsdcPerShare = _accUsdcPerShare.add(Reward.mul(1e12).div(pool.amount));
        }
        return user.amount.mul(_accUsdcPerShare).div(1e12).sub(userP.rewardDebt).div(1e18);
    }
    function pendingrewards(address _user) public view returns(uint[] memory){
      uint[] memory pids=userInfo[_user].pids;
      uint[] memory rewards=new uint[](pids.length);
      for(uint i=0;i<pids.length;i++){
        rewards[i]=pendingReward(pids[i],_user);
      }
      return rewards;
    }
    function mytickets(address _user) public view returns(uint[] memory){
      uint[] memory my=new uint[](lotlist.length-lotstart);
      uint count;
      for(uint i=lotstart;i<lotlist.length;i++){
        if(lotlist[i]==_user){
          my[count++]=i;
        }
      }
      return my;
    }
    function totalticket() public view returns(uint){
      return lotlist.length-lotstart;
    }
    function pendingUsdc(address _user) public view returns(uint256){
      UserInfo storage user = userInfo[_user];
      uint256 _accUsdcPerShare = usdcPool.accUsdcPerShare;
      if (block.timestamp > usdcPool.lastRewardTime && totalAmount != 0) {
          uint256 multiplier = block.timestamp.sub(usdcPool.lastRewardTime);
          uint256 UsdcReward = multiplier.mul(usdcPool.usdcPerTime);
          _accUsdcPerShare = _accUsdcPerShare.add(UsdcReward.mul(1e12).div(totalAmount));
      }
      return user.amount.mul(_accUsdcPerShare).div(1e12).sub(user.rewardDebt).div(1e18);
    }

    /**Public functions */

    function updateUsdcPool() internal {
      if (block.timestamp <= usdcPool.lastRewardTime) {
          return;
      }
      if (totalAmount == 0) {
          usdcPool.lastRewardTime = block.timestamp;
          return;
      }
      uint256 multiplier = block.timestamp.sub(usdcPool.lastRewardTime);
      uint256 usdcReward = multiplier.mul(usdcPool.usdcPerTime);
      usdcPool.accUsdcPerShare = usdcPool.accUsdcPerShare.add(usdcReward.mul(1e12).div(totalAmount));
      usdcPool.lastRewardTime = block.timestamp;
    }
    
    function updatePool(uint _pid) internal {
      PoolInfo storage pool = poolInfo[_pid];
      if(pool.lastRewardTime>=pool.endTime || block.timestamp <= pool.lastRewardTime){
        return;
      }
      if (totalAmount == 0 || pool.amount==0) {
        pool.lastRewardTime = block.timestamp;
        return;
      }
      uint multiplier;
      if(block.timestamp>pool.endTime){
        multiplier=pool.endTime.sub(pool.lastRewardTime);
      }else{
        multiplier = block.timestamp.sub(pool.lastRewardTime);
      }
      uint256 Reward = multiplier.mul(pool.tokenPerSec);
      pool.accPerShare = pool.accPerShare.add(Reward.mul(1e12).div(pool.amount));
      
      pool.lastRewardTime = block.timestamp;
      if(block.timestamp>pool.endTime){
        pool.lastRewardTime=pool.endTime;
      }
    }

    function deposit(uint256 _amount) public onlyApprovedContractOrEOA ispaused {
      UserInfo storage user = userInfo[msg.sender];
      updateUsdcPool();
      for(uint i=0;i<user.pids.length;i++){
        uint _pid=user.pids[i];
        if(skipPool[_pid]){continue;}
        updatePool(_pid);
        uint pendingR=user.amount.mul(poolInfo[_pid].accPerShare).div(1e12).sub(userPInfo[_pid][msg.sender].rewardDebt);
        pendingR=pendingR.div(1e18);
        if(pendingR>0){
          poolInfo[_pid].token.safeTransfer(msg.sender,pendingR);
        }
      }
      if (user.amount > 0) {
          uint256 pending = user.amount.mul(usdcPool.accUsdcPerShare).div(1e12).sub(user.rewardDebt);
          pending=pending.div(1e18);
          if(pending > 0) {
              safeUsdcTransfer(msg.sender, pending);
          }
      }
      if(_amount > 0) {
          uint before=SING.balanceOf(address(this));
          SING.safeTransferFrom(address(msg.sender), address(this), _amount);
          SING.safeTransfer(burnAddress , SING.balanceOf(address(this)).sub(before));
          user.amount = user.amount.add(_amount);
          totalBurnt+=_amount;
          totalAmount=totalAmount.add(_amount);
      }

      for(uint i=0;i<user.pids.length;i++){
        uint _pid=user.pids[i];
        if(skipPool[_pid]){continue;}
        poolInfo[_pid].amount+=_amount;
        userPInfo[_pid][msg.sender].rewardDebt=user.amount.mul(poolInfo[_pid].accPerShare).div(1e12);
      }
      user.rewardDebt = user.amount.mul(usdcPool.accUsdcPerShare).div(1e12);
      checkend();
    }
    function enroll(uint _pid) public onlyApprovedContractOrEOA {
      require(_pid<poolInfo.length && poolInfo[_pid].endTime > block.timestamp ,"wrong pid");
      require(skipPool[_pid]==false);
      UserInfo storage user = userInfo[msg.sender];
      for(uint i=0;i<user.pids.length;i++){
        require(user.pids[i]!=_pid,"duplicated pid");
      }
      updatePool(_pid);
      PoolInfo storage pool = poolInfo[_pid];
      pool.amount+=user.amount;
      user.pids.push(_pid);
      userPInfo[_pid][msg.sender].rewardDebt=user.amount.mul(poolInfo[_pid].accPerShare).div(1e12);
    }

    function compound() public onlyApprovedContractOrEOA returns (uint){
      UserInfo storage user = userInfo[msg.sender];
      require(user.amount>0);
      updateUsdcPool();
      uint before=wavax.balanceOf(address(this));
      for(uint i=0;i<user.pids.length;i++){
        uint _pid=user.pids[i];
        if(skipPool[_pid]){continue;}
        updatePool(_pid);
        PoolInfo memory pool=poolInfo[_pid];
        uint pendingR=user.amount.mul(pool.accPerShare).div(1e12).sub(userPInfo[_pid][msg.sender].rewardDebt);
        pendingR=pendingR.div(1e18);
        if(pool.disableCompound){
          if(pendingR>0){
            pool.token.safeTransfer(msg.sender,pendingR);
          }
        }else{
          _safeSwap(pool.router, pendingR, address(pool.token), address(wavax));
        }
      }

      uint beforeSing=SING.balanceOf(address(this));
      //wavax=>SING
      _safeSwap(singrouter, wavax.balanceOf(address(this)).sub(before), address(wavax), address(SING));
     
      //USDC=>SING
      uint256 pending = user.amount.mul(usdcPool.accUsdcPerShare).div(1e12).sub(user.rewardDebt);
      pending=pending.div(1e18);
      _safeSwap(singrouter, pending, address(USDC), address(SING));
      uint burningSing=SING.balanceOf(address(this)).sub(beforeSing);
      user.amount+=burningSing.mul(105).div(100);
      user.rewardDebt = user.amount.mul(usdcPool.accUsdcPerShare).div(1e12);
      for(uint i=0;i<user.pids.length;i++){
        uint _pid=user.pids[i];
        if(skipPool[_pid]){continue;}
        poolInfo[_pid].amount+=burningSing.mul(105).div(100);
        userPInfo[_pid][msg.sender].rewardDebt=user.amount.mul(poolInfo[_pid].accPerShare).div(1e12);
      }
      SING.transfer(burnAddress, burningSing);
      totalBurnt+=burningSing;
      totalAmount+=burningSing.mul(105).div(100);

      if(burningSing>entryMin){//enroll for lottery
        lotlist.push(msg.sender);
      }
      checkend();
      return burningSing;
    }
    

    function addRepo(uint _amount) public {
      require(msg.sender==address(SING) || msg.sender==owner());
      uint _lotadd=_amount.mul(lotrate).div(10000);
      lotsize=lotsize.add(_lotadd);
      newRepo=newRepo.add(_amount.sub(_lotadd));
    }

    /**Internal functions */

    function checkend() internal {//already updated pool above.
      deletepids();
      if(endtime<=block.timestamp){
        endtime=block.timestamp.add(period);
        if(newRepo>10**7){//USDT decimal 6 in AVAX. should change on other chains.
          safeUsdcTransfer(msg.sender, 10**7);//reward for the first resetter
          newRepo=newRepo.sub(10**7);
        }
        winner=address(msg.sender);
        currentRepo=newRepo.mul(999).div(1000);//in case of error by over-paying
        newRepo=0;
        if(usdcPool.idx==3){
          usdcPool.usdcPerTime-=usdcPool.wkUnit[0];
          usdcPool.idx=0;
          usdcPool.wkUnit[0]=currentRepo.mul(1e18).div(period*4);
          usdcPool.usdcPerTime+=usdcPool.wkUnit[0];
        }else{
          uint idx=usdcPool.idx;
          usdcPool.usdcPerTime=usdcPool.usdcPerTime.sub(usdcPool.wkUnit[idx+1]);
          usdcPool.idx++;
          usdcPool.wkUnit[usdcPool.idx]=currentRepo.mul(1e18).div(period*4);
          usdcPool.usdcPerTime+=usdcPool.wkUnit[usdcPool.idx];
        }
        pickwin();
      }
    }

    function deletepids() internal {
      UserInfo storage user=userInfo[msg.sender];
      for(uint i=0;i<user.pids.length;i++){
        if(poolInfo[user.pids[i]].endTime <= block.timestamp){
          user.pids[i]=user.pids[user.pids.length-1];
          user.pids.pop();
          deletepids();
          break;
        }
      }
    }

    function pickwin() internal {
      uint _mod=lotlist.length-lotstart;
      bytes32 _structHash;
      uint256 _randomNumber;
      _structHash = keccak256(
            abi.encode(
                msg.sender,
                block.difficulty,
                gasleft()
            )
        );
      _randomNumber  = uint256(_structHash);
      assembly {_randomNumber := mod(_randomNumber,_mod )}
      winnum=lotstart+_randomNumber;
      lotwinner=lotlist[winnum];
      safeUsdcTransfer(lotwinner, lotsize);
      lotsize=0;
      lotstart+=_mod;
    }
    function _safeSwap(
        address _router,
        uint256 _amountIn,
        address token0,address token1
    ) internal {
        uint bal=IBEP20(token0).balanceOf(address(this));
        if(_amountIn<bal){
          bal=_amountIn;
        }
        if(bal>0){
          address[] memory _path = new address[](2);
          _path[0] = token0;
          _path[1] = token1;
          IUniswapV2Router02(_router).swapExactTokensForTokensSupportingFeeOnTransferTokens(
              bal,
              0,
              _path,
              address(this),
              now.add(600)
          );
        }
    }
    function safeUsdcTransfer(address _to, uint256 _amount) internal {
        uint256 balance = USDC.balanceOf(address(this));
        if (_amount > balance) {
            USDC.safeTransfer(_to, balance);
            totalpayout=totalpayout.add(balance);
        } else {
            USDC.safeTransfer(_to, _amount);
            totalpayout=totalpayout.add(_amount);
        }
    }
    
    /*governance functions*/

    function addpool(uint _amount,uint _startTime,uint _endTime,IBEP20 _token,address _router) public onlyOwner{
      require(_startTime>block.timestamp && _endTime>_startTime, "wrong time");
      poolInfo.push(PoolInfo({
        initamt:_amount,
        amount :0,
        startTime:_startTime,
        endTime:_endTime,
        tokenPerSec:_amount.mul(1e18).div(_endTime-_startTime),//X10^18
        accPerShare:0,
        token:_token,
        lastRewardTime: _startTime,
        router:_router,
        disableCompound:false//in case of error
      }));
      _token.approve(_router,uint(-1));
    }
    function start(uint _period) public onlyOwner{
      paused=false;
      period=_period;
      endtime=block.timestamp.add(period);
      currentRepo=newRepo;
      usdcPool.usdcPerTime=currentRepo.mul(1e18).div(period*4);
      usdcPool.wkUnit[0]=usdcPool.usdcPerTime;
      newRepo=0;
    }
    function stopPool(uint _pid) public onlyOwner{
      skipPool[_pid]=!skipPool[_pid];//toggle
    }
    function pause(bool _paused) public onlyOwner{
      paused=_paused;
    }
    function setPeriod(uint _period) public onlyOwner{
      period=_period;
    }
    function setMin(uint _entryMin) public onlyOwner{
      entryMin=_entryMin;
    }
    function disableCompound(uint _pid,bool _disable) public onlyOwner{
      poolInfo[_pid].disableCompound=_disable;
    }
    function setApprovedContract(address _contract, bool _status)
        external
        onlyOwner
    {
        approvedContracts[_contract] = _status;
    }

}

File 2 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 9 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

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

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 6 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

import "./IBEP20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/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 9 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
    external
    payable
    returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
    external
    returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
    external
    returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
    external
    payable
    returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

pragma solidity >=0.6.2;

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 9 of 9 : IBEP20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.4;

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);
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_lp","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"SING","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRepo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"contract IBEP20","name":"_token","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"name":"addpool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRepo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"bool","name":"_disable","type":"bool"}],"name":"disableCompound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endtime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"enroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"entryMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"livepoolIndex","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lotlist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotrate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotsize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotstart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotwinner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"mytickets","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newRepo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingUsdc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingrewards","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"initamt","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"tokenPerSec","type":"uint256"},{"internalType":"uint256","name":"accPerShare","type":"uint256"},{"internalType":"contract IBEP20","name":"token","type":"address"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"address","name":"router","type":"address"},{"internalType":"bool","name":"disableCompound","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_entryMin","type":"uint256"}],"name":"setMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"singrouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"skipPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"stopPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurnt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalpayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalticket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcPool","outputs":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"uint256","name":"usdcPerTime","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"accUsdcPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdcinfo","outputs":[{"components":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"uint256[]","name":"wkUnit","type":"uint256[]"},{"internalType":"uint256","name":"usdcPerTime","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"accUsdcPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"}],"internalType":"struct Bank2.UsdcPool","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastwithdraw","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userPInfo","outputs":[{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"userinfo","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastwithdraw","type":"uint256"},{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"internalType":"struct Bank2.UserInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wavax","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winnum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600160075573c7198437980c041c805a1edcba50c1ce5db95118600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b31f66aa3c1e785363f0875a1b74e27b85fd66c7601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507360ae616a2155ee3d9a68541ba4544862310933d4601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506729a2241af62c0000601c5560c8601e5561dead601f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200016957600080fd5b50604051620060ce380380620060ce83398181016040528101906200018f91906200067e565b6000620001a1620005a660201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001602160006101000a81548160ff0219169083151502179055506040518060800160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152506008600101906004620002e8929190620005ae565b5033601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401620003cb929190620006cc565b602060405180830381600087803b158015620003e657600080fd5b505af1158015620003fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000421919062000652565b50600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401620004c3929190620006cc565b602060405180830381600087803b158015620004de57600080fd5b505af1158015620004f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000519919062000652565b506006601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200078b565b600033905090565b828054828255906000526020600020908101928215620005f2579160200282015b82811115620005f1578251829060ff16905591602001919060010190620005cf565b5b50905062000601919062000605565b5090565b5b808211156200062057600081600090555060010162000606565b5090565b600081519050620006358162000757565b92915050565b6000815190506200064c8162000771565b92915050565b6000602082840312156200066557600080fd5b6000620006758482850162000624565b91505092915050565b6000602082840312156200069157600080fd5b6000620006a1848285016200063b565b91505092915050565b620006b581620006f9565b82525050565b620006c6816200074d565b82525050565b6000604082019050620006e36000830185620006aa565b620006f26020830184620006bb565b9392505050565b600062000706826200072d565b9050919050565b60008115159050919050565b60006200072682620006f9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b62000762816200070d565b81146200076e57600080fd5b50565b6200077c8162000719565b81146200078857600080fd5b50565b615933806200079b6000396000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c8063782c27a91161019d578063b6b55f25116100e9578063ef78d4fd116100a2578063f57d585b1161007c578063f57d585b1461095f578063f69e20461461097b578063fc91f64214610999578063ff464806146109b55761030c565b8063ef78d4fd14610907578063f10c993c14610925578063f2fde38b146109435761030c565b8063b6b55f2514610850578063ccd5db2f1461086c578063d49e77cd1461088b578063dfbf53ae146108a9578063e37ac5d7146108c7578063e49bd61e146108e55761030c565b806395805dad11610156578063a1ff5e0a11610130578063a1ff5e0a146107c8578063a75e5107146107e4578063a95cad6814610802578063b5dbfb25146108205761030c565b806395805dad1461075e578063966ff6501461077a57806398969e82146107985761030c565b8063782c27a9146106885780637e5ec07a146106b8578063896d59a0146106d657806389a30271146106f25780638da5cb5b146107105780639446ec9f1461072e5761030c565b8063331f7d9d1161025c5780635c8c2083116102155780635fc93c2d116101ef5780635fc93c2d146106145780635ffd993b1461064457806370d5ae0514610660578063715018a61461067e5761030c565b80635c8c2083146105a85780635c975abb146105c65780635def5f5e146105e45761030c565b8063331f7d9d146104d25780633380e42a146104f05780633606ef0b1461050e578063390710bc1461053e57806345dc3dd81461055c57806353f298e6146105785761030c565b8063117be4c2116102c95780631959a002116102a35780631959a002146104345780631a39d8ef1461046657806326749ad7146104845780632ca126f8146104b45761030c565b8063117be4c2146103bf5780631526fe27146103dd57806316ba8cb9146104165761030c565b806302329a2914610311578063081e3eda1461032d5780630ba236811461034b5780630f3a9f65146103695780630f4d0357146103855780630fce4ef1146103a1575b600080fd5b61032b60048036038101906103269190614931565b6109d3565b005b610335610a6c565b604051610342919061556b565b60405180910390f35b610353610a79565b604051610360919061556b565b60405180910390f35b610383600480360381019061037e9190614983565b610a7f565b005b61039f600480360381019061039a9190614983565b610b05565b005b6103a9610bd0565b6040516103b6919061556b565b60405180910390f35b6103c7610bd6565b6040516103d4919061532a565b60405180910390f35b6103f760048036038101906103f29190614983565b610bfc565b60405161040d9a9998979695949392919061566a565b60405180910390f35b61041e610caa565b60405161042b919061556b565b60405180910390f35b61044e600480360381019061044991906148cc565b610cb0565b60405161045d939291906155e0565b60405180910390f35b61046e610cda565b60405161047b919061556b565b60405180910390f35b61049e600480360381019061049991906148cc565b610ce0565b6040516104ab919061530f565b60405180910390f35b6104bc610d00565b6040516104c9919061556b565b60405180910390f35b6104da610d06565b6040516104e7919061556b565b60405180910390f35b6104f8610d17565b604051610505919061556b565b60405180910390f35b610528600480360381019061052391906148cc565b610d1d565b60405161053591906152bd565b60405180910390f35b610546610e58565b604051610553919061556b565b60405180910390f35b61057660048036038101906105719190614983565b610e5e565b005b610592600480360381019061058d9190614983565b610ee4565b60405161059f919061520b565b60405180910390f35b6105b0610f20565b6040516105bd919061520b565b60405180910390f35b6105ce610f46565b6040516105db919061530f565b60405180910390f35b6105fe60048036038101906105f991906148cc565b610f59565b60405161060b919061556b565b60405180910390f35b61062e600480360381019061062991906149d5565b6110a5565b60405161063b919061556b565b60405180910390f35b61065e600480360381019061065991906148f5565b6110d0565b005b6106686111a7565b604051610675919061520b565b60405180910390f35b6106866111cd565b005b6106a2600480360381019061069d9190614983565b611307565b6040516106af919061530f565b60405180910390f35b6106c0611327565b6040516106cd919061520b565b60405180910390f35b6106f060048036038101906106eb9190614983565b61134d565b005b6106fa61145d565b604051610707919061532a565b60405180910390f35b610718611483565b604051610725919061520b565b60405180910390f35b610748600480360381019061074391906148cc565b6114ac565b6040516107559190615549565b60405180910390f35b61077860048036038101906107739190614983565b61157b565b005b6107826116aa565b60405161078f919061556b565b60405180910390f35b6107b260048036038101906107ad91906149d5565b6116b0565b6040516107bf919061556b565b60405180910390f35b6107e260048036038101906107dd9190614a11565b6118ba565b005b6107ec611970565b6040516107f99190615527565b60405180910390f35b61080a611a14565b604051610817919061556b565b60405180910390f35b61083a600480360381019061083591906148cc565b611a1a565b60405161084791906152bd565b60405180910390f35b61086a60048036038101906108659190614983565b611b28565b005b6108746122d3565b6040516108829291906152df565b60405180910390f35b61089361239c565b6040516108a0919061520b565b60405180910390f35b6108b16123c2565b6040516108be919061520b565b60405180910390f35b6108cf6123e8565b6040516108dc919061556b565b60405180910390f35b6108ed6123ee565b6040516108fe959493929190615617565b60405180910390f35b61090f612412565b60405161091c919061556b565b60405180910390f35b61092d612418565b60405161093a919061532a565b60405180910390f35b61095d600480360381019061095891906148cc565b61243e565b005b61097960048036038101906109749190614983565b6125e7565b005b61098361291a565b604051610990919061556b565b60405180910390f35b6109b360048036038101906109ae9190614a4d565b6134be565b005b6109bd613804565b6040516109ca919061556b565b60405180910390f35b6109db61380a565b73ffffffffffffffffffffffffffffffffffffffff166109f9611483565b73ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4690615487565b60405180910390fd5b80602160006101000a81548160ff02191690831515021790555050565b6000600380549050905090565b60155481565b610a8761380a565b73ffffffffffffffffffffffffffffffffffffffff16610aa5611483565b73ffffffffffffffffffffffffffffffffffffffff1614610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af290615487565b60405180910390fd5b8060198190555050565b610b0d61380a565b73ffffffffffffffffffffffffffffffffffffffff16610b2b611483565b73ffffffffffffffffffffffffffffffffffffffff1614610b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7890615487565b60405180910390fd5b6004600082815260200190815260200160002060009054906101000a900460ff16156004600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b601c5481565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60038181548110610c0957fe5b90600052602060002090600902016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060080160149054906101000a900460ff1690508a565b601e5481565b60026020528060005260406000206000915090508060000154908060010154908060020154905083565b60165481565b60226020528060005260406000206000915054906101000a900460ff1681565b601a5481565b600060075460068054905003905090565b60175481565b606080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301805480602002602001604051908101604052809291908181526020018280548015610dac57602002820191906000526020600020905b815481526020019060010190808311610d98575b505050505090506060815167ffffffffffffffff81118015610dcd57600080fd5b50604051908082528060200260200182016040528015610dfc5781602001602082028036833780820191505090505b50905060005b8251811015610e4d57610e28838281518110610e1a57fe5b6020026020010151866116b0565b828281518110610e3457fe5b6020026020010181815250508080600101915050610e02565b508092505050919050565b601d5481565b610e6661380a565b73ffffffffffffffffffffffffffffffffffffffff16610e84611483565b73ffffffffffffffffffffffffffffffffffffffff1614610eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed190615487565b60405180910390fd5b80601c8190555050565b60068181548110610ef157fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602160009054906101000a900460ff1681565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000600860040154905060086005015442118015610fbe5750600060165414155b1561103e576000610fdd6008600501544261381290919063ffffffff16565b90506000610ff96008600201548361386290919063ffffffff16565b905061103961102a60165461101c64e8d4a510008561386290919063ffffffff16565b6138d290919063ffffffff16565b8461392890919063ffffffff16565b925050505b61109c670de0b6b3a764000061108e846001015461108064e8d4a5100061107287896000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b6138d290919063ffffffff16565b92505050919050565b6005602052816000526040600020602052806000526040600020600091509150508060000154905081565b6110d861380a565b73ffffffffffffffffffffffffffffffffffffffff166110f6611483565b73ffffffffffffffffffffffffffffffffffffffff161461114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114390615487565b60405180910390fd5b80602260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111d561380a565b73ffffffffffffffffffffffffffffffffffffffff166111f3611483565b73ffffffffffffffffffffffffffffffffffffffff1614611249576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124090615487565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60046020528060005260406000206000915054906101000a900460ff1681565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113db57506113ac611483565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113e457600080fd5b600061140f612710611401601e548561386290919063ffffffff16565b6138d290919063ffffffff16565b905061142681601d5461392890919063ffffffff16565b601d81905550611453611442828461381290919063ffffffff16565b60175461392890919063ffffffff16565b6017819055505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114b461476f565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820180548060200260200160405190810160405280929190818152602001828054801561156b57602002820191906000526020600020905b815481526020019060010190808311611557575b5050505050815250509050919050565b61158361380a565b73ffffffffffffffffffffffffffffffffffffffff166115a1611483565b73ffffffffffffffffffffffffffffffffffffffff16146115f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ee90615487565b60405180910390fd5b6000602160006101000a81548160ff0219169083151502179055508060198190555061162e6019544261392890919063ffffffff16565b601a81905550601754601881905550611671600460195402611663670de0b6b3a764000060185461386290919063ffffffff16565b6138d290919063ffffffff16565b600860020181905550600860020154600860010160008154811061169157fe5b9060005260206000200181905550600060178190555050565b60205481565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006003858154811061170357fe5b9060005260206000209060090201905060006005600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600082600501549050826002015442116117885760009450505050506118b4565b8260070154421180156117a057506000836001015414155b1561184f57600083600301544211156117d5576117ce8460070154856003015461381290919063ffffffff16565b90506117ef565b6117ec84600701544261381290919063ffffffff16565b90505b600061180885600401548361386290919063ffffffff16565b905061184a61183b866001015461182d64e8d4a510008561386290919063ffffffff16565b6138d290919063ffffffff16565b8461392890919063ffffffff16565b925050505b6118ad670de0b6b3a764000061189f846000015461189164e8d4a51000611883878b6000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b6138d290919063ffffffff16565b9450505050505b92915050565b6118c261380a565b73ffffffffffffffffffffffffffffffffffffffff166118e0611483565b73ffffffffffffffffffffffffffffffffffffffff1614611936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192d90615487565b60405180910390fd5b806003838154811061194457fe5b906000526020600020906009020160080160146101000a81548160ff0219169083151502179055505050565b611978614797565b60086040518060c001604052908160008201548152602001600182018054806020026020016040519081016040528092919081815260200182805480156119de57602002820191906000526020600020905b8154815260200190600101908083116119ca575b50505050508152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905090565b60075481565b6060806007546006805490500367ffffffffffffffff81118015611a3d57600080fd5b50604051908082528060200260200182016040528015611a6c5781602001602082028036833780820191505090505b50905060008060075490505b600680549050811015611b1d578473ffffffffffffffffffffffffffffffffffffffff1660068281548110611aa957fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611b105780838380600101945081518110611b0357fe5b6020026020010181815250505b8080600101915050611a78565b508192505050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161480611bab5750602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be1906154a7565b60405180910390fd5b60001515602160009054906101000a900460ff16151514611c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c37906154e7565b60405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611c8b61397d565b60005b8160030180549050811015611e45576000826003018281548110611cae57fe5b906000526020600020015490506004600082815260200190815260200160002060009054906101000a900460ff1615611ce75750611e38565b611cf081613a3b565b6000611da36005600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154611d9564e8d4a51000611d8760038781548110611d6257fe5b906000526020600020906009020160050154896000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b9050611dc0670de0b6b3a7640000826138d290919063ffffffff16565b90506000811115611e3557611e34338260038581548110611ddd57fe5b906000526020600020906009020160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613b849092919063ffffffff16565b5b50505b8080600101915050611c8e565b50600081600001541115611ed3576000611e9e8260010154611e9064e8d4a51000611e82600860040154876000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b9050611ebb670de0b6b3a7640000826138d290919063ffffffff16565b90506000811115611ed157611ed03382613c0a565b5b505b6000821115612151576000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f39919061520b565b60206040518083038186803b158015611f5157600080fd5b505afa158015611f65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8991906149ac565b9050611fda333085600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613d9c909392919063ffffffff16565b612105601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166120bd83600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161205f919061520b565b60206040518083038186803b15801561207757600080fd5b505afa15801561208b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120af91906149ac565b61381290919063ffffffff16565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613b849092919063ffffffff16565b61211c83836000015461392890919063ffffffff16565b8260000181905550826020600082825401925050819055506121498360165461392890919063ffffffff16565b601681905550505b60005b816003018054905081101561228b57600082600301828154811061217457fe5b906000526020600020015490506004600082815260200190815260200160002060009054906101000a900460ff16156121ad575061227e565b83600382815481106121bb57fe5b90600052602060002090600902016001016000828254019250508190555061222564e8d4a51000612217600384815481106121f257fe5b906000526020600020906009020160050154866000015461386290919063ffffffff16565b6138d290919063ffffffff16565b6005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550505b8080600101915050612154565b506122bf64e8d4a510006122b1600860040154846000015461386290919063ffffffff16565b6138d290919063ffffffff16565b81600101819055506122cf613e25565b5050565b60606000606060038054905067ffffffffffffffff811180156122f557600080fd5b506040519080825280602002602001820160405280156123245781602001602082028036833780820191505090505b509050600080600090505b60038054905081101561238f57426003828154811061234a57fe5b9060005260206000209060090201600301541115612382578083838060010194508151811061237557fe5b6020026020010181815250505b808060010191505061232f565b5081819350935050509091565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b60088060000154908060020154908060030154908060040154908060050154905085565b60195481565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61244661380a565b73ffffffffffffffffffffffffffffffffffffffff16612464611483565b73ffffffffffffffffffffffffffffffffffffffff16146124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190615487565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561252a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252190615387565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16148061266a5750602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6126a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a0906154a7565b60405180910390fd5b600380549050811080156126da575042600382815481106126c657fe5b906000526020600020906009020160030154115b612719576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271090615507565b60405180910390fd5b600015156004600083815260200190815260200160002060009054906101000a900460ff1615151461274a57600080fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b816003018054905081101561280857828260030182815481106127af57fe5b906000526020600020015414156127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f290615447565b60405180910390fd5b8080600101915050612790565b5061281282613a3b565b60006003838154811061282157fe5b9060005260206000209060090201905081600001548160010160008282540192505081905550816003018390806001815401808255809150506001900390600052602060002001600090919091909150556128be64e8d4a510006128b06003868154811061288b57fe5b906000526020600020906009020160050154856000015461386290919063ffffffff16565b6138d290919063ffffffff16565b6005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550505050565b60003373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16148061299f5750602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d5906154a7565b60405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015411612a3257600080fd5b612a3a61397d565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612a97919061520b565b60206040518083038186803b158015612aaf57600080fd5b505afa158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae791906149ac565b905060005b8260030180549050811015612dd6576000836003018281548110612b0c57fe5b906000526020600020015490506004600082815260200190815260200160002060009054906101000a900460ff1615612b455750612dc9565b612b4e81613a3b565b612b566147cd565b60038281548110612b6357fe5b9060005260206000209060090201604051806101400160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016008820160149054906101000a900460ff16151515158152505090506000612d256005600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154612d1764e8d4a51000612d098660a001518b6000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b9050612d42670de0b6b3a7640000826138d290919063ffffffff16565b905081610120015115612d8d576000811115612d8857612d8733828460c0015173ffffffffffffffffffffffffffffffffffffffff16613b849092919063ffffffff16565b5b612dc5565b612dc4826101000151828460c00151601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166140c4565b5b5050505b8080600101915050612aec565b506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612e34919061520b565b60206040518083038186803b158015612e4c57600080fd5b505afa158015612e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8491906149ac565b9050612fb4601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612f6984601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612f0b919061520b565b60206040518083038186803b158015612f2357600080fd5b505afa158015612f37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5b91906149ac565b61381290919063ffffffff16565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166140c4565b6000612fff8460010154612ff164e8d4a51000612fe3600860040154896000015461386290919063ffffffff16565b6138d290919063ffffffff16565b61381290919063ffffffff16565b905061301c670de0b6b3a7640000826138d290919063ffffffff16565b9050613090601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166140c4565b600061314f83600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016130f1919061520b565b60206040518083038186803b15801561310957600080fd5b505afa15801561311d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061314191906149ac565b61381290919063ffffffff16565b9050613178606461316a60698461386290919063ffffffff16565b6138d290919063ffffffff16565b85600001600082825401925050819055506131bc64e8d4a510006131ae600860040154886000015461386290919063ffffffff16565b6138d290919063ffffffff16565b856001018190555060005b85600301805490508110156133245760008660030182815481106131e757fe5b906000526020600020015490506004600082815260200190815260200160002060009054906101000a900460ff16156132205750613317565b613247606461323960698661386290919063ffffffff16565b6138d290919063ffffffff16565b6003828154811061325457fe5b9060005260206000209060090201600101600082825401925050819055506132be64e8d4a510006132b06003848154811061328b57fe5b9060005260206000209060090201600501548a6000015461386290919063ffffffff16565b6138d290919063ffffffff16565b6005600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550505b80806001019150506131c7565b50600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb601f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016133a4929190615294565b602060405180830381600087803b1580156133be57600080fd5b505af11580156133d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f6919061495a565b508060206000828254019250508190555061342e606461342060698461386290919063ffffffff16565b6138d290919063ffffffff16565b601660008282540192505081905550601c548111156134ab576006339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6134b3613e25565b809550505050505090565b6134c661380a565b73ffffffffffffffffffffffffffffffffffffffff166134e4611483565b73ffffffffffffffffffffffffffffffffffffffff161461353a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353190615487565b60405180910390fd5b428411801561354857508383115b613587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357e906153e7565b60405180910390fd5b6003604051806101400160405280878152602001600081526020018681526020018581526020016135dd8787036135cf670de0b6b3a76400008b61386290919063ffffffff16565b6138d290919063ffffffff16565b8152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018373ffffffffffffffffffffffffffffffffffffffff168152602001600015158152509080600181540180825580915050600190039060005260206000209060090201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101208201518160080160146101000a81548160ff02191690831515021790555050508173ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016137aa929190615294565b602060405180830381600087803b1580156137c457600080fd5b505af11580156137d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137fc919061495a565b505050505050565b601b5481565b600033905090565b600082821115613857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384e906153c7565b60405180910390fd5b818303905092915050565b60008083141561387557600090506138cc565b600082840290508284828161388657fe5b04146138c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138be90615467565b60405180910390fd5b809150505b92915050565b6000808211613916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390d90615427565b60405180910390fd5b81838161391f57fe5b04905092915050565b600080828401905083811015613973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396a906153a7565b60405180910390fd5b8091505092915050565b600860050154421161398e57613a39565b600060165414156139a85742600860050181905550613a39565b60006139c26008600501544261381290919063ffffffff16565b905060006139de6008600201548361386290919063ffffffff16565b9050613a23613a0f601654613a0164e8d4a510008561386290919063ffffffff16565b6138d290919063ffffffff16565b60086004015461392890919063ffffffff16565b6008600401819055504260086005018190555050505b565b600060038281548110613a4a57fe5b9060005260206000209060090201905080600301548160070154101580613a75575080600701544211155b15613a805750613b81565b60006016541480613a95575060008160010154145b15613aa95742816007018190555050613b81565b60008160030154421115613ad957613ad28260070154836003015461381290919063ffffffff16565b9050613af3565b613af082600701544261381290919063ffffffff16565b90505b6000613b0c83600401548361386290919063ffffffff16565b9050613b52613b3f8460010154613b3164e8d4a510008561386290919063ffffffff16565b6138d290919063ffffffff16565b846005015461392890919063ffffffff16565b83600501819055504283600701819055508260030154421115613b7d57826003015483600701819055505b5050505b50565b613c058363a9059cbb60e01b8484604051602401613ba3929190615294565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506142d3565b505050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401613c67919061520b565b60206040518083038186803b158015613c7f57600080fd5b505afa158015613c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cb791906149ac565b905080821115613d2e57613d0e8382600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613b849092919063ffffffff16565b613d2381601b5461392890919063ffffffff16565b601b81905550613d97565b613d7b8383600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613b849092919063ffffffff16565b613d9082601b5461392890919063ffffffff16565b601b819055505b505050565b613e1f846323b872dd60e01b858585604051602401613dbd9392919061525d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506142d3565b50505050565b613e2d61439a565b42601a54116140c257613e4b6019544261392890919063ffffffff16565b601a81905550629896806017541115613e8a57613e6b3362989680613c0a565b613e836298968060175461381290919063ffffffff16565b6017819055505b33601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613ef66103e8613ee86103e760175461386290919063ffffffff16565b6138d290919063ffffffff16565b601881905550600060178190555060036008600001541415613fd1576008600101600081548110613f2357fe5b90600052602060002001546008600201600082825403925050819055506000600860000181905550613f7f600460195402613f71670de0b6b3a764000060185461386290919063ffffffff16565b6138d290919063ffffffff16565b6008600101600081548110613f9057fe5b90600052602060002001819055506008600101600081548110613faf57fe5b90600052602060002001546008600201600082825401925050819055506140b9565b6000600860000154905061401060086001016001830181548110613ff157fe5b906000526020600020015460086002015461381290919063ffffffff16565b600860020181905550600860000160008154809291906001019190505550614062600460195402614054670de0b6b3a764000060185461386290919063ffffffff16565b6138d290919063ffffffff16565b60086001016008600001548154811061407757fe5b906000526020600020018190555060086001016008600001548154811061409a57fe5b9060005260206000200154600860020160008282540192505081905550505b6140c16144af565b5b565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016140ff919061520b565b60206040518083038186803b15801561411757600080fd5b505afa15801561412b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061414f91906149ac565b90508084101561415d578390505b60008111156142cc576060600267ffffffffffffffff8111801561418057600080fd5b506040519080825280602002602001820160405280156141af5781602001602082028036833780820191505090505b50905083816000815181106141c057fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061420857fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508573ffffffffffffffffffffffffffffffffffffffff16635c11d79583600084306142786102584261392890919063ffffffff16565b6040518663ffffffff1660e01b8152600401614298959493929190615586565b600060405180830381600087803b1580156142b257600080fd5b505af11580156142c6573d6000803e3d6000fd5b50505050505b5050505050565b6060614335826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166145c89092919063ffffffff16565b90506000815111156143955780806020019051810190614355919061495a565b614394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161438b90615367565b60405180910390fd5b5b505050565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060005b81600301805490508110156144ab5742600383600301838154811061440157fe5b90600052602060002001548154811061441657fe5b9060005260206000209060090201600301541161449e578160030160018360030180549050038154811061444657fe5b906000526020600020015482600301828154811061446057fe5b90600052602060002001819055508160030180548061447b57fe5b6001900381819060005260206000200160009055905561449961439a565b6144ab565b80806001019150506143e0565b5050565b600060075460068054905003905060008033445a6040516020016144d593929190615226565b6040516020818303038152906040528051906020012091508160001c90508281069050806007540160158190555060066015548154811061451257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506145ab601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601d54613c0a565b6000601d8190555082600760008282540192505081905550505050565b60606145d784846000856145e0565b90509392505050565b606082471015614625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161461c90615407565b60405180910390fd5b61462e856146f5565b61466d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614664906154c7565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff16858760405161469791906151f4565b60006040518083038185875af1925050503d80600081146146d4576040519150601f19603f3d011682016040523d82523d6000602084013e6146d9565b606091505b50915091506146e9828286614708565b92505050949350505050565b600080823b905060008111915050919050565b6060831561471857829050614768565b60008351111561472b5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161475f9190615345565b60405180910390fd5b9392505050565b6040518060800160405280600081526020016000815260200160008152602001606081525090565b6040518060c001604052806000815260200160608152602001600081526020016000815260200160008152602001600081525090565b604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525090565b60008135905061485d816158a1565b92915050565b600081359050614872816158b8565b92915050565b600081519050614887816158b8565b92915050565b60008135905061489c816158cf565b92915050565b6000813590506148b1816158e6565b92915050565b6000815190506148c6816158e6565b92915050565b6000602082840312156148de57600080fd5b60006148ec8482850161484e565b91505092915050565b6000806040838503121561490857600080fd5b60006149168582860161484e565b925050602061492785828601614863565b9150509250929050565b60006020828403121561494357600080fd5b600061495184828501614863565b91505092915050565b60006020828403121561496c57600080fd5b600061497a84828501614878565b91505092915050565b60006020828403121561499557600080fd5b60006149a3848285016148a2565b91505092915050565b6000602082840312156149be57600080fd5b60006149cc848285016148b7565b91505092915050565b600080604083850312156149e857600080fd5b60006149f6858286016148a2565b9250506020614a078582860161484e565b9150509250929050565b60008060408385031215614a2457600080fd5b6000614a32858286016148a2565b9250506020614a4385828601614863565b9150509250929050565b600080600080600060a08688031215614a6557600080fd5b6000614a73888289016148a2565b9550506020614a84888289016148a2565b9450506040614a95888289016148a2565b9350506060614aa68882890161488d565b9250506080614ab78882890161484e565b9150509295509295909350565b6000614ad08383614b03565b60208301905092915050565b6000614ae883836151d6565b60208301905092915050565b614afd816157cd565b82525050565b614b0c816157bb565b82525050565b614b1b816157bb565b82525050565b6000614b2c82615726565b614b36818561576c565b9350614b4183615706565b8060005b83811015614b72578151614b598882614ac4565b9750614b6483615752565b925050600181019050614b45565b5085935050505092915050565b6000614b8a82615731565b614b94818561577d565b9350614b9f83615716565b8060005b83811015614bd0578151614bb78882614adc565b9750614bc28361575f565b925050600181019050614ba3565b5085935050505092915050565b6000614be882615731565b614bf2818561578e565b9350614bfd83615716565b8060005b83811015614c2e578151614c158882614adc565b9750614c208361575f565b925050600181019050614c01565b5085935050505092915050565b614c44816157df565b82525050565b6000614c558261573c565b614c5f818561579f565b9350614c6f81856020860161585d565b80840191505092915050565b614c8481615827565b82525050565b614c938161584b565b82525050565b6000614ca482615747565b614cae81856157aa565b9350614cbe81856020860161585d565b614cc781615890565b840191505092915050565b6000614cdf602a836157aa565b91507f5361666542455032303a204245503230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d456026836157aa565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dab601b836157aa565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b6000614deb601e836157aa565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000614e2b600a836157aa565b91507f77726f6e672074696d65000000000000000000000000000000000000000000006000830152602082019050919050565b6000614e6b6026836157aa565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ed1601a836157aa565b91507f536166654d6174683a206469766973696f6e206279207a65726f0000000000006000830152602082019050919050565b6000614f11600e836157aa565b91507f6475706c696361746564207069640000000000000000000000000000000000006000830152602082019050919050565b6000614f516021836157aa565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614fb76020836157aa565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614ff76019836157aa565b91507f6f6e6c79417070726f766564436f6e74726163744f72454f41000000000000006000830152602082019050919050565b6000615037601d836157aa565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006150776006836157aa565b91507f70617573656400000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006150b76009836157aa565b91507f77726f6e672070696400000000000000000000000000000000000000000000006000830152602082019050919050565b600060c08301600083015161510260008601826151d6565b506020830151848203602086015261511a8282614b7f565b915050604083015161512f60408601826151d6565b50606083015161514260608601826151d6565b50608083015161515560808601826151d6565b5060a083015161516860a08601826151d6565b508091505092915050565b600060808301600083015161518b60008601826151d6565b50602083015161519e60208601826151d6565b5060408301516151b160408601826151d6565b50606083015184820360608601526151c98282614b7f565b9150508091505092915050565b6151df8161581d565b82525050565b6151ee8161581d565b82525050565b60006152008284614c4a565b915081905092915050565b60006020820190506152206000830184614b12565b92915050565b600060608201905061523b6000830186614af4565b61524860208301856151e5565b61525560408301846151e5565b949350505050565b60006060820190506152726000830186614b12565b61527f6020830185614b12565b61528c60408301846151e5565b949350505050565b60006040820190506152a96000830185614b12565b6152b660208301846151e5565b9392505050565b600060208201905081810360008301526152d78184614bdd565b905092915050565b600060408201905081810360008301526152f98185614bdd565b905061530860208301846151e5565b9392505050565b60006020820190506153246000830184614c3b565b92915050565b600060208201905061533f6000830184614c7b565b92915050565b6000602082019050818103600083015261535f8184614c99565b905092915050565b6000602082019050818103600083015261538081614cd2565b9050919050565b600060208201905081810360008301526153a081614d38565b9050919050565b600060208201905081810360008301526153c081614d9e565b9050919050565b600060208201905081810360008301526153e081614dde565b9050919050565b6000602082019050818103600083015261540081614e1e565b9050919050565b6000602082019050818103600083015261542081614e5e565b9050919050565b6000602082019050818103600083015261544081614ec4565b9050919050565b6000602082019050818103600083015261546081614f04565b9050919050565b6000602082019050818103600083015261548081614f44565b9050919050565b600060208201905081810360008301526154a081614faa565b9050919050565b600060208201905081810360008301526154c081614fea565b9050919050565b600060208201905081810360008301526154e08161502a565b9050919050565b600060208201905081810360008301526155008161506a565b9050919050565b60006020820190508181036000830152615520816150aa565b9050919050565b6000602082019050818103600083015261554181846150ea565b905092915050565b600060208201905081810360008301526155638184615173565b905092915050565b600060208201905061558060008301846151e5565b92915050565b600060a08201905061559b60008301886151e5565b6155a86020830187614c8a565b81810360408301526155ba8186614b21565b90506155c96060830185614b12565b6155d660808301846151e5565b9695505050505050565b60006060820190506155f560008301866151e5565b61560260208301856151e5565b61560f60408301846151e5565b949350505050565b600060a08201905061562c60008301886151e5565b61563960208301876151e5565b61564660408301866151e5565b61565360608301856151e5565b61566060808301846151e5565b9695505050505050565b600061014082019050615680600083018d6151e5565b61568d602083018c6151e5565b61569a604083018b6151e5565b6156a7606083018a6151e5565b6156b460808301896151e5565b6156c160a08301886151e5565b6156ce60c0830187614c7b565b6156db60e08301866151e5565b6156e9610100830185614b12565b6156f7610120830184614c3b565b9b9a5050505050505050505050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006157c6826157fd565b9050919050565b60006157d8826157fd565b9050919050565b60008115159050919050565b60006157f6826157bb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061583282615839565b9050919050565b6000615844826157fd565b9050919050565b60006158568261581d565b9050919050565b60005b8381101561587b578082015181840152602081019050615860565b8381111561588a576000848401525b50505050565b6000601f19601f8301169050919050565b6158aa816157bb565b81146158b557600080fd5b50565b6158c1816157df565b81146158cc57600080fd5b50565b6158d8816157eb565b81146158e357600080fd5b50565b6158ef8161581d565b81146158fa57600080fd5b5056fea26469706673582212207ca2cb61cf68b6926c2c503093a9e0a4d203aa6d0c4f4257ef043f1dbcd08e2064736f6c634300060c0033000000000000000000000000f9a075c9647e91410bf6c402bdf166e1540f67f0

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

000000000000000000000000f9a075c9647e91410bf6c402bdf166e1540f67f0

-----Decoded View---------------
Arg [0] : _lp (address): 0xf9a075c9647e91410bf6c402bdf166e1540f67f0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f9a075c9647e91410bf6c402bdf166e1540f67f0


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