Contract 0x6d3e78ddc6ad68313647ffc0860b8ce004995812

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaeb20510cbdb128006c476c78b44302678cd8b4137cfe47ef21a997da5f996c7Deposit203633872021-10-19 1:06:0132 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00456357
0x5bd45ff7f708b59548a789262dfd4780bf3edb59c8c449e780df6c454286e8c8Deposit203633642021-10-19 1:05:1533 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.003366693
0x3a5fc290086358504be12f2fe0ef3a01d060e6ffc35eb3b90f5916de14374670Deposit203633602021-10-19 1:05:0733 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.003366297
0x3607ede4c472a79db4c656128832fdab8ad0c729dfeb10cdc41ca278cc809a7dDeposit203619272021-10-19 0:06:461 hr 31 mins ago0x75cdfff3444395f34362fa50e5b79d9e42db8b0a IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.007243491
0x496ef474fe51c470437a68486f22ebf00f1f402e7f4c287c14eca6784ab0d882Deposit203619192021-10-19 0:06:261 hr 32 mins ago0x75cdfff3444395f34362fa50e5b79d9e42db8b0a IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00408084
0xaf2283ece412d53ab37e0159e9608d170db984e21706ba00b8daa0801fa41ddaDeposit203619022021-10-19 0:05:521 hr 32 mins ago0x75cdfff3444395f34362fa50e5b79d9e42db8b0a IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.009172317
0xba631bfa84b983f3a78aed3f074107af8408ef3e9b55dfdc74400f6472042c0dDeposit203613162021-10-18 23:41:281 hr 57 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0x8289e06f87575dcf18438596f8ccef391e35b58ff6bcc594479323dde5ef7086Deposit203613072021-10-18 23:41:101 hr 57 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0xab03287853e7f4aaef3205821a1d691c1e29f65200ba503619e98cf63d774f7bDeposit203613022021-10-18 23:41:001 hr 57 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0x8d9eef1c3e91c0b4b4cc687bbccc87f5bc6419e5e3d5673fe0e5e212a97f8613Deposit203612972021-10-18 23:40:501 hr 57 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00357363
0xaad55c2d75be5d3becde2c5a71fae1918d8e39f3eef2fed3b3f3fcf4451348b0Deposit203600302021-10-18 22:50:522 hrs 47 mins ago0xc4710455bad8b26fdb55393278987aea5e443e9e IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00967946
0xe3b9a0050cc5da612033b990d9760d21c5ae869a98ed6c358088dff160812a18Deposit203599632021-10-18 22:47:222 hrs 51 mins ago0xc4710455bad8b26fdb55393278987aea5e443e9e IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00510105
0xcf742cb900d37495ad8174e027ea803c3a3da484b2797d90b19a80da11083ad0Deposit203599602021-10-18 22:47:102 hrs 51 mins ago0xc4710455bad8b26fdb55393278987aea5e443e9e IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00510045
0x51f82a6ab8a5a02e910333f8f2dc0618065f0be9295ad92bb032f6f680d84550Deposit203599372021-10-18 22:45:382 hrs 53 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.005019927
0x4ef29534e1f08e7df561331c5ccf20c08bd6c6bf1db43fd3ea113b009f5aed1aDeposit203598712021-10-18 22:43:142 hrs 55 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.003366693
0x57655f5d0412ccb4030aa0b55f0b9720d4fa60673d036b935a41fb81c85b529cDeposit203598662021-10-18 22:43:042 hrs 55 mins ago0x500899672e3cd240be796ecf73cb7aca54fa5afb IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.003366297
0x72de607cd2af76f735bffbbc05e4a298026ccd57fb46c3ee8a4f7a7941290944Deposit203593542021-10-18 22:25:283 hrs 13 mins ago0x9ba4baa74a8d07dbabf445ed815410b1b75c44aa IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.013579794
0xddb3e3dbf7714eb15f6315f91d0227bde351db143fa9ebf0609388641f5250b4Deposit203588182021-10-18 22:02:483 hrs 35 mins ago0x1f5697aa6bb2f97ad7e88b8aa927e1377f0c2f8d IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.03143668
0xfb54d82dc6280af17472993535d9687c6f14d70ad918eb21ae20371368c602c3Deposit203586022021-10-18 21:55:243 hrs 43 mins ago0xec7b47583644e5b5b32ddbb202205fd48891b47f IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.0357363
0xf1240953d9a8e30af80aca06b81cef32de1c2652260f418288d42b9b1783cd56Deposit203574682021-10-18 20:55:044 hrs 43 mins ago0x8b8bb9aa92d6f2bc734e2a76867a5252e79b3f7d IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00357363
0x5dc14f0ffe0ec3853b77b49d3f4f750b03e8396ada3633316bdc3797dfdb3ddbDeposit203561002021-10-18 19:48:415 hrs 49 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0xd417be0e28cbfc194e462bc238e3ab64f09e66c6753f1d3eb62934b77f2a8d0aDeposit203560962021-10-18 19:48:335 hrs 50 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0xe27d79e39e8ce55ca664cc0d0c873a667db218124b9f0af820b73a47f9c00ca8Deposit203560912021-10-18 19:48:195 hrs 50 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00306063
0x06705e4fbe55229a0245c2ebcfeab389abf4ff2c674adfb8e6bd4cb8a386d11eDeposit203560872021-10-18 19:48:115 hrs 50 mins ago0x8583f073f7093d2ba2f86bd14a2c263e323a1f08 IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00357363
0x6795efb19792a1b9270433757cef4912b91db30f2a8c45e21de639ffdcb18bdbDeposit203552572021-10-18 19:15:236 hrs 23 mins ago0x772ea409a11a5453d815a5f543db4867f6ddc11b IN  0x6d3e78ddc6ad68313647ffc0860b8ce0049958120 MATIC0.00435546
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xc2e1a45d6d3b1c9f4a74faac60c835d287d20505ca7552e6c3449ebabcee5a67200152582021-10-09 7:56:219 days 17 hrs ago 0x6d3e78ddc6ad68313647ffc0860b8ce004995812  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MasterChefV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./PokiToken.sol";

contract MasterChefV2 is Ownable, ReentrancyGuard {
  using SafeERC20 for IERC20;

  // Info of each user.
  struct UserInfo {
    uint256 amount; // How many LP tokens the user has provided.
    uint256 rewardDebt; // Reward debt. See explanation below.
    //
    // We do some fancy math here. Basically, any point in time, the amount of POKIs
    // entitled to a user but is pending to be distributed is:
    //
    //   pending reward = (user.amount * pool.accPokiPerShare) - user.rewardDebt
    //
    // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
    //   1. The pool's `accPokiPerShare` (and `lastRewardBlock`) gets updated.
    //   2. User receives the pending reward sent to his/her address.
    //   3. User's `amount` gets updated.
    //   4. User's `rewardDebt` gets updated.
  }

  // Info of each pool.
  struct PoolInfo {
    IERC20 lpToken; // Address of LP token contract.
    uint256 allocPoint; // How many allocation points assigned to this pool. POKIs to distribute per block.
    uint256 lastRewardBlock; // Last block number that POKIs distribution occurs.
    uint256 accPokiPerShare; // Accumulated POKIs per share, times 1e12. See below.
    uint16 depositFeeBP; // Deposit fee in basis points
    uint256 lpSupply; // Real LP amount Deposited
  }

  // The POKI TOKEN!
  PokiToken public immutable poki;
  // Dev address.
  address public devAddr;
  // Deposit Fee address.
  address public feeAddr;
  // POKI tokens created per block.
  uint256 public pokiPerBlock = 0.11 ether;

  // Info of each pool.
  PoolInfo[] public poolInfo;
  // Info of each user that stakes LP tokens.
  mapping(uint256 => mapping(address => UserInfo)) public userInfo;
  // Total allocation points. Must be the sum of all allocation points in all pools.
  uint256 public totalAllocPoint = 0;
  // Total POKIs are generated.
  uint256 public totalPokiGenerated = 0;
  // The block number when POKI mining starts.
  uint256 public startBlock;
  // Block number when fixed pokiPerBlock ends.
  uint256 public FixedEmissionEndBlock;
  // Last update emission rate block.
  uint256 public lastBlockUpdate = 0;
  // Updatable emission every 18000 blocks. Approx 10~12 hrs.
  uint256 public emissionUpdateInterval = 18000;
  // Max deposit fee: 4%.
  uint16 public constant MAXIMUM_DEPOSIT_FEE_BP = 400;
  // Pool Exists Mapper
  mapping(IERC20 => bool) public poolExistence;
  // Pool ID Tracker Mapper
  mapping(IERC20 => uint256) public poolIdForLpAddress;

  event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
  event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
  event AddPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
  event SetPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP);
  event EmissionRateUpdated(address indexed caller, uint256 newEmissionRate);
  event SetDevAddress(address indexed caller, address indexed feeAddress);
  event SetFeeAddress(address indexed caller, address indexed devAddress);

  constructor(
    address _bridge,
    address _feeAddr,
    uint256 _startBlock
  ) {
    require(_bridge != address(0) || _feeAddr != address(0), "!nonzero");
    //MasterChefV2 and PokiToken are deployed at the same time.
    poki = new PokiToken(address(this), _bridge);
    devAddr = msg.sender;
    feeAddr = _feeAddr;
    startBlock = _startBlock;
    //Emission is Fixed after startBlock for 360000 blocks (8~10 days).
    FixedEmissionEndBlock = _startBlock + 360000;
  }

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

  // Get Pool ID by Token
  function getPoolIdForLpToken(IERC20 _lpToken) external view returns(uint256) {
    require(poolExistence[_lpToken] != false, "Token do not exist in pool");
    return poolIdForLpAddress[_lpToken];
  }

  // Modifier to check Duplicate pools
  modifier nonDuplicated(IERC20 _lpToken) {
    require(poolExistence[_lpToken] == false, "Duplicated pool");
    _;
  }

  // Add a new lp to the pool. Can only be called by the owner.
  function add(
    uint256 _allocPoint,
    IERC20 _lpToken,
    uint16 _depositFeeBP,
    bool _withUpdate
  ) 
    external 
    onlyOwner 
    nonDuplicated(_lpToken) 
  {
    // Make sure the provided token is ERC20
    _lpToken.balanceOf(address(this));
    require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE_BP, "add: invalid depositFeeBP");
    if (_withUpdate) {
        massUpdatePools();
    }
    uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
    totalAllocPoint = totalAllocPoint + _allocPoint;
    poolExistence[_lpToken] = true;
    poolInfo.push(PoolInfo({
        lpToken: _lpToken,
        allocPoint: _allocPoint,
        lastRewardBlock: lastRewardBlock,
        accPokiPerShare: 0,
        depositFeeBP: _depositFeeBP,
        lpSupply: 0
    }));
    poolIdForLpAddress[_lpToken] = poolInfo.length - 1;
    emit AddPool(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFeeBP);
  }

  // Update the given pool's POKI allocation point and deposit fee. Can only be called by the owner.
  function set(
    uint256 _pid, 
    uint256 _allocPoint, 
    uint16 _depositFeeBP, 
    bool _withUpdate
  ) 
    external 
    onlyOwner 
  {
    require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE_BP, "set: invalid depositFeeBP");
    if (_withUpdate) {
        massUpdatePools();
    }
    totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
    poolInfo[_pid].allocPoint = _allocPoint;
    poolInfo[_pid].depositFeeBP = _depositFeeBP;

    emit SetPool(_pid, address(poolInfo[_pid].lpToken), _allocPoint, _depositFeeBP);
  }

  // Return reward multiplier over the given _from to _to block.
  function getMultiplier(
    uint256 _from, 
    uint256 _to
  ) 
    public 
    pure 
    returns(uint256) 
  {
    return _to - _from;
  }

  // View function to see pending POKIs on frontend.
  function pendingPoki(
    uint256 _pid, 
    address _user
  ) 
    external 
    view 
    returns(uint256) 
  {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][_user];
    uint256 accPokiPerShare = pool.accPokiPerShare;
    if (block.number > pool.lastRewardBlock && pool.lpSupply != 0) {
      uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
      uint256 pokiReward = (multiplier * pokiPerBlock * pool.allocPoint) / totalAllocPoint;
      uint256 remainingPoki = poki.farmReceived() - totalPokiGenerated;
      if (remainingPoki < pokiReward ) {
        pokiReward = remainingPoki;
      }
      uint256 devReward = pokiReward / 10;
      pokiReward = pokiReward - devReward;
      accPokiPerShare = accPokiPerShare + ((pokiReward * 1e12) / pool.lpSupply);
    }
    return ((user.amount * accPokiPerShare) / 1e12) - user.rewardDebt;
  }

  // Update reward variables for all pools. Be careful of gas spending!
  function massUpdatePools() public {
      uint256 length = poolInfo.length;
      for (uint256 pid = 0; pid < length; ++pid) {
          updatePool(pid);
      }
  }

  // Update reward variables of the given pool to be up-to-date.
  function updatePool(uint256 _pid) public {
    PoolInfo storage pool = poolInfo[_pid];
    if (block.number <= pool.lastRewardBlock) {
        return;
    }
    if (pool.lpSupply == 0 || pool.allocPoint == 0) {
        pool.lastRewardBlock = block.number;
        return;
    }
    uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
    uint256 pokiReward = (multiplier * pokiPerBlock * pool.allocPoint) / totalAllocPoint;
    uint256 remainingPoki = poki.farmReceived() - totalPokiGenerated;
    if (remainingPoki < pokiReward ) {
      pokiReward = remainingPoki;
    }
    uint256 devReward = pokiReward / 10;
    pokiReward = pokiReward - devReward;
    safePokiTransfer(devAddr, devReward);
    // No mint function in POKI, already transfer 40000 POKI for farming.
    totalPokiGenerated = totalPokiGenerated + pokiReward + devReward;
    pool.accPokiPerShare = pool.accPokiPerShare + ((pokiReward * 1e12) / pool.lpSupply);
    pool.lastRewardBlock = block.number;
  }

  // Deposit LP tokens to MasterChef for POKI allocation.
  //      Note: Web UI 'Harvest' just uses the Deposit function with 0 amount
  function deposit(
    uint256 _pid, 
    uint256 _amount
  ) 
    external 
    nonReentrant 
  {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    updatePool(_pid);
    if (user.amount > 0) {
      uint256 pending = ((user.amount * pool.accPokiPerShare) / 1e12) - user.rewardDebt;
      if (pending > 0) {
          safePokiTransfer(msg.sender, pending);
      }
    }
    if (_amount > 0) {
      uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
      pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
      _amount = pool.lpToken.balanceOf(address(this)) - balanceBefore; // Catches transfer fee token deposits
      require(_amount > 0, "Deposit must be greater than 0");
      if (pool.depositFeeBP > 0) {
          uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
          pool.lpToken.safeTransfer(feeAddr, depositFee);
          user.amount = user.amount + _amount - depositFee;
          pool.lpSupply = pool.lpSupply + _amount - depositFee;
      } else {
          user.amount = user.amount + _amount;
          pool.lpSupply = pool.lpSupply + _amount;
      }
    }
    user.rewardDebt = (user.amount * pool.accPokiPerShare) / 1e12;
    updateEmissionIfNeeded();
    emit Deposit(msg.sender, _pid, _amount);
  }

  // Withdraw LP tokens from MasterChef.
  function withdraw(
    uint256 _pid, 
    uint256 _amount
  ) 
    external 
    nonReentrant 
  {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    require(user.amount >= _amount, "withdraw: not good");
    updatePool(_pid);
    uint256 pending = ((user.amount * pool.accPokiPerShare) / 1e12) - user.rewardDebt;
    if (pending > 0) {
        safePokiTransfer(msg.sender, pending);
    }
    if (_amount > 0) {
        user.amount = user.amount - _amount;
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        pool.lpSupply = pool.lpSupply - _amount;
    }
    user.rewardDebt = (user.amount * pool.accPokiPerShare) / 1e12;
    updateEmissionIfNeeded();
    emit Withdraw(msg.sender, _pid, _amount);
  }

  // Withdraw without caring about rewards. EMERGENCY ONLY.
  function emergencyWithdraw(
    uint256 _pid
  ) 
    external 
    nonReentrant 
  {
    PoolInfo storage pool = poolInfo[_pid];
    UserInfo storage user = userInfo[_pid][msg.sender];
    uint256 amount = user.amount;
    pool.lpSupply = pool.lpSupply - amount;
    user.amount = 0;
    user.rewardDebt = 0;
    pool.lpToken.safeTransfer(address(msg.sender), amount);
    emit EmergencyWithdraw(msg.sender, _pid, amount);
  }

  // Safe poki transfer function, just in case if rounding error causes pool to not have enough POKIs.
  function safePokiTransfer(
    address _to, 
    uint256 _amount
  ) 
    internal 
  {
    uint256 pokiBal = poki.balanceOf(address(this));
    bool transferSuccess = false;
    if (_amount > pokiBal) {
        transferSuccess = poki.transfer(_to, pokiBal);
    } else {
        transferSuccess = poki.transfer(_to, _amount);
    }
    require(transferSuccess, "safePokitransfer: failed");
  }

  // Update dev address by the previous dev.
  function setDevAddress(
    address _devaddr
  ) 
    public 
  {
    require(_devaddr != address(0), "setDevAddress: invalid address");
    require(msg.sender == devAddr, "setDevAddress: wut?");
    devAddr = _devaddr;
    emit SetDevAddress(msg.sender, _devaddr);
  }

  // Update fee address by the previous fee address.
  function setFeeAddress(
    address _feeAddr
  ) 
    public 
  {
    require(_feeAddr != address(0), "setFeeAddress: invalid address");
    require(msg.sender == feeAddr, "setFeeAddress: FORBIDDEN");
    feeAddr = _feeAddr;
    emit SetFeeAddress(msg.sender, _feeAddr);
  }

  // Update to emission rate
  function updateEmissionRate(
    uint256 _pokiPerBlock
  ) 
    external 
    onlyOwner 
  {
    massUpdatePools();
    pokiPerBlock = _pokiPerBlock;
    emit EmissionRateUpdated(msg.sender, _pokiPerBlock);
  }

  // Update to emission rate by farmReceived
  function updateEmissionIfNeeded() public {
    if (block.number < FixedEmissionEndBlock) return;
    if (block.number - lastBlockUpdate > emissionUpdateInterval) {
      lastBlockUpdate = block.number;
      // Update pools before changing the emission rate
      massUpdatePools();
      // Total remaining POKIs are divided by 360000 blocks (8~10 days).
      pokiPerBlock = (poki.farmReceived() - totalPokiGenerated) / 360000;
    }
  }
}

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

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

contract PokiToken is ERC20Burnable {

  // Transfer tax rate in basis points (10%)
  uint16 constant public TRANSFER_TAX_RATE = 1000;
  // Burn rate % of transfer tax (10% x 10% = 1% of total amount)
  uint16 constant public BURN_RATE = 10;
  // Masterchef address
  address immutable public masterchef;
  // Bridge address
  address immutable public bridge;
  // transfer to farm for redistribution
  uint256 public farmReceived;
  
  constructor(address _masterchef, address _bridge) ERC20("Kiyomi.finance", "POKI") {
    // No mint function, token max supply of 80000
    // 40000 POKI for masterchef farming
    _mint(_masterchef, 40000 ether);
    farmReceived = 40000 ether;
    // 40000 POKI for bridge migrating
    _mint(_bridge, 40000 ether);
    masterchef = _masterchef;
    bridge = _bridge;
  }

  function _transfer(address sender, address recipient, uint256 amount) internal virtual override {
    if (recipient == masterchef || sender == masterchef || sender == bridge) {
      super._transfer(sender, recipient, amount);
    } else {
      // default tax is 10% of every transfer
      uint256 taxAmount = (amount * TRANSFER_TAX_RATE) / 10000;
      // 1% to burn 
      uint256 burnAmount = (taxAmount * BURN_RATE) / 100;
      // 9% to farm 
      uint256 farmAmount = taxAmount - burnAmount;
      require(taxAmount == burnAmount + farmAmount, "transfer: Burn value invalid");
      
      // default 90% of transfer sent to recipient
      uint256 sendAmount = amount - taxAmount;
      require(amount == sendAmount + taxAmount, "transfer: Tax value invalid");
      
      _burn(sender, burnAmount);
      super._transfer(sender, masterchef, farmAmount);
      farmReceived += farmAmount;
      super._transfer(sender, recipient, sendAmount);
      amount = sendAmount;
    }
  }
}

File 3 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and 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 5 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 7 of 11 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 8 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

File 9 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^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;
        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");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"address","name":"_feeAddr","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"AddPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"newEmissionRate","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"feeAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"devAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"SetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"FixedEmissionEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DEPOSIT_FEE_BP","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionUpdateInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"getPoolIdForLpToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlockUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingPoki","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poki","outputs":[{"internalType":"contract PokiToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pokiPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolIdForLpAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPokiPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"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":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddr","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPokiGenerated","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":"updateEmissionIfNeeded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pokiPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052670186cc6acd4b0000600455600060075560006008556000600b55614650600c553480156200003257600080fd5b5060405162006506380380620065068339818101604052810190620000589190620003c1565b620000786200006c6200024260201b60201c565b6200024a60201b60201c565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580620000e95750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6200012b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000122906200047e565b60405180910390fd5b30836040516200013b906200030e565b62000148929190620004b1565b604051809103906000f08015801562000165573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060098190555062057e40816200023391906200050d565b600a819055505050506200056a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612485806200408183390190565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200034e8262000321565b9050919050565b620003608162000341565b81146200036c57600080fd5b50565b600081519050620003808162000355565b92915050565b6000819050919050565b6200039b8162000386565b8114620003a757600080fd5b50565b600081519050620003bb8162000390565b92915050565b600080600060608486031215620003dd57620003dc6200031c565b5b6000620003ed868287016200036f565b935050602062000400868287016200036f565b92505060406200041386828701620003aa565b9150509250925092565b600082825260208201905092915050565b7f216e6f6e7a65726f000000000000000000000000000000000000000000000000600082015250565b6000620004666008836200041d565b915062000473826200042e565b602082019050919050565b60006020820190508181036000830152620004998162000457565b9050919050565b620004ab8162000341565b82525050565b6000604082019050620004c86000830185620004a0565b620004d76020830184620004a0565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200051a8262000386565b9150620005278362000386565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200055f576200055e620004de565b5b828201905092915050565b608051613ad1620005b060003960008181610bb501528181610f41015281816110e30152818161190901528181612325015281816123da015261248e0152613ad16000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636a273c4f1161011a578063955c9b93116100ad578063d0d41fe11161007c578063d0d41fe114610584578063d9638422146105a0578063da09c72c146105bc578063e2bbb158146105da578063f2fde38b146105f6576101fb565b8063955c9b93146104e85780639bf62f7e14610506578063bb7aa3ce14610536578063cbd258b514610554576101fb565b80638da5cb5b116100e95780638da5cb5b1461044b5780638dbb1e3a146104695780639161e4551461049957806393f1a40b146104b7576101fb565b80636a273c4f146103d9578063715018a61461040957806384e82a33146104135780638705fcd41461042f576101fb565b8063441a3e7011610192578063575014fa11610161578063575014fa146103895780635dcd5ad5146103a7578063630b5ba1146103c557806368df3f84146103cf576101fb565b8063441a3e701461031757806348cd4cb11461033357806351eb05a6146103515780635312ea8e1461036d576101fb565b806317caf6f1116101ce57806317caf6f11461028d578063190f39f0146102ab57806339e7fddc146102db5780633b67eba5146102f9576101fb565b8063081e3eda14610200578063082ed05c1461021e5780630ba84cd21461023c5780631526fe2714610258575b600080fd5b610208610612565b60405161021591906129db565b60405180910390f35b61022661061f565b60405161023391906129db565b60405180910390f35b61025660048036038101906102519190612a27565b610625565b005b610272600480360381019061026d9190612a27565b610701565b60405161028496959493929190612af0565b60405180910390f35b61029561077b565b6040516102a291906129db565b60405180910390f35b6102c560048036038101906102c09190612ba1565b610781565b6040516102d291906129db565b60405180910390f35b6102e361085d565b6040516102f09190612bdd565b60405180910390f35b610301610883565b60405161030e91906129db565b60405180910390f35b610331600480360381019061032c9190612bf8565b610889565b005b61033b610b06565b60405161034891906129db565b60405180910390f35b61036b60048036038101906103669190612a27565b610b0c565b005b61038760048036038101906103829190612a27565b610d1c565b005b610391610ec4565b60405161039e91906129db565b60405180910390f35b6103af610eca565b6040516103bc91906129db565b60405180910390f35b6103cd610ed0565b005b6103d7610f03565b005b6103f360048036038101906103ee9190612c64565b610ffb565b60405161040091906129db565b60405180910390f35b610411611222565b005b61042d60048036038101906104289190612d08565b6112aa565b005b61044960048036038101906104449190612d6f565b6116d5565b005b610453611873565b6040516104609190612bdd565b60405180910390f35b610483600480360381019061047e9190612bf8565b61189c565b60405161049091906129db565b60405180910390f35b6104a16118b2565b6040516104ae91906129db565b60405180910390f35b6104d160048036038101906104cc9190612c64565b6118b8565b6040516104df929190612d9c565b60405180910390f35b6104f06118e9565b6040516104fd9190612dc5565b60405180910390f35b610520600480360381019061051b9190612ba1565b6118ef565b60405161052d91906129db565b60405180910390f35b61053e611907565b60405161054b9190612e01565b60405180910390f35b61056e60048036038101906105699190612ba1565b61192b565b60405161057b9190612e2b565b60405180910390f35b61059e60048036038101906105999190612d6f565b61194b565b005b6105ba60048036038101906105b59190612e46565b611ae9565b005b6105c4611cf6565b6040516105d19190612bdd565b60405180910390f35b6105f460048036038101906105ef9190612bf8565b611d1c565b005b610610600480360381019061060b9190612d6f565b612221565b005b6000600580549050905090565b600b5481565b61062d612319565b73ffffffffffffffffffffffffffffffffffffffff1661064b611873565b73ffffffffffffffffffffffffffffffffffffffff16146106a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069890612f0a565b60405180910390fd5b6106a9610ed0565b806004819055503373ffffffffffffffffffffffffffffffffffffffff167feff42d13dfc9296516c1d3fc5870a26da3f78b3536a8f8db695a1f8fc4680ce9826040516106f691906129db565b60405180910390a250565b6005818154811061071157600080fd5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154905086565b60075481565b6000801515600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415610816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080d90612f76565b60405180910390fd5b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600260015414156108cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c690612fe2565b60405180910390fd5b60026001819055506000600583815481106108ed576108ec613002565b5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098f9061307d565b60405180910390fd5b6109a184610b0c565b6000816001015464e8d4a51000846003015484600001546109c291906130cc565b6109cc9190613155565b6109d69190613186565b905060008111156109ec576109eb3382612321565b5b6000841115610a7557838260000154610a059190613186565b8260000181905550610a5c33858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125829092919063ffffffff16565b838360050154610a6c9190613186565b83600501819055505b64e8d4a5100083600301548360000154610a8f91906130cc565b610a999190613155565b8260010181905550610aa9610f03565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56886604051610af091906129db565b60405180910390a3505050600180819055505050565b60095481565b600060058281548110610b2257610b21613002565b5b9060005260206000209060060201905080600201544311610b435750610d19565b600081600501541480610b5a575060008160010154145b15610b6e5743816002018190555050610d19565b6000610b7e82600201544361189c565b90506000600754836001015460045484610b9891906130cc565b610ba291906130cc565b610bac9190613155565b905060006008547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663602eb2036040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1957600080fd5b505afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5191906131cf565b610c5b9190613186565b905081811015610c69578091505b6000600a83610c789190613155565b90508083610c869190613186565b9250610cb4600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612321565b8083600854610cc391906131fc565b610ccd91906131fc565b600881905550846005015464e8d4a5100084610ce991906130cc565b610cf39190613155565b8560030154610d0291906131fc565b856003018190555043856002018190555050505050505b50565b60026001541415610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5990612fe2565b60405180910390fd5b6002600181905550600060058281548110610d8057610d7f613002565b5b9060005260206000209060060201905060006006600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050808360050154610dfd9190613186565b83600501819055506000826000018190555060008260010181905550610e6833828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125829092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583604051610eaf91906129db565b60405180910390a35050506001808190555050565b600c5481565b60085481565b6000600580549050905060005b81811015610eff57610eee81610b0c565b80610ef890613252565b9050610edd565b5050565b600a54431015610f1257610ff9565b600c54600b5443610f239190613186565b1115610ff85743600b81905550610f38610ed0565b62057e406008547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663602eb2036040518163ffffffff1660e01b815260040160206040518083038186803b158015610fa557600080fd5b505afa158015610fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdd91906131cf565b610fe79190613186565b610ff19190613155565b6004819055505b5b565b6000806005848154811061101257611011613002565b5b9060005260206000209060060201905060006006600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905082600201544311801561109757506000836005015414155b156111e85760006110ac84600201544361189c565b905060006007548560010154600454846110c691906130cc565b6110d091906130cc565b6110da9190613155565b905060006008547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663602eb2036040518163ffffffff1660e01b815260040160206040518083038186803b15801561114757600080fd5b505afa15801561115b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117f91906131cf565b6111899190613186565b905081811015611197578091505b6000600a836111a69190613155565b905080836111b49190613186565b9250866005015464e8d4a51000846111cc91906130cc565b6111d69190613155565b856111e191906131fc565b9450505050505b816001015464e8d4a5100082846000015461120391906130cc565b61120d9190613155565b6112179190613186565b935050505092915050565b61122a612319565b73ffffffffffffffffffffffffffffffffffffffff16611248611873565b73ffffffffffffffffffffffffffffffffffffffff161461129e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129590612f0a565b60405180910390fd5b6112a86000612608565b565b6112b2612319565b73ffffffffffffffffffffffffffffffffffffffff166112d0611873565b73ffffffffffffffffffffffffffffffffffffffff1614611326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131d90612f0a565b60405180910390fd5b8260001515600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146113ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b1906132e7565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113f39190612bdd565b60206040518083038186803b15801561140b57600080fd5b505afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144391906131cf565b5061019061ffff168361ffff161115611491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148890613353565b60405180910390fd5b81156114a05761149f610ed0565b5b600060095443116114b3576009546114b5565b435b9050856007546114c591906131fc565b6007819055506001600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a082015181600501555050600160058054905061163d9190613186565b600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060016005805490506116929190613186565b7fa69d86e67bfa14ad558a2599f0df3af0dff00c36be738f9118440420f1c270678688876040516116c5939291906133a4565b60405180910390a2505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173c90613427565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90613493565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600082826118aa9190613186565b905092915050565b600a5481565b6006602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b61019081565b600e6020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d6020528060005260406000206000915054906101000a900460ff1681565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b2906134ff565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a429061356b565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e760405160405180910390a350565b611af1612319565b73ffffffffffffffffffffffffffffffffffffffff16611b0f611873565b73ffffffffffffffffffffffffffffffffffffffff1614611b65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5c90612f0a565b60405180910390fd5b61019061ffff168261ffff161115611bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba9906135d7565b60405180910390fd5b8015611bc157611bc0610ed0565b5b8260058581548110611bd657611bd5613002565b5b906000526020600020906006020160010154600754611bf59190613186565b611bff91906131fc565b6007819055508260058581548110611c1a57611c19613002565b5b9060005260206000209060060201600101819055508160058581548110611c4457611c43613002565b5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f22d010b39cce830b2f23926bfb7551a230dbe713d1f6085480fef4a6ad7a4aaa60058681548110611ca557611ca4613002565b5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168585604051611ce8939291906133a4565b60405180910390a250505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990612fe2565b60405180910390fd5b6002600181905550600060058381548110611d8057611d7f613002565b5b9060005260206000209060060201905060006006600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611ded84610b0c565b600081600001541115611e47576000816001015464e8d4a5100084600301548460000154611e1b91906130cc565b611e259190613155565b611e2f9190613186565b90506000811115611e4557611e443382612321565b5b505b60008311156121915760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611eaf9190612bdd565b60206040518083038186803b158015611ec757600080fd5b505afa158015611edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eff91906131cf565b9050611f523330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166126cc909392919063ffffffff16565b808360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611fb09190612bdd565b60206040518083038186803b158015611fc857600080fd5b505afa158015611fdc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200091906131cf565b61200a9190613186565b93506000841161204f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204690613643565b60405180910390fd5b60008360040160009054906101000a900461ffff1661ffff16111561215e5760006127108460040160009054906101000a900461ffff1661ffff168661209591906130cc565b61209f9190613155565b9050612112600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125829092919063ffffffff16565b8085846000015461212391906131fc565b61212d9190613186565b83600001819055508085856005015461214691906131fc565b6121509190613186565b84600501819055505061218f565b83826000015461216e91906131fc565b826000018190555083836005015461218691906131fc565b83600501819055505b505b64e8d4a51000826003015482600001546121ab91906130cc565b6121b59190613155565b81600101819055506121c5610f03565b833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158560405161220c91906129db565b60405180910390a35050600180819055505050565b612229612319565b73ffffffffffffffffffffffffffffffffffffffff16612247611873565b73ffffffffffffffffffffffffffffffffffffffff161461229d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229490612f0a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561230d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612304906136d5565b60405180910390fd5b61231681612608565b50565b600033905090565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161237c9190612bdd565b60206040518083038186803b15801561239457600080fd5b505afa1580156123a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123cc91906131cf565b905060008183111561248c577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b81526004016124339291906136f5565b602060405180830381600087803b15801561244d57600080fd5b505af1158015612461573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124859190613733565b905061253c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b81526004016124e79291906136f5565b602060405180830381600087803b15801561250157600080fd5b505af1158015612515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125399190613733565b90505b8061257c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612573906137ac565b60405180910390fd5b50505050565b6126038363a9059cbb60e01b84846040516024016125a19291906136f5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612755565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61274f846323b872dd60e01b8585856040516024016126ed939291906137cc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612755565b50505050565b60006127b7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661281c9092919063ffffffff16565b905060008151111561281757808060200190518101906127d79190613733565b612816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280d90613875565b60405180910390fd5b5b505050565b606061282b8484600085612834565b90509392505050565b606082471015612879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287090613907565b60405180910390fd5b61288285612948565b6128c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b890613973565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516128ea9190613a0d565b60006040518083038185875af1925050503d8060008114612927576040519150601f19603f3d011682016040523d82523d6000602084013e61292c565b606091505b509150915061293c82828661295b565b92505050949350505050565b600080823b905060008111915050919050565b6060831561296b578290506129bb565b60008351111561297e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b29190613a79565b60405180910390fd5b9392505050565b6000819050919050565b6129d5816129c2565b82525050565b60006020820190506129f060008301846129cc565b92915050565b600080fd5b612a04816129c2565b8114612a0f57600080fd5b50565b600081359050612a21816129fb565b92915050565b600060208284031215612a3d57612a3c6129f6565b5b6000612a4b84828501612a12565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000612a99612a94612a8f84612a54565b612a74565b612a54565b9050919050565b6000612aab82612a7e565b9050919050565b6000612abd82612aa0565b9050919050565b612acd81612ab2565b82525050565b600061ffff82169050919050565b612aea81612ad3565b82525050565b600060c082019050612b056000830189612ac4565b612b1260208301886129cc565b612b1f60408301876129cc565b612b2c60608301866129cc565b612b396080830185612ae1565b612b4660a08301846129cc565b979650505050505050565b6000612b5c82612a54565b9050919050565b6000612b6e82612b51565b9050919050565b612b7e81612b63565b8114612b8957600080fd5b50565b600081359050612b9b81612b75565b92915050565b600060208284031215612bb757612bb66129f6565b5b6000612bc584828501612b8c565b91505092915050565b612bd781612b51565b82525050565b6000602082019050612bf26000830184612bce565b92915050565b60008060408385031215612c0f57612c0e6129f6565b5b6000612c1d85828601612a12565b9250506020612c2e85828601612a12565b9150509250929050565b612c4181612b51565b8114612c4c57600080fd5b50565b600081359050612c5e81612c38565b92915050565b60008060408385031215612c7b57612c7a6129f6565b5b6000612c8985828601612a12565b9250506020612c9a85828601612c4f565b9150509250929050565b612cad81612ad3565b8114612cb857600080fd5b50565b600081359050612cca81612ca4565b92915050565b60008115159050919050565b612ce581612cd0565b8114612cf057600080fd5b50565b600081359050612d0281612cdc565b92915050565b60008060008060808587031215612d2257612d216129f6565b5b6000612d3087828801612a12565b9450506020612d4187828801612b8c565b9350506040612d5287828801612cbb565b9250506060612d6387828801612cf3565b91505092959194509250565b600060208284031215612d8557612d846129f6565b5b6000612d9384828501612c4f565b91505092915050565b6000604082019050612db160008301856129cc565b612dbe60208301846129cc565b9392505050565b6000602082019050612dda6000830184612ae1565b92915050565b6000612deb82612aa0565b9050919050565b612dfb81612de0565b82525050565b6000602082019050612e166000830184612df2565b92915050565b612e2581612cd0565b82525050565b6000602082019050612e406000830184612e1c565b92915050565b60008060008060808587031215612e6057612e5f6129f6565b5b6000612e6e87828801612a12565b9450506020612e7f87828801612a12565b9350506040612e9087828801612cbb565b9250506060612ea187828801612cf3565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612ef4602083612ead565b9150612eff82612ebe565b602082019050919050565b60006020820190508181036000830152612f2381612ee7565b9050919050565b7f546f6b656e20646f206e6f7420657869737420696e20706f6f6c000000000000600082015250565b6000612f60601a83612ead565b9150612f6b82612f2a565b602082019050919050565b60006020820190508181036000830152612f8f81612f53565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612fcc601f83612ead565b9150612fd782612f96565b602082019050919050565b60006020820190508181036000830152612ffb81612fbf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b6000613067601283612ead565b915061307282613031565b602082019050919050565b600060208201905081810360008301526130968161305a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006130d7826129c2565b91506130e2836129c2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561311b5761311a61309d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613160826129c2565b915061316b836129c2565b92508261317b5761317a613126565b5b828204905092915050565b6000613191826129c2565b915061319c836129c2565b9250828210156131af576131ae61309d565b5b828203905092915050565b6000815190506131c9816129fb565b92915050565b6000602082840312156131e5576131e46129f6565b5b60006131f3848285016131ba565b91505092915050565b6000613207826129c2565b9150613212836129c2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156132475761324661309d565b5b828201905092915050565b600061325d826129c2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156132905761328f61309d565b5b600182019050919050565b7f4475706c69636174656420706f6f6c0000000000000000000000000000000000600082015250565b60006132d1600f83612ead565b91506132dc8261329b565b602082019050919050565b60006020820190508181036000830152613300816132c4565b9050919050565b7f6164643a20696e76616c6964206465706f736974466565425000000000000000600082015250565b600061333d601983612ead565b915061334882613307565b602082019050919050565b6000602082019050818103600083015261336c81613330565b9050919050565b600061338e61338961338484612ad3565b612a74565b6129c2565b9050919050565b61339e81613373565b82525050565b60006060820190506133b96000830186612bce565b6133c660208301856129cc565b6133d36040830184613395565b949350505050565b7f736574466565416464726573733a20696e76616c696420616464726573730000600082015250565b6000613411601e83612ead565b915061341c826133db565b602082019050919050565b6000602082019050818103600083015261344081613404565b9050919050565b7f736574466565416464726573733a20464f5242494444454e0000000000000000600082015250565b600061347d601883612ead565b915061348882613447565b602082019050919050565b600060208201905081810360008301526134ac81613470565b9050919050565b7f736574446576416464726573733a20696e76616c696420616464726573730000600082015250565b60006134e9601e83612ead565b91506134f4826134b3565b602082019050919050565b60006020820190508181036000830152613518816134dc565b9050919050565b7f736574446576416464726573733a207775743f00000000000000000000000000600082015250565b6000613555601383612ead565b91506135608261351f565b602082019050919050565b6000602082019050818103600083015261358481613548565b9050919050565b7f7365743a20696e76616c6964206465706f736974466565425000000000000000600082015250565b60006135c1601983612ead565b91506135cc8261358b565b602082019050919050565b600060208201905081810360008301526135f0816135b4565b9050919050565b7f4465706f736974206d7573742062652067726561746572207468616e20300000600082015250565b600061362d601e83612ead565b9150613638826135f7565b602082019050919050565b6000602082019050818103600083015261365c81613620565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006136bf602683612ead565b91506136ca82613663565b604082019050919050565b600060208201905081810360008301526136ee816136b2565b9050919050565b600060408201905061370a6000830185612bce565b61371760208301846129cc565b9392505050565b60008151905061372d81612cdc565b92915050565b600060208284031215613749576137486129f6565b5b60006137578482850161371e565b91505092915050565b7f73616665506f6b697472616e736665723a206661696c65640000000000000000600082015250565b6000613796601883612ead565b91506137a182613760565b602082019050919050565b600060208201905081810360008301526137c581613789565b9050919050565b60006060820190506137e16000830186612bce565b6137ee6020830185612bce565b6137fb60408301846129cc565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061385f602a83612ead565b915061386a82613803565b604082019050919050565b6000602082019050818103600083015261388e81613852565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006138f1602683612ead565b91506138fc82613895565b604082019050919050565b60006020820190508181036000830152613920816138e4565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061395d601d83612ead565b915061396882613927565b602082019050919050565b6000602082019050818103600083015261398c81613950565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156139c75780820151818401526020810190506139ac565b838111156139d6576000848401525b50505050565b60006139e782613993565b6139f1818561399e565b9350613a018185602086016139a9565b80840191505092915050565b6000613a1982846139dc565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000613a4b82613a24565b613a558185612ead565b9350613a658185602086016139a9565b613a6e81613a2f565b840191505092915050565b60006020820190508181036000830152613a938184613a40565b90509291505056fea26469706673582212203d03c4e56696c8ea6012f628d2f72fc7e0137ab884746b631b9e3b551fbb923d64736f6c6343000809003360c06040523480156200001157600080fd5b50604051620024853803806200248583398181016040528101906200003791906200042d565b6040518060400160405280600e81526020017f4b69796f6d692e66696e616e63650000000000000000000000000000000000008152506040518060400160405280600481526020017f504f4b49000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb92919062000313565b508060049080519060200190620000d492919062000313565b505050620000f382690878678326eac90000006200019060201b60201c565b690878678326eac90000006005819055506200012081690878678326eac90000006200019060201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050505062000620565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000203576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001fa90620004d5565b60405180910390fd5b62000217600083836200030960201b60201c565b80600260008282546200022b919062000530565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000282919062000530565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002e991906200059e565b60405180910390a362000305600083836200030e60201b60201c565b5050565b505050565b505050565b8280546200032190620005ea565b90600052602060002090601f01602090048101928262000345576000855562000391565b82601f106200036057805160ff191683800117855562000391565b8280016001018555821562000391579182015b828111156200039057825182559160200191906001019062000373565b5b509050620003a09190620003a4565b5090565b5b80821115620003bf576000816000905550600101620003a5565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003f582620003c8565b9050919050565b6200040781620003e8565b81146200041357600080fd5b50565b6000815190506200042781620003fc565b92915050565b60008060408385031215620004475762000446620003c3565b5b6000620004578582860162000416565b92505060206200046a8582860162000416565b9150509250929050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000620004bd601f8362000474565b9150620004ca8262000485565b602082019050919050565b60006020820190508181036000830152620004f081620004ae565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200053d82620004f7565b91506200054a83620004f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000582576200058162000501565b5b828201905092915050565b6200059881620004f7565b82525050565b6000602082019050620005b560008301846200058d565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200060357607f821691505b602082108114156200061a5762000619620005bb565b5b50919050565b60805160a051611e23620006626000396000818161091f0152610bea01526000818161094801528181610b3f01528181610b940152610d5b0152611e236000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a9059cbb11610071578063a9059cbb146102f7578063dd62ed3e14610327578063e78cea9214610357578063f846a88514610375578063fb1db2781461039357610116565b806370a082311461025d57806379cc67901461028d57806395d89b41146102a9578063a457c2d7146102c757610116565b8063313ce567116100e9578063313ce567146101b757806339509351146101d557806342966c6814610205578063602eb2031461022157806369fcb6161461023f57610116565b806306fdde031461011b578063095ea7b31461013957806318160ddd1461016957806323b872dd14610187575b600080fd5b6101236103b1565b60405161013091906112ac565b60405180910390f35b610153600480360381019061014e9190611367565b610443565b60405161016091906113c2565b60405180910390f35b610171610461565b60405161017e91906113ec565b60405180910390f35b6101a1600480360381019061019c9190611407565b61046b565b6040516101ae91906113c2565b60405180910390f35b6101bf610563565b6040516101cc9190611476565b60405180910390f35b6101ef60048036038101906101ea9190611367565b61056c565b6040516101fc91906113c2565b60405180910390f35b61021f600480360381019061021a9190611491565b610618565b005b61022961062c565b60405161023691906113ec565b60405180910390f35b610247610632565b60405161025491906114db565b60405180910390f35b610277600480360381019061027291906114f6565b610638565b60405161028491906113ec565b60405180910390f35b6102a760048036038101906102a29190611367565b610680565b005b6102b16106fb565b6040516102be91906112ac565b60405180910390f35b6102e160048036038101906102dc9190611367565b61078d565b6040516102ee91906113c2565b60405180910390f35b610311600480360381019061030c9190611367565b610878565b60405161031e91906113c2565b60405180910390f35b610341600480360381019061033c9190611523565b610896565b60405161034e91906113ec565b60405180910390f35b61035f61091d565b60405161036c9190611572565b60405180910390f35b61037d610941565b60405161038a91906114db565b60405180910390f35b61039b610946565b6040516103a89190611572565b60405180910390f35b6060600380546103c0906115bc565b80601f01602080910402602001604051908101604052809291908181526020018280546103ec906115bc565b80156104395780601f1061040e57610100808354040283529160200191610439565b820191906000526020600020905b81548152906001019060200180831161041c57829003601f168201915b5050505050905090565b600061045761045061096a565b8484610972565b6001905092915050565b6000600254905090565b6000610478848484610b3d565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006104c361096a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a90611660565b60405180910390fd5b6105578561054f61096a565b858403610972565b60019150509392505050565b60006012905090565b600061060e61057961096a565b84846001600061058761096a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461060991906116af565b610972565b6001905092915050565b61062961062361096a565b82610db1565b50565b60055481565b6103e881565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006106938361068e61096a565b610896565b9050818110156106d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cf90611777565b60405180910390fd5b6106ec836106e461096a565b848403610972565b6106f68383610db1565b505050565b60606004805461070a906115bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610736906115bc565b80156107835780601f1061075857610100808354040283529160200191610783565b820191906000526020600020905b81548152906001019060200180831161076657829003601f168201915b5050505050905090565b6000806001600061079c61096a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085090611809565b60405180910390fd5b61086d61086461096a565b85858403610972565b600191505092915050565b600061088c61088561096a565b8484610b3d565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a81565b7f000000000000000000000000000000000000000000000000000000000000000081565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d99061189b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a499061192d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610b3091906113ec565b60405180910390a3505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610be257507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80610c3857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610c4d57610c48838383610f88565b610dac565b60006127106103e861ffff1683610c64919061194d565b610c6e91906119d6565b905060006064600a61ffff1683610c85919061194d565b610c8f91906119d6565b905060008183610c9f9190611a07565b90508082610cad91906116af565b8314610cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce590611a87565b60405180910390fd5b60008385610cfc9190611a07565b90508381610d0a91906116af565b8514610d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4290611af3565b60405180910390fd5b610d558784610db1565b610d80877f000000000000000000000000000000000000000000000000000000000000000084610f88565b8160056000828254610d9291906116af565b92505081905550610da4878783610f88565b809450505050505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1890611b85565b60405180910390fd5b610e2d82600083611209565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaa90611c17565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254610f0a9190611a07565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f6f91906113ec565b60405180910390a3610f838360008461120e565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90611ca9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105f90611d3b565b60405180910390fd5b611073838383611209565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f090611dcd565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461118c91906116af565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111f091906113ec565b60405180910390a361120384848461120e565b50505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561124d578082015181840152602081019050611232565b8381111561125c576000848401525b50505050565b6000601f19601f8301169050919050565b600061127e82611213565b611288818561121e565b935061129881856020860161122f565b6112a181611262565b840191505092915050565b600060208201905081810360008301526112c68184611273565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112fe826112d3565b9050919050565b61130e816112f3565b811461131957600080fd5b50565b60008135905061132b81611305565b92915050565b6000819050919050565b61134481611331565b811461134f57600080fd5b50565b6000813590506113618161133b565b92915050565b6000806040838503121561137e5761137d6112ce565b5b600061138c8582860161131c565b925050602061139d85828601611352565b9150509250929050565b60008115159050919050565b6113bc816113a7565b82525050565b60006020820190506113d760008301846113b3565b92915050565b6113e681611331565b82525050565b600060208201905061140160008301846113dd565b92915050565b6000806000606084860312156114205761141f6112ce565b5b600061142e8682870161131c565b935050602061143f8682870161131c565b925050604061145086828701611352565b9150509250925092565b600060ff82169050919050565b6114708161145a565b82525050565b600060208201905061148b6000830184611467565b92915050565b6000602082840312156114a7576114a66112ce565b5b60006114b584828501611352565b91505092915050565b600061ffff82169050919050565b6114d5816114be565b82525050565b60006020820190506114f060008301846114cc565b92915050565b60006020828403121561150c5761150b6112ce565b5b600061151a8482850161131c565b91505092915050565b6000806040838503121561153a576115396112ce565b5b60006115488582860161131c565b92505060206115598582860161131c565b9150509250929050565b61156c816112f3565b82525050565b60006020820190506115876000830184611563565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806115d457607f821691505b602082108114156115e8576115e761158d565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b600061164a60288361121e565b9150611655826115ee565b604082019050919050565b600060208201905081810360008301526116798161163d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006116ba82611331565b91506116c583611331565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156116fa576116f9611680565b5b828201905092915050565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061176160248361121e565b915061176c82611705565b604082019050919050565b6000602082019050818103600083015261179081611754565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006117f360258361121e565b91506117fe82611797565b604082019050919050565b60006020820190508181036000830152611822816117e6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061188560248361121e565b915061189082611829565b604082019050919050565b600060208201905081810360008301526118b481611878565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061191760228361121e565b9150611922826118bb565b604082019050919050565b600060208201905081810360008301526119468161190a565b9050919050565b600061195882611331565b915061196383611331565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561199c5761199b611680565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006119e182611331565b91506119ec83611331565b9250826119fc576119fb6119a7565b5b828204905092915050565b6000611a1282611331565b9150611a1d83611331565b925082821015611a3057611a2f611680565b5b828203905092915050565b7f7472616e736665723a204275726e2076616c756520696e76616c696400000000600082015250565b6000611a71601c8361121e565b9150611a7c82611a3b565b602082019050919050565b60006020820190508181036000830152611aa081611a64565b9050919050565b7f7472616e736665723a205461782076616c756520696e76616c69640000000000600082015250565b6000611add601b8361121e565b9150611ae882611aa7565b602082019050919050565b60006020820190508181036000830152611b0c81611ad0565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000611b6f60218361121e565b9150611b7a82611b13565b604082019050919050565b60006020820190508181036000830152611b9e81611b62565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000611c0160228361121e565b9150611c0c82611ba5565b604082019050919050565b60006020820190508181036000830152611c3081611bf4565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611c9360258361121e565b9150611c9e82611c37565b604082019050919050565b60006020820190508181036000830152611cc281611c86565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000611d2560238361121e565b9150611d3082611cc9565b604082019050919050565b60006020820190508181036000830152611d5481611d18565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611db760268361121e565b9150611dc282611d5b565b604082019050919050565b60006020820190508181036000830152611de681611daa565b905091905056fea264697066735822122026e6873a3cb071cb9b5bab8651fc6c58e123ec8204b93bf7a5ecdc0f9c8653b564736f6c63430008090033000000000000000000000000c14769721abf735f26cc94949accdf9c263a98540000000000000000000000008b59ac7b19d40c334e5aef2ee750183940b331d600000000000000000000000000000000000000000000000000000000013558b5

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

000000000000000000000000c14769721abf735f26cc94949accdf9c263a98540000000000000000000000008b59ac7b19d40c334e5aef2ee750183940b331d600000000000000000000000000000000000000000000000000000000013558b5

-----Decoded View---------------
Arg [0] : _bridge (address): 0xc14769721abf735f26cc94949accdf9c263a9854
Arg [1] : _feeAddr (address): 0x8b59ac7b19d40c334e5aef2ee750183940b331d6
Arg [2] : _startBlock (uint256): 20273333

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c14769721abf735f26cc94949accdf9c263a9854
Arg [1] : 0000000000000000000000008b59ac7b19d40c334e5aef2ee750183940b331d6
Arg [2] : 00000000000000000000000000000000000000000000000000000000013558b5


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