ETH Price: $3,582.44 (+16.68%)
Gas: 42 Gwei

Contract

0x15D94Ec1C8E98812dAc23bf6a341Bd6c83E4cB11
 

Overview

ETH Balance

17.577403861626630012 ETH

Eth Value

$62,969.99 (@ $3,582.44/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve199138022024-05-20 21:26:3519 mins ago1716240395IN
Mr Farmer Man: RICE Token
0 ETH0.0019615141.73797622
Approve199119512024-05-20 15:12:116 hrs ago1716217931IN
Mr Farmer Man: RICE Token
0 ETH0.0005057710.7621322
Transfer199119432024-05-20 15:10:356 hrs ago1716217835IN
Mr Farmer Man: RICE Token
0 ETH0.0004938710.4018348
Approve199106242024-05-20 10:45:2311 hrs ago1716201923IN
Mr Farmer Man: RICE Token
0 ETH0.000349767.40659329
Approve199101932024-05-20 9:18:2312 hrs ago1716196703IN
Mr Farmer Man: RICE Token
0 ETH0.000223844.76430951
Approve199095702024-05-20 7:12:4714 hrs ago1716189167IN
Mr Farmer Man: RICE Token
0 ETH0.000148273.15594114
Approve199091982024-05-20 5:57:5915 hrs ago1716184679IN
Mr Farmer Man: RICE Token
0 ETH0.000073372.71031923
Approve199091982024-05-20 5:57:5915 hrs ago1716184679IN
Mr Farmer Man: RICE Token
0 ETH0.00012732.71031923
Approve199090332024-05-20 5:24:4716 hrs ago1716182687IN
Mr Farmer Man: RICE Token
0 ETH0.000137762.9322075
Approve199067312024-05-19 21:41:1124 hrs ago1716154871IN
Mr Farmer Man: RICE Token
0 ETH0.000137292.92210986
Approve199067122024-05-19 21:37:2324 hrs ago1716154643IN
Mr Farmer Man: RICE Token
0 ETH0.000136532.90608636
Transfer199045862024-05-19 14:29:4731 hrs ago1716128987IN
Mr Farmer Man: RICE Token
0 ETH0.000180263.79760498
Approve199033432024-05-19 10:19:1135 hrs ago1716113951IN
Mr Farmer Man: RICE Token
0 ETH0.000136272.88929258
Approve198991462024-05-18 20:15:112 days ago1716063311IN
Mr Farmer Man: RICE Token
0 ETH0.000194624.12648542
Approve198956862024-05-18 8:37:592 days ago1716021479IN
Mr Farmer Man: RICE Token
0 ETH0.000196654.18552882
Approve198915962024-05-17 18:52:353 days ago1715971955IN
Mr Farmer Man: RICE Token
0 ETH0.000208144.43021206
Approve198906372024-05-17 15:38:473 days ago1715960327IN
Mr Farmer Man: RICE Token
0 ETH0.0005622511.96688161
Approve198894292024-05-17 11:35:353 days ago1715945735IN
Mr Farmer Man: RICE Token
0 ETH0.000380728.1033438
Approve198889182024-05-17 9:52:473 days ago1715939567IN
Mr Farmer Man: RICE Token
0 ETH0.000383988.17265893
Transfer198882582024-05-17 7:38:593 days ago1715931539IN
Mr Farmer Man: RICE Token
0 ETH0.000335217.06008038
Approve198852642024-05-16 21:37:114 days ago1715895431IN
Mr Farmer Man: RICE Token
0 ETH0.000171673.65381385
Approve198796232024-05-16 2:41:234 days ago1715827283IN
Mr Farmer Man: RICE Token
0 ETH0.000209014.44761112
Approve198776792024-05-15 20:09:475 days ago1715803787IN
Mr Farmer Man: RICE Token
0 ETH0.0005767313.24369846
Approve198768502024-05-15 17:23:235 days ago1715793803IN
Mr Farmer Man: RICE Token
0 ETH0.000374847.98640417
Approve198746992024-05-15 10:11:235 days ago1715767883IN
Mr Farmer Man: RICE Token
0 ETH0.000330597.00048795
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
195749582024-04-03 11:30:5947 days ago1712143859
Mr Farmer Man: RICE Token
0.09 ETH
195160502024-03-26 3:50:1155 days ago1711425011
Mr Farmer Man: RICE Token
0.45 ETH
194961032024-03-23 8:26:3558 days ago1711182395
Mr Farmer Man: RICE Token
0.18 ETH
194726392024-03-20 1:26:5961 days ago1710898019
Mr Farmer Man: RICE Token
0.018 ETH
194405962024-03-15 13:18:1166 days ago1710508691
Mr Farmer Man: RICE Token
0.045 ETH
193976102024-03-09 12:42:2372 days ago1709988143
Mr Farmer Man: RICE Token
0.0621 ETH
193674412024-03-05 7:22:2376 days ago1709623343
Mr Farmer Man: RICE Token
0.45 ETH
193673832024-03-05 7:10:3576 days ago1709622635
Mr Farmer Man: RICE Token
0.9 ETH
193657252024-03-05 1:37:1176 days ago1709602631
Mr Farmer Man: RICE Token
0.45 ETH
193609262024-03-04 9:32:4777 days ago1709544767
Mr Farmer Man: RICE Token
0.0315 ETH
193591602024-03-04 3:37:5977 days ago1709523479
Mr Farmer Man: RICE Token
0.1161 ETH
193591492024-03-04 3:35:4777 days ago1709523347
Mr Farmer Man: RICE Token
0.603 ETH
193537452024-03-03 9:27:4778 days ago1709458067
Mr Farmer Man: RICE Token
0.081 ETH
193521052024-03-03 3:58:1178 days ago1709438291
Mr Farmer Man: RICE Token
0.45 ETH
193513972024-03-03 1:35:5978 days ago1709429759
Mr Farmer Man: RICE Token
0.783 ETH
193513952024-03-03 1:35:3578 days ago1709429735
Mr Farmer Man: RICE Token
0.088884 ETH
193513902024-03-03 1:34:3578 days ago1709429675
Mr Farmer Man: RICE Token
0.522 ETH
193469192024-03-02 10:34:4779 days ago1709375687
Mr Farmer Man: RICE Token
0.027 ETH
193465202024-03-02 9:14:4779 days ago1709370887
Mr Farmer Man: RICE Token
0.9 ETH
193462022024-03-02 8:10:2379 days ago1709367023
Mr Farmer Man: RICE Token
0.342 ETH
193444162024-03-02 2:10:3579 days ago1709345435
Mr Farmer Man: RICE Token
0.45 ETH
193444132024-03-02 2:09:5979 days ago1709345399
Mr Farmer Man: RICE Token
0.225 ETH
193444092024-03-02 2:09:1179 days ago1709345351
Mr Farmer Man: RICE Token
0.225 ETH
193440882024-03-02 1:03:3579 days ago1709341415
Mr Farmer Man: RICE Token
0.144 ETH
193439982024-03-02 0:45:2379 days ago1709340323
Mr Farmer Man: RICE Token
0.126 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RICE

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
shanghai EvmVersion
File 1 of 11 : RICE.sol
pragma solidity ^0.8.20;

import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./interfaces/IFARM.sol";



/**
 *  
 *   .d8888b.  d8b                        888           .d8888b.                  d8b                                       
 *  d88P  Y88b Y8P                        888          d88P  Y88b                 Y8P                                       
 *  Y88b.                                 888          888    888                                                           
 *   "Y888b.   888 88888b.d88b.  88888b.  888  .d88b.  888        888d888 8888b.  888 88888b.       .d88b.  888d888 .d88b.  
 *      "Y88b. 888 888 "888 "88b 888 "88b 888 d8P  Y8b 888  88888 888P"      "88b 888 888 "88b     d88""88b 888P"  d88P"88b 
 *        "888 888 888  888  888 888  888 888 88888888 888    888 888    .d888888 888 888  888     888  888 888    888  888 
 *  Y88b  d88P 888 888  888  888 888 d88P 888 Y8b.     Y88b  d88P 888    888  888 888 888  888 d8b Y88..88P 888    Y88b 888 
 *   "Y8888P"  888 888  888  888 88888P"  888  "Y8888   "Y8888P88 888    "Y888888 888 888  888 Y8P  "Y88P"  888     "Y88888 
 *                               888                                                                                    888 
 *                               888                                                                               Y8b d88P 
 *                               888                                                                                "Y88P"  
 */

/**
 * @title RICE contract
 * @dev Extends ERC20. Implements a bonding mechanism and liquidity provisioning
 */
contract RICE is ERC20, ReentrancyGuard {
  IUniswapV2Router02 public router;

  uint256 public constant PRECISION = 10**18;
  uint256 public constant LIQUIDITY_PERCENT = 10;
  uint256 public constant TOTAL_SUPPLY = 111_111_111_111_111 * 10**18;

  // 20% held for future farming initiatives
  uint256 public constant FARM_SUPPLY = (TOTAL_SUPPLY * 20) / 100;

  // 40% to be distributed to bonders
  uint256 public constant BONDING_SUPPLY = (TOTAL_SUPPLY * 40) / 100;

  uint256 public tokensPerSecond;
  uint256 public bondingPeriod;

  address public uniswapPair;

  struct Bond {
    uint256 previouslyAllocated;
    uint256 amount;
    bool claimed;
  }

  mapping(address => Bond) public bonds;
  uint256 public bondingStartTime;
  uint256 public bondingEndTime;
  uint256 public totalTokensPerBond;
  uint256 public lastBondedAt;
  uint256 public totalBonded;

  address public farm;

  bool public liquidityDeployed;

  event Bonded(address indexed user, uint256 amount);
  event LiquidityAdded(uint256 tokenAmount, uint256 ethAmount);
  event EmergencyClaim(address indexed user, uint256 ethAmount);
  event Claim(address indexed user, uint256 amount, uint256 ethAmount);

  /**
  * @dev Constructor function
  * Sets up the initial settings for the RICE contract.
  * Assigns the farm address
  */
  constructor(uint256 _bondingPeriod, address _farm, address _router) ERC20("Simple Grain", "RICE") {
    farm = _farm;
    bondingPeriod = _bondingPeriod;
    router = IUniswapV2Router02(_router);
    tokensPerSecond = PRECISION * BONDING_SUPPLY / bondingPeriod;
  }

  /**
   * @notice Gets the total supply of the token.
   * @return uint256 The total supply.
   */
  function totalSupply() public view virtual override returns (uint256) {
    return TOTAL_SUPPLY;
  }

  /**
   * @notice Gets various information about the contract and optionally about a specific user.
   * @param user The address of the user for which to get info.
   *        Pass the zero address to only retrieve contract-wide info.
   * @return uint256[5] An array containing:
   *         - totalBonded: The total amount bonded.
   *         - bondingStartTime: The start time of bonding.
   *         - bondingEndTime: The end time of bonding.
   *         - tokensPerSecond: The rate of token distribution.
   *         - totalSupply: The total supply of RICE.
   *         - user's bonded amount (or 0 if user == address(0)).
   *         - allocatedAmount for the user (or 0 if user == address(0)).
   *         - claimed indicator for user (1 if claimed, 0 if unclaimed or if user == address(0)).
   */
  function getInfo(address user) public view returns (uint256[9] memory) {
    uint256[9] memory info;

    info[0] = totalBonded;
    info[1] = bondingStartTime;
    info[2] = bondingEndTime;
    info[3] = tokensPerSecond;
    info[4] = totalSupply();
    info[5] = block.timestamp;

    if (user != address(0)) {
      info[6] = bonds[user].amount;
      info[7] = allocatedAmount(user);
      info[8] = bonds[user].claimed ? 1 : 0;
    }
    return info;
  }

  /**
   * @dev Starts the bonding process by setting start and end times
   * This is a private function called when the first bond() call is made
   */
  function startBonding() private {
    bondingStartTime = block.timestamp;
    bondingEndTime = bondingStartTime + bondingPeriod;
  }

  /**
   * @dev Returns time since the start of the bonding period
   * @return Time elapsed since bondingStartTime
   */
  function timeSinceStart() public view returns (uint256) {
    return block.timestamp - bondingStartTime;
  }

  /**
   * @dev Lets a user bond ETH to the contract, beginning the bonding process if not started
   * Each user can only bond once, and bonding is not allowed after the bonding period has ended
   */
  function bond() public payable nonReentrant {
    if (bondingStartTime == 0) startBonding();
    require(block.timestamp <= bondingEndTime, "Bonding period has ended");
    require(bonds[msg.sender].amount == 0, "Can only bond once");
    require(msg.value > 0, "Cannot bond zero eth");

    if (lastBondedAt > 0) {
      uint256 elapsedTime = block.timestamp - lastBondedAt;
      totalTokensPerBond += elapsedTime * tokensPerSecond / totalBonded;
    }

    bonds[msg.sender] = Bond({
      previouslyAllocated: totalTokensPerBond,
      amount: msg.value,
      claimed: false
    });

    totalBonded += msg.value;
    lastBondedAt = block.timestamp;

    emit Bonded(msg.sender, msg.value);
  }

  /**
   * @dev Allows a user to claim their bonded ETH and minted RICE tokens after the bonding period has ended
   * Also deploys liquidity if it has not yet been deployed
   */
  function claim() external nonReentrant {
    if (!liquidityDeployed) deployLiquidity();

    Bond storage userBond = bonds[msg.sender];
    require(!userBond.claimed, "Already claimed");
    userBond.claimed = true;

    uint256 amount = allocatedAmount(msg.sender);
    uint256 ethAmount = userBond.amount * 90 / 100;

    _mint(msg.sender, amount);
    payable(msg.sender).transfer(ethAmount);

    emit Claim(msg.sender, amount, ethAmount);
  }

  /**
   * @dev Calculates the current allocation period
   * @return The current time period for which tokens have been allocated
   */
  function currentAllocationPeriod() public view returns (uint256) {
    if (bondingEndTime < block.timestamp)
      return bondingEndTime - lastBondedAt;
    else return block.timestamp - lastBondedAt;
  }

  /**
   * @dev Calculates the amount of tokens allocated to a user
   * @param user Address of the user
   * @return The amount of tokens allocated to the user
   */
  function allocatedAmount(address user) public view returns (uint256) {
    // A user's allocated amount is determined by their proportional ownership over each given period.
    // Each time a new user bonds, the ownership of all previous bonder's ownership ratio will change,
    // thus starting a new period. Giving each period p_i, from p_0 to p_n, each user's allocation can
    // be computed as: 
    //
    // allocation(user, p_n) = ownership(user, p_0) * tokensPerPeriod(p_0) + ... + ownership(user, p_n) * tokensPerPeriod(p_n)
    //
    // where
    // ownership(user, p_i) = amountBonded(user, p_i) / totalBonded(p_i)
    //
    // and
    // tokensPerPeriod(p_i) = tokensAllocatedPerSecond * periodLengthInSeconds(p_i)
    // 
    // thus
    // allocation(user, p_n) = (amountBonded(user, p_0) / totalBonded(p_0)) * periodLengthInSeconds(p_0) * tokensAllocatedPerSecond + ... +
    //                         (amountBonded(user, p_n) / totalBonded(p_n)) * periodLengthInSeconds(p_n) * tokensAllocatedPerSecond
    //
    // if we ascribe
    // tokensPerBond(p_i) = periodLengthInSeconds(p_i) * tokensAllocatedPerSecond / totalBonded(p_i)
    // then
    // allocation(user, p_n) = amountBonded(user, p_0) * tokensPerBond(p_0) + ... + amountBonded(user, p_0) * tokensPerBond(p_n)
    //
    // since we know that amountBonded(user, p_i) only changes once, from zero to amountBonded(user, p_j),
    // where p_j is the bonding period started by the user, we can say 
    // bonds[user].amount = amountBonded(user, p_j)
    //
    // and
    // allocation(user, p_n) = bonds[user].amount * (tokensPerBond(p_j) + ... +  tokensPerBond(p_n))
    // which, if we say k=j-1, is the same as:
    // allocation(user, p_n) = bonds[user].amount * ((tokensPerBond(p_0) + ... +  tokensPerBond(p_n)) - (tokensPerBond(p_0) + ... +  tokensPerBond(p_k)))
    //
    // in our code, for each user at the time of bond j, we increment
    // totalTokensPerBond += tokensPerBond(p_j)
    // and we store
    // bonds[user].previouslyAllocated = totalTokensPerBond
    //
    // then at any moment,
    // allocation(user) = bonds[user].amount * (totalTokensPerBond - bonds[user].previouslyAllocated)
    // 
    // Since this only accounts for the first bond, up until the time when a new bond is made, we must also
    // add the tokens from the currentAllocation period, which is the number of seconds between lastBondedAt
    // and min(bondingEndTime, block.timestamp), multiplied by tokensPerSecond and the user's ownership ratio

    if (totalBonded == 0) return 0;
    uint256 currentAllocation = currentAllocationPeriod() * tokensPerSecond * bonds[user].amount / totalBonded;
    uint256 previousAllocation = bonds[user].amount * (totalTokensPerBond - bonds[user].previouslyAllocated);

    return (previousAllocation + currentAllocation) / PRECISION;
  }

  /**
   * @dev Adds liquidity to the Uniswap pool after the bonding period has ended
   * Liquidity is added with the remaining bonded ETH and newly minted RICE tokens
   */
  function deployLiquidity() private {
    require(block.timestamp > bondingEndTime, "Bonding period is not over yet");
    require(!liquidityDeployed, "liquidity has already been deployed");
    liquidityDeployed = true;

    uint256 liquidityEthAmount = totalBonded * LIQUIDITY_PERCENT / 100;
    uint256 tokensToDeploy = TOTAL_SUPPLY - FARM_SUPPLY - BONDING_SUPPLY;

    _mint(address(this), tokensToDeploy);
    _approve(address(this), address(router), tokensToDeploy);

    router.addLiquidityETH{value: liquidityEthAmount}(
      address(this), tokensToDeploy,
      0, 0, address(0), block.timestamp
    );


    _mint(farm, FARM_SUPPLY);
    address weth = router.WETH();
    IUniswapV2Factory factory = IUniswapV2Factory(router.factory());
    uniswapPair = factory.getPair(address(this), weth);

    if (uniswapPair == address(0))
      uniswapPair = factory.createPair(address(this), weth);

    IFARM(farm).activateRewards(uniswapPair, weth, address(router));

    emit LiquidityAdded(tokensToDeploy, liquidityEthAmount);
  }

  /**
   * @dev Returns the full amount of deposited ETH to the user along with zero RICE tokens.
   * This function can only be used in the extremely unlikely emergency scenario where
   * liquidity is not deployed within 24 hours of the bonding period ending. As written,
   * it should be impossible for this function to ever be used; however, if something
   * unforeseen fails within the external liquidity deployment contract, this emergency
   * function will protect against a state where bonded Ethereum is locked forever.
   */
  function emergencyClaim() public nonReentrant {
    require(block.timestamp > bondingEndTime + (1 days), "emergency claim not allowed until 1 day after the bonding period ends");
    require(!liquidityDeployed, "liquidity has been deployed succesfully, emergency claim will never be possible");

    Bond storage userBond = bonds[msg.sender];
    require(!userBond.claimed, "Already claimed");
    userBond.claimed = true;

    uint256 ethAmount = userBond.amount;

    payable(msg.sender).transfer(ethAmount);

    emit EmergencyClaim(msg.sender, ethAmount);
  }

}

File 3 of 11 : IFARM.sol
pragma solidity ^0.8.20;

interface IFARM {
  function activateRewards(address _uniswapPair, address _weth, address _router) external;
}

File 4 of 11 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 5 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

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

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

File 6 of 11 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 7 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

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

pragma solidity ^0.8.0;

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

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

File 9 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

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 10 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 11 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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}.
     *
     * 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 default value returned by this function, unless
     * it's 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 12 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_bondingPeriod","type":"uint256"},{"internalType":"address","name":"_farm","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bonded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"EmergencyClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BONDING_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FARM_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIQUIDITY_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"allocatedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bond","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bondingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bonds","outputs":[{"internalType":"uint256","name":"previouslyAllocated","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentAllocationPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getInfo","outputs":[{"internalType":"uint256[9]","name":"","type":"uint256[9]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastBondedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityDeployed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeSinceStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBonded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensPerBond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801562000010575f80fd5b5060405162003add38038062003add833981810160405281019062000036919062000252565b6040518060400160405280600c81526020017f53696d706c6520477261696e00000000000000000000000000000000000000008152506040518060400160405280600481526020017f52494345000000000000000000000000000000000000000000000000000000008152508160039081620000b3919062000506565b508060049081620000c5919062000506565b50505060016005819055508160105f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826008819055508060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600854606460286d057a6b5cf3493da72eb442bc000062000179919062000617565b6200018591906200068e565b670de0b6b3a76400006200019a919062000617565b620001a691906200068e565b600781905550505050620006c5565b5f80fd5b5f819050919050565b620001cd81620001b9565b8114620001d8575f80fd5b50565b5f81519050620001eb81620001c2565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200021c82620001f1565b9050919050565b6200022e8162000210565b811462000239575f80fd5b50565b5f815190506200024c8162000223565b92915050565b5f805f606084860312156200026c576200026b620001b5565b5b5f6200027b86828701620001db565b93505060206200028e868287016200023c565b9250506040620002a1868287016200023c565b9150509250925092565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200032757607f821691505b6020821081036200033d576200033c620002e2565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620003a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000364565b620003ad868362000364565b95508019841693508086168417925050509392505050565b5f819050919050565b5f620003ee620003e8620003e284620001b9565b620003c5565b620001b9565b9050919050565b5f819050919050565b6200040983620003ce565b620004216200041882620003f5565b84845462000370565b825550505050565b5f90565b6200043762000429565b62000444818484620003fe565b505050565b5b818110156200046b576200045f5f826200042d565b6001810190506200044a565b5050565b601f821115620004ba57620004848162000343565b6200048f8462000355565b810160208510156200049f578190505b620004b7620004ae8562000355565b83018262000449565b50505b505050565b5f82821c905092915050565b5f620004dc5f1984600802620004bf565b1980831691505092915050565b5f620004f68383620004cb565b9150826002028217905092915050565b6200051182620002ab565b67ffffffffffffffff8111156200052d576200052c620002b5565b5b6200053982546200030f565b620005468282856200046f565b5f60209050601f8311600181146200057c575f841562000567578287015190505b620005738582620004e9565b865550620005e2565b601f1984166200058c8662000343565b5f5b82811015620005b5578489015182556001820191506020850194506020810190506200058e565b86831015620005d55784890151620005d1601f891682620004cb565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6200062382620001b9565b91506200063083620001b9565b92508282026200064081620001b9565b915082820484148315176200065a5762000659620005ea565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6200069a82620001b9565b9150620006a783620001b9565b925082620006ba57620006b962000661565b5b828204905092915050565b61340a80620006d35f395ff3fe608060405260043610610203575f3560e01c80637b4fb68011610117578063c31c6fb91161009f578063dd62ed3e1161006e578063dd62ed3e14610729578063f011bb9c14610765578063f887ea401461078f578063fe10d774146107b9578063ffdd5cf1146107f757610203565b8063c31c6fb914610681578063c4f0cc82146106ab578063c816841b146106d5578063d545e0a2146106ff57610203565b806395d89b41116100e657806395d89b411461058b5780639c5913cc146105b5578063a457c2d7146105df578063a9059cbb1461061b578063aaf5eb681461065757610203565b80637b4fb680146104d15780638d427e25146104fb5780638ea4297614610525578063902d55a51461056157610203565b806336e9332d1161019a5780634d8d9e92116101695780634d8d9e92146104215780634e71d92d1461044b57806364c9ec6f1461046157806367fc6dea1461046b57806370a082311461049557610203565b806336e9332d1461036757806339509351146103915780633ccfbabf146103cd57806344d96e95146103f757610203565b806318160ddd116101d657806318160ddd146102c157806323b872dd146102eb5780632b8278ca14610327578063313ce5671461033d57610203565b806306fdde0314610207578063095ea7b3146102315780630cc678c91461026d57806316ce6cc114610297575b5f80fd5b348015610212575f80fd5b5061021b610833565b604051610228919061240a565b60405180910390f35b34801561023c575f80fd5b50610257600480360381019061025291906124bb565b6108c3565b6040516102649190612513565b60405180910390f35b348015610278575f80fd5b506102816108e5565b60405161028e919061253b565b60405180910390f35b3480156102a2575f80fd5b506102ab6108eb565b6040516102b8919061253b565b60405180910390f35b3480156102cc575f80fd5b506102d5610915565b6040516102e2919061253b565b60405180910390f35b3480156102f6575f80fd5b50610311600480360381019061030c9190612554565b61092a565b60405161031e9190612513565b60405180910390f35b348015610332575f80fd5b5061033b610958565b005b348015610348575f80fd5b50610351610b55565b60405161035e91906125bf565b60405180910390f35b348015610372575f80fd5b5061037b610b5d565b60405161038891906125e7565b60405180910390f35b34801561039c575f80fd5b506103b760048036038101906103b291906124bb565b610b82565b6040516103c49190612513565b60405180910390f35b3480156103d8575f80fd5b506103e1610bb8565b6040516103ee919061253b565b60405180910390f35b348015610402575f80fd5b5061040b610bbd565b604051610418919061253b565b60405180910390f35b34801561042c575f80fd5b50610435610bc3565b604051610442919061253b565b60405180910390f35b348015610456575f80fd5b5061045f610bc9565b005b610469610d72565b005b348015610476575f80fd5b5061047f610feb565b60405161048c919061253b565b60405180910390f35b3480156104a0575f80fd5b506104bb60048036038101906104b69190612600565b610fff565b6040516104c8919061253b565b60405180910390f35b3480156104dc575f80fd5b506104e5611044565b6040516104f2919061253b565b60405180910390f35b348015610506575f80fd5b5061050f61104a565b60405161051c919061253b565b60405180910390f35b348015610530575f80fd5b5061054b60048036038101906105469190612600565b611074565b604051610558919061253b565b60405180910390f35b34801561056c575f80fd5b506105756111ba565b604051610582919061253b565b60405180910390f35b348015610596575f80fd5b5061059f6111cc565b6040516105ac919061240a565b60405180910390f35b3480156105c0575f80fd5b506105c961125c565b6040516105d69190612513565b60405180910390f35b3480156105ea575f80fd5b50610605600480360381019061060091906124bb565b61126f565b6040516106129190612513565b60405180910390f35b348015610626575f80fd5b50610641600480360381019061063c91906124bb565b6112e4565b60405161064e9190612513565b60405180910390f35b348015610662575f80fd5b5061066b611306565b604051610678919061253b565b60405180910390f35b34801561068c575f80fd5b50610695611312565b6040516106a2919061253b565b60405180910390f35b3480156106b6575f80fd5b506106bf611318565b6040516106cc919061253b565b60405180910390f35b3480156106e0575f80fd5b506106e961131e565b6040516106f691906125e7565b60405180910390f35b34801561070a575f80fd5b50610713611343565b604051610720919061253b565b60405180910390f35b348015610734575f80fd5b5061074f600480360381019061074a919061262b565b611379565b60405161075c919061253b565b60405180910390f35b348015610770575f80fd5b506107796113fb565b604051610786919061253b565b60405180910390f35b34801561079a575f80fd5b506107a3611401565b6040516107b091906126c4565b60405180910390f35b3480156107c4575f80fd5b506107df60048036038101906107da9190612600565b611426565b6040516107ee939291906126dd565b60405180910390f35b348015610802575f80fd5b5061081d60048036038101906108189190612600565b611458565b60405161082a91906127b7565b60405180910390f35b606060038054610842906127fe565b80601f016020809104026020016040519081016040528092919081815260200182805461086e906127fe565b80156108b95780601f10610890576101008083540402835291602001916108b9565b820191905f5260205f20905b81548152906001019060200180831161089c57829003601f168201915b5050505050905090565b5f806108cd611665565b90506108da81858561166c565b600191505092915050565b600c5481565b606460146d057a6b5cf3493da72eb442bc0000610908919061285b565b61091291906128c9565b81565b5f6d057a6b5cf3493da72eb442bc0000905090565b5f80610934611665565b905061094185828561182f565b61094c8585856118ba565b60019150509392505050565b610960611b26565b62015180600c5461097191906128f9565b42116109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a9906129c2565b60405180910390fd5b601060149054906101000a900460ff1615610a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f990612a76565b60405180910390fd5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806002015f9054906101000a900460ff1615610a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8a90612ade565b60405180910390fd5b6001816002015f6101000a81548160ff0219169083151502179055505f816001015490503373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610afa573d5f803e3d5ffd5b503373ffffffffffffffffffffffffffffffffffffffff167f07181ceaa5c61f1818da3a082bd8f1f5a85817f2f0ff49e19e3b6a8b30822f5582604051610b41919061253b565b60405180910390a25050610b53611b75565b565b5f6012905090565b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80610b8c611665565b9050610bad818585610b9e8589611379565b610ba891906128f9565b61166c565b600191505092915050565b600a81565b600f5481565b60075481565b610bd1611b26565b601060149054906101000a900460ff16610bee57610bed611b7f565b5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806002015f9054906101000a900460ff1615610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690612ade565b60405180910390fd5b6001816002015f6101000a81548160ff0219169083151502179055505f610ca533611074565b90505f6064605a8460010154610cbb919061285b565b610cc591906128c9565b9050610cd133836121e6565b3373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610d14573d5f803e3d5ffd5b503373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78383604051610d5d929190612afc565b60405180910390a2505050610d70611b75565b565b610d7a611b26565b5f600b5403610d8c57610d8b612334565b5b600c54421115610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890612b6d565b60405180910390fd5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015414610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90612bd5565b60405180910390fd5b5f3411610e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8c90612c3d565b60405180910390fd5b5f600e541115610ee4575f600e5442610eae9190612c5b565b9050600f5460075482610ec1919061285b565b610ecb91906128c9565b600d5f828254610edb91906128f9565b92505081905550505b6040518060600160405280600d5481526020013481526020015f1515815250600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff02191690831515021790555090505034600f5f828254610f8591906128f9565b9250508190555042600e819055503373ffffffffffffffffffffffffffffffffffffffff167fd0a009034e24a39106653c4903cf28b1947b8a9964d03206648e0f0a5de74a4634604051610fd9919061253b565b60405180910390a2610fe9611b75565b565b5f600b5442610ffa9190612c5b565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b600e5481565b606460286d057a6b5cf3493da72eb442bc0000611067919061285b565b61107191906128c9565b81565b5f80600f5403611086575f90506111b5565b5f600f54600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101546007546110d6611343565b6110e0919061285b565b6110ea919061285b565b6110f491906128c9565b90505f600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154600d546111449190612c5b565b600a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015461118f919061285b565b9050670de0b6b3a764000082826111a691906128f9565b6111b091906128c9565b925050505b919050565b6d057a6b5cf3493da72eb442bc000081565b6060600480546111db906127fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611207906127fe565b80156112525780601f1061122957610100808354040283529160200191611252565b820191905f5260205f20905b81548152906001019060200180831161123557829003601f168201915b5050505050905090565b601060149054906101000a900460ff1681565b5f80611279611665565b90505f6112868286611379565b9050838110156112cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c290612cfe565b60405180910390fd5b6112d8828686840361166c565b60019250505092915050565b5f806112ee611665565b90506112fb8185856118ba565b600191505092915050565b670de0b6b3a764000081565b60085481565b600b5481565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f42600c54101561136557600e54600c5461135e9190612c5b565b9050611376565b600e54426113739190612c5b565b90505b90565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600d5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16905083565b61146061235d565b61146861235d565b600f54815f6009811061147e5761147d612d1c565b5b602002018181525050600b548160016009811061149e5761149d612d1c565b5b602002018181525050600c54816002600981106114be576114bd612d1c565b5b602002018181525050600754816003600981106114de576114dd612d1c565b5b6020020181815250506114ef610915565b8160046009811061150357611502612d1c565b5b602002018181525050428160056009811061152157611520612d1c565b5b6020020181815250505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461165c57600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010154816006600981106115b2576115b1612d1c565b5b6020020181815250506115c483611074565b816007600981106115d8576115d7612d1c565b5b602002018181525050600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015f9054906101000a900460ff16611638575f61163b565b60015b60ff168160086009811061165257611651612d1c565b5b6020020181815250505b80915050919050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190612db9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f90612e47565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611822919061253b565b60405180910390a3505050565b5f61183a8484611379565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118b457818110156118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90612eaf565b60405180910390fd5b6118b3848484840361166c565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191f90612f3d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198d90612fcb565b60405180910390fd5b6119a1838383612353565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b90613059565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b0d919061253b565b60405180910390a3611b20848484612358565b50505050565b600260055403611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b62906130c1565b60405180910390fd5b6002600581905550565b6001600581905550565b600c544211611bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bba90613129565b60405180910390fd5b601060149054906101000a900460ff1615611c13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0a906131b7565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055505f6064600a600f54611c40919061285b565b611c4a91906128c9565b90505f606460286d057a6b5cf3493da72eb442bc0000611c6a919061285b565b611c7491906128c9565b606460146d057a6b5cf3493da72eb442bc0000611c91919061285b565b611c9b91906128c9565b6d057a6b5cf3493da72eb442bc0000611cb49190612c5b565b611cbe9190612c5b565b9050611cca30826121e6565b611cf63060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361166c565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198330845f805f426040518863ffffffff1660e01b8152600401611d5b9695949392919061320e565b60606040518083038185885af1158015611d77573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611d9c9190613281565b505050611df060105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16606460146d057a6b5cf3493da72eb442bc0000611de1919061285b565b611deb91906128c9565b6121e6565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e7f91906132e5565b90505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f1091906132e5565b90508073ffffffffffffffffffffffffffffffffffffffff1663e6a4390530846040518363ffffffff1660e01b8152600401611f4d929190613310565b602060405180830381865afa158015611f68573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f8c91906132e5565b60095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f73ffffffffffffffffffffffffffffffffffffffff1660095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036120da578073ffffffffffffffffffffffffffffffffffffffff1663c9c6539630846040518363ffffffff1660e01b815260040161205a929190613310565b6020604051808303815f875af1158015612076573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061209a91906132e5565b60095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639d5c9fa460095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168460065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b815260040161217a93929190613337565b5f604051808303815f87803b158015612191575f80fd5b505af11580156121a3573d5f803e3d5ffd5b505050507f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b83856040516121d8929190612afc565b60405180910390a150505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224b906133b6565b60405180910390fd5b61225f5f8383612353565b8060025f82825461227091906128f9565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161231d919061253b565b60405180910390a36123305f8383612358565b5050565b42600b81905550600854600b5461234b91906128f9565b600c81905550565b505050565b505050565b604051806101200160405280600990602082028036833780820191505090505090565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156123b757808201518184015260208101905061239c565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6123dc82612380565b6123e6818561238a565b93506123f681856020860161239a565b6123ff816123c2565b840191505092915050565b5f6020820190508181035f83015261242281846123d2565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6124578261242e565b9050919050565b6124678161244d565b8114612471575f80fd5b50565b5f813590506124828161245e565b92915050565b5f819050919050565b61249a81612488565b81146124a4575f80fd5b50565b5f813590506124b581612491565b92915050565b5f80604083850312156124d1576124d061242a565b5b5f6124de85828601612474565b92505060206124ef858286016124a7565b9150509250929050565b5f8115159050919050565b61250d816124f9565b82525050565b5f6020820190506125265f830184612504565b92915050565b61253581612488565b82525050565b5f60208201905061254e5f83018461252c565b92915050565b5f805f6060848603121561256b5761256a61242a565b5b5f61257886828701612474565b935050602061258986828701612474565b925050604061259a868287016124a7565b9150509250925092565b5f60ff82169050919050565b6125b9816125a4565b82525050565b5f6020820190506125d25f8301846125b0565b92915050565b6125e18161244d565b82525050565b5f6020820190506125fa5f8301846125d8565b92915050565b5f602082840312156126155761261461242a565b5b5f61262284828501612474565b91505092915050565b5f80604083850312156126415761264061242a565b5b5f61264e85828601612474565b925050602061265f85828601612474565b9150509250929050565b5f819050919050565b5f61268c6126876126828461242e565b612669565b61242e565b9050919050565b5f61269d82612672565b9050919050565b5f6126ae82612693565b9050919050565b6126be816126a4565b82525050565b5f6020820190506126d75f8301846126b5565b92915050565b5f6060820190506126f05f83018661252c565b6126fd602083018561252c565b61270a6040830184612504565b949350505050565b5f60099050919050565b5f81905092915050565b5f819050919050565b61273881612488565b82525050565b5f612749838361272f565b60208301905092915050565b5f602082019050919050565b61276a81612712565b612774818461271c565b925061277f82612726565b805f5b838110156127af578151612796878261273e565b96506127a183612755565b925050600181019050612782565b505050505050565b5f610120820190506127cb5f830184612761565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061281557607f821691505b602082108103612828576128276127d1565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61286582612488565b915061287083612488565b925082820261287e81612488565b915082820484148315176128955761289461282e565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6128d382612488565b91506128de83612488565b9250826128ee576128ed61289c565b5b828204905092915050565b5f61290382612488565b915061290e83612488565b92508282019050808211156129265761292561282e565b5b92915050565b7f656d657267656e637920636c61696d206e6f7420616c6c6f77656420756e74695f8201527f6c2031206461792061667465722074686520626f6e64696e6720706572696f6460208201527f20656e6473000000000000000000000000000000000000000000000000000000604082015250565b5f6129ac60458361238a565b91506129b78261292c565b606082019050919050565b5f6020820190508181035f8301526129d9816129a0565b9050919050565b7f6c697175696469747920686173206265656e206465706c6f79656420737563635f8201527f657366756c6c792c20656d657267656e637920636c61696d2077696c6c206e6560208201527f76657220626520706f737369626c650000000000000000000000000000000000604082015250565b5f612a60604f8361238a565b9150612a6b826129e0565b606082019050919050565b5f6020820190508181035f830152612a8d81612a54565b9050919050565b7f416c726561647920636c61696d656400000000000000000000000000000000005f82015250565b5f612ac8600f8361238a565b9150612ad382612a94565b602082019050919050565b5f6020820190508181035f830152612af581612abc565b9050919050565b5f604082019050612b0f5f83018561252c565b612b1c602083018461252c565b9392505050565b7f426f6e64696e6720706572696f642068617320656e64656400000000000000005f82015250565b5f612b5760188361238a565b9150612b6282612b23565b602082019050919050565b5f6020820190508181035f830152612b8481612b4b565b9050919050565b7f43616e206f6e6c7920626f6e64206f6e636500000000000000000000000000005f82015250565b5f612bbf60128361238a565b9150612bca82612b8b565b602082019050919050565b5f6020820190508181035f830152612bec81612bb3565b9050919050565b7f43616e6e6f7420626f6e64207a65726f206574680000000000000000000000005f82015250565b5f612c2760148361238a565b9150612c3282612bf3565b602082019050919050565b5f6020820190508181035f830152612c5481612c1b565b9050919050565b5f612c6582612488565b9150612c7083612488565b9250828203905081811115612c8857612c8761282e565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612ce860258361238a565b9150612cf382612c8e565b604082019050919050565b5f6020820190508181035f830152612d1581612cdc565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612da360248361238a565b9150612dae82612d49565b604082019050919050565b5f6020820190508181035f830152612dd081612d97565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612e3160228361238a565b9150612e3c82612dd7565b604082019050919050565b5f6020820190508181035f830152612e5e81612e25565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612e99601d8361238a565b9150612ea482612e65565b602082019050919050565b5f6020820190508181035f830152612ec681612e8d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612f2760258361238a565b9150612f3282612ecd565b604082019050919050565b5f6020820190508181035f830152612f5481612f1b565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612fb560238361238a565b9150612fc082612f5b565b604082019050919050565b5f6020820190508181035f830152612fe281612fa9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61304360268361238a565b915061304e82612fe9565b604082019050919050565b5f6020820190508181035f83015261307081613037565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6130ab601f8361238a565b91506130b682613077565b602082019050919050565b5f6020820190508181035f8301526130d88161309f565b9050919050565b7f426f6e64696e6720706572696f64206973206e6f74206f7665722079657400005f82015250565b5f613113601e8361238a565b915061311e826130df565b602082019050919050565b5f6020820190508181035f83015261314081613107565b9050919050565b7f6c69717569646974792068617320616c7265616479206265656e206465706c6f5f8201527f7965640000000000000000000000000000000000000000000000000000000000602082015250565b5f6131a160238361238a565b91506131ac82613147565b604082019050919050565b5f6020820190508181035f8301526131ce81613195565b9050919050565b5f819050919050565b5f6131f86131f36131ee846131d5565b612669565b612488565b9050919050565b613208816131de565b82525050565b5f60c0820190506132215f8301896125d8565b61322e602083018861252c565b61323b60408301876131ff565b61324860608301866131ff565b61325560808301856125d8565b61326260a083018461252c565b979650505050505050565b5f8151905061327b81612491565b92915050565b5f805f606084860312156132985761329761242a565b5b5f6132a58682870161326d565b93505060206132b68682870161326d565b92505060406132c78682870161326d565b9150509250925092565b5f815190506132df8161245e565b92915050565b5f602082840312156132fa576132f961242a565b5b5f613307848285016132d1565b91505092915050565b5f6040820190506133235f8301856125d8565b61333060208301846125d8565b9392505050565b5f60608201905061334a5f8301866125d8565b61335760208301856125d8565b61336460408301846125d8565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f6133a0601f8361238a565b91506133ab8261336c565b602082019050919050565b5f6020820190508181035f8301526133cd81613394565b905091905056fea2646970667358221220cc48df732762e09e1ace060f686be6e828e6723d0537dd8922f84959562f17f464736f6c63430008140033000000000000000000000000000000000000000000000000000000000013c68000000000000000000000000036cd5ec81abeb77a1246d97a19209e5c6c39f4880000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x608060405260043610610203575f3560e01c80637b4fb68011610117578063c31c6fb91161009f578063dd62ed3e1161006e578063dd62ed3e14610729578063f011bb9c14610765578063f887ea401461078f578063fe10d774146107b9578063ffdd5cf1146107f757610203565b8063c31c6fb914610681578063c4f0cc82146106ab578063c816841b146106d5578063d545e0a2146106ff57610203565b806395d89b41116100e657806395d89b411461058b5780639c5913cc146105b5578063a457c2d7146105df578063a9059cbb1461061b578063aaf5eb681461065757610203565b80637b4fb680146104d15780638d427e25146104fb5780638ea4297614610525578063902d55a51461056157610203565b806336e9332d1161019a5780634d8d9e92116101695780634d8d9e92146104215780634e71d92d1461044b57806364c9ec6f1461046157806367fc6dea1461046b57806370a082311461049557610203565b806336e9332d1461036757806339509351146103915780633ccfbabf146103cd57806344d96e95146103f757610203565b806318160ddd116101d657806318160ddd146102c157806323b872dd146102eb5780632b8278ca14610327578063313ce5671461033d57610203565b806306fdde0314610207578063095ea7b3146102315780630cc678c91461026d57806316ce6cc114610297575b5f80fd5b348015610212575f80fd5b5061021b610833565b604051610228919061240a565b60405180910390f35b34801561023c575f80fd5b50610257600480360381019061025291906124bb565b6108c3565b6040516102649190612513565b60405180910390f35b348015610278575f80fd5b506102816108e5565b60405161028e919061253b565b60405180910390f35b3480156102a2575f80fd5b506102ab6108eb565b6040516102b8919061253b565b60405180910390f35b3480156102cc575f80fd5b506102d5610915565b6040516102e2919061253b565b60405180910390f35b3480156102f6575f80fd5b50610311600480360381019061030c9190612554565b61092a565b60405161031e9190612513565b60405180910390f35b348015610332575f80fd5b5061033b610958565b005b348015610348575f80fd5b50610351610b55565b60405161035e91906125bf565b60405180910390f35b348015610372575f80fd5b5061037b610b5d565b60405161038891906125e7565b60405180910390f35b34801561039c575f80fd5b506103b760048036038101906103b291906124bb565b610b82565b6040516103c49190612513565b60405180910390f35b3480156103d8575f80fd5b506103e1610bb8565b6040516103ee919061253b565b60405180910390f35b348015610402575f80fd5b5061040b610bbd565b604051610418919061253b565b60405180910390f35b34801561042c575f80fd5b50610435610bc3565b604051610442919061253b565b60405180910390f35b348015610456575f80fd5b5061045f610bc9565b005b610469610d72565b005b348015610476575f80fd5b5061047f610feb565b60405161048c919061253b565b60405180910390f35b3480156104a0575f80fd5b506104bb60048036038101906104b69190612600565b610fff565b6040516104c8919061253b565b60405180910390f35b3480156104dc575f80fd5b506104e5611044565b6040516104f2919061253b565b60405180910390f35b348015610506575f80fd5b5061050f61104a565b60405161051c919061253b565b60405180910390f35b348015610530575f80fd5b5061054b60048036038101906105469190612600565b611074565b604051610558919061253b565b60405180910390f35b34801561056c575f80fd5b506105756111ba565b604051610582919061253b565b60405180910390f35b348015610596575f80fd5b5061059f6111cc565b6040516105ac919061240a565b60405180910390f35b3480156105c0575f80fd5b506105c961125c565b6040516105d69190612513565b60405180910390f35b3480156105ea575f80fd5b50610605600480360381019061060091906124bb565b61126f565b6040516106129190612513565b60405180910390f35b348015610626575f80fd5b50610641600480360381019061063c91906124bb565b6112e4565b60405161064e9190612513565b60405180910390f35b348015610662575f80fd5b5061066b611306565b604051610678919061253b565b60405180910390f35b34801561068c575f80fd5b50610695611312565b6040516106a2919061253b565b60405180910390f35b3480156106b6575f80fd5b506106bf611318565b6040516106cc919061253b565b60405180910390f35b3480156106e0575f80fd5b506106e961131e565b6040516106f691906125e7565b60405180910390f35b34801561070a575f80fd5b50610713611343565b604051610720919061253b565b60405180910390f35b348015610734575f80fd5b5061074f600480360381019061074a919061262b565b611379565b60405161075c919061253b565b60405180910390f35b348015610770575f80fd5b506107796113fb565b604051610786919061253b565b60405180910390f35b34801561079a575f80fd5b506107a3611401565b6040516107b091906126c4565b60405180910390f35b3480156107c4575f80fd5b506107df60048036038101906107da9190612600565b611426565b6040516107ee939291906126dd565b60405180910390f35b348015610802575f80fd5b5061081d60048036038101906108189190612600565b611458565b60405161082a91906127b7565b60405180910390f35b606060038054610842906127fe565b80601f016020809104026020016040519081016040528092919081815260200182805461086e906127fe565b80156108b95780601f10610890576101008083540402835291602001916108b9565b820191905f5260205f20905b81548152906001019060200180831161089c57829003601f168201915b5050505050905090565b5f806108cd611665565b90506108da81858561166c565b600191505092915050565b600c5481565b606460146d057a6b5cf3493da72eb442bc0000610908919061285b565b61091291906128c9565b81565b5f6d057a6b5cf3493da72eb442bc0000905090565b5f80610934611665565b905061094185828561182f565b61094c8585856118ba565b60019150509392505050565b610960611b26565b62015180600c5461097191906128f9565b42116109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a9906129c2565b60405180910390fd5b601060149054906101000a900460ff1615610a02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f990612a76565b60405180910390fd5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806002015f9054906101000a900460ff1615610a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8a90612ade565b60405180910390fd5b6001816002015f6101000a81548160ff0219169083151502179055505f816001015490503373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610afa573d5f803e3d5ffd5b503373ffffffffffffffffffffffffffffffffffffffff167f07181ceaa5c61f1818da3a082bd8f1f5a85817f2f0ff49e19e3b6a8b30822f5582604051610b41919061253b565b60405180910390a25050610b53611b75565b565b5f6012905090565b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80610b8c611665565b9050610bad818585610b9e8589611379565b610ba891906128f9565b61166c565b600191505092915050565b600a81565b600f5481565b60075481565b610bd1611b26565b601060149054906101000a900460ff16610bee57610bed611b7f565b5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806002015f9054906101000a900460ff1615610c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7690612ade565b60405180910390fd5b6001816002015f6101000a81548160ff0219169083151502179055505f610ca533611074565b90505f6064605a8460010154610cbb919061285b565b610cc591906128c9565b9050610cd133836121e6565b3373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610d14573d5f803e3d5ffd5b503373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78383604051610d5d929190612afc565b60405180910390a2505050610d70611b75565b565b610d7a611b26565b5f600b5403610d8c57610d8b612334565b5b600c54421115610dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc890612b6d565b60405180910390fd5b5f600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015414610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90612bd5565b60405180910390fd5b5f3411610e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8c90612c3d565b60405180910390fd5b5f600e541115610ee4575f600e5442610eae9190612c5b565b9050600f5460075482610ec1919061285b565b610ecb91906128c9565b600d5f828254610edb91906128f9565b92505081905550505b6040518060600160405280600d5481526020013481526020015f1515815250600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff02191690831515021790555090505034600f5f828254610f8591906128f9565b9250508190555042600e819055503373ffffffffffffffffffffffffffffffffffffffff167fd0a009034e24a39106653c4903cf28b1947b8a9964d03206648e0f0a5de74a4634604051610fd9919061253b565b60405180910390a2610fe9611b75565b565b5f600b5442610ffa9190612c5b565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b600e5481565b606460286d057a6b5cf3493da72eb442bc0000611067919061285b565b61107191906128c9565b81565b5f80600f5403611086575f90506111b5565b5f600f54600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101546007546110d6611343565b6110e0919061285b565b6110ea919061285b565b6110f491906128c9565b90505f600a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154600d546111449190612c5b565b600a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015461118f919061285b565b9050670de0b6b3a764000082826111a691906128f9565b6111b091906128c9565b925050505b919050565b6d057a6b5cf3493da72eb442bc000081565b6060600480546111db906127fe565b80601f0160208091040260200160405190810160405280929190818152602001828054611207906127fe565b80156112525780601f1061122957610100808354040283529160200191611252565b820191905f5260205f20905b81548152906001019060200180831161123557829003601f168201915b5050505050905090565b601060149054906101000a900460ff1681565b5f80611279611665565b90505f6112868286611379565b9050838110156112cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c290612cfe565b60405180910390fd5b6112d8828686840361166c565b60019250505092915050565b5f806112ee611665565b90506112fb8185856118ba565b600191505092915050565b670de0b6b3a764000081565b60085481565b600b5481565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f42600c54101561136557600e54600c5461135e9190612c5b565b9050611376565b600e54426113739190612c5b565b90505b90565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600d5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16905083565b61146061235d565b61146861235d565b600f54815f6009811061147e5761147d612d1c565b5b602002018181525050600b548160016009811061149e5761149d612d1c565b5b602002018181525050600c54816002600981106114be576114bd612d1c565b5b602002018181525050600754816003600981106114de576114dd612d1c565b5b6020020181815250506114ef610915565b8160046009811061150357611502612d1c565b5b602002018181525050428160056009811061152157611520612d1c565b5b6020020181815250505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461165c57600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010154816006600981106115b2576115b1612d1c565b5b6020020181815250506115c483611074565b816007600981106115d8576115d7612d1c565b5b602002018181525050600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015f9054906101000a900460ff16611638575f61163b565b60015b60ff168160086009811061165257611651612d1c565b5b6020020181815250505b80915050919050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190612db9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f90612e47565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611822919061253b565b60405180910390a3505050565b5f61183a8484611379565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118b457818110156118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90612eaf565b60405180910390fd5b6118b3848484840361166c565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191f90612f3d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198d90612fcb565b60405180910390fd5b6119a1838383612353565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b90613059565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b0d919061253b565b60405180910390a3611b20848484612358565b50505050565b600260055403611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b62906130c1565b60405180910390fd5b6002600581905550565b6001600581905550565b600c544211611bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bba90613129565b60405180910390fd5b601060149054906101000a900460ff1615611c13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0a906131b7565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055505f6064600a600f54611c40919061285b565b611c4a91906128c9565b90505f606460286d057a6b5cf3493da72eb442bc0000611c6a919061285b565b611c7491906128c9565b606460146d057a6b5cf3493da72eb442bc0000611c91919061285b565b611c9b91906128c9565b6d057a6b5cf3493da72eb442bc0000611cb49190612c5b565b611cbe9190612c5b565b9050611cca30826121e6565b611cf63060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361166c565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198330845f805f426040518863ffffffff1660e01b8152600401611d5b9695949392919061320e565b60606040518083038185885af1158015611d77573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611d9c9190613281565b505050611df060105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16606460146d057a6b5cf3493da72eb442bc0000611de1919061285b565b611deb91906128c9565b6121e6565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e7f91906132e5565b90505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f1091906132e5565b90508073ffffffffffffffffffffffffffffffffffffffff1663e6a4390530846040518363ffffffff1660e01b8152600401611f4d929190613310565b602060405180830381865afa158015611f68573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f8c91906132e5565b60095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f73ffffffffffffffffffffffffffffffffffffffff1660095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036120da578073ffffffffffffffffffffffffffffffffffffffff1663c9c6539630846040518363ffffffff1660e01b815260040161205a929190613310565b6020604051808303815f875af1158015612076573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061209a91906132e5565b60095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639d5c9fa460095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168460065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b815260040161217a93929190613337565b5f604051808303815f87803b158015612191575f80fd5b505af11580156121a3573d5f803e3d5ffd5b505050507f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b83856040516121d8929190612afc565b60405180910390a150505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224b906133b6565b60405180910390fd5b61225f5f8383612353565b8060025f82825461227091906128f9565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161231d919061253b565b60405180910390a36123305f8383612358565b5050565b42600b81905550600854600b5461234b91906128f9565b600c81905550565b505050565b505050565b604051806101200160405280600990602082028036833780820191505090505090565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156123b757808201518184015260208101905061239c565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6123dc82612380565b6123e6818561238a565b93506123f681856020860161239a565b6123ff816123c2565b840191505092915050565b5f6020820190508181035f83015261242281846123d2565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6124578261242e565b9050919050565b6124678161244d565b8114612471575f80fd5b50565b5f813590506124828161245e565b92915050565b5f819050919050565b61249a81612488565b81146124a4575f80fd5b50565b5f813590506124b581612491565b92915050565b5f80604083850312156124d1576124d061242a565b5b5f6124de85828601612474565b92505060206124ef858286016124a7565b9150509250929050565b5f8115159050919050565b61250d816124f9565b82525050565b5f6020820190506125265f830184612504565b92915050565b61253581612488565b82525050565b5f60208201905061254e5f83018461252c565b92915050565b5f805f6060848603121561256b5761256a61242a565b5b5f61257886828701612474565b935050602061258986828701612474565b925050604061259a868287016124a7565b9150509250925092565b5f60ff82169050919050565b6125b9816125a4565b82525050565b5f6020820190506125d25f8301846125b0565b92915050565b6125e18161244d565b82525050565b5f6020820190506125fa5f8301846125d8565b92915050565b5f602082840312156126155761261461242a565b5b5f61262284828501612474565b91505092915050565b5f80604083850312156126415761264061242a565b5b5f61264e85828601612474565b925050602061265f85828601612474565b9150509250929050565b5f819050919050565b5f61268c6126876126828461242e565b612669565b61242e565b9050919050565b5f61269d82612672565b9050919050565b5f6126ae82612693565b9050919050565b6126be816126a4565b82525050565b5f6020820190506126d75f8301846126b5565b92915050565b5f6060820190506126f05f83018661252c565b6126fd602083018561252c565b61270a6040830184612504565b949350505050565b5f60099050919050565b5f81905092915050565b5f819050919050565b61273881612488565b82525050565b5f612749838361272f565b60208301905092915050565b5f602082019050919050565b61276a81612712565b612774818461271c565b925061277f82612726565b805f5b838110156127af578151612796878261273e565b96506127a183612755565b925050600181019050612782565b505050505050565b5f610120820190506127cb5f830184612761565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061281557607f821691505b602082108103612828576128276127d1565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61286582612488565b915061287083612488565b925082820261287e81612488565b915082820484148315176128955761289461282e565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6128d382612488565b91506128de83612488565b9250826128ee576128ed61289c565b5b828204905092915050565b5f61290382612488565b915061290e83612488565b92508282019050808211156129265761292561282e565b5b92915050565b7f656d657267656e637920636c61696d206e6f7420616c6c6f77656420756e74695f8201527f6c2031206461792061667465722074686520626f6e64696e6720706572696f6460208201527f20656e6473000000000000000000000000000000000000000000000000000000604082015250565b5f6129ac60458361238a565b91506129b78261292c565b606082019050919050565b5f6020820190508181035f8301526129d9816129a0565b9050919050565b7f6c697175696469747920686173206265656e206465706c6f79656420737563635f8201527f657366756c6c792c20656d657267656e637920636c61696d2077696c6c206e6560208201527f76657220626520706f737369626c650000000000000000000000000000000000604082015250565b5f612a60604f8361238a565b9150612a6b826129e0565b606082019050919050565b5f6020820190508181035f830152612a8d81612a54565b9050919050565b7f416c726561647920636c61696d656400000000000000000000000000000000005f82015250565b5f612ac8600f8361238a565b9150612ad382612a94565b602082019050919050565b5f6020820190508181035f830152612af581612abc565b9050919050565b5f604082019050612b0f5f83018561252c565b612b1c602083018461252c565b9392505050565b7f426f6e64696e6720706572696f642068617320656e64656400000000000000005f82015250565b5f612b5760188361238a565b9150612b6282612b23565b602082019050919050565b5f6020820190508181035f830152612b8481612b4b565b9050919050565b7f43616e206f6e6c7920626f6e64206f6e636500000000000000000000000000005f82015250565b5f612bbf60128361238a565b9150612bca82612b8b565b602082019050919050565b5f6020820190508181035f830152612bec81612bb3565b9050919050565b7f43616e6e6f7420626f6e64207a65726f206574680000000000000000000000005f82015250565b5f612c2760148361238a565b9150612c3282612bf3565b602082019050919050565b5f6020820190508181035f830152612c5481612c1b565b9050919050565b5f612c6582612488565b9150612c7083612488565b9250828203905081811115612c8857612c8761282e565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612ce860258361238a565b9150612cf382612c8e565b604082019050919050565b5f6020820190508181035f830152612d1581612cdc565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612da360248361238a565b9150612dae82612d49565b604082019050919050565b5f6020820190508181035f830152612dd081612d97565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612e3160228361238a565b9150612e3c82612dd7565b604082019050919050565b5f6020820190508181035f830152612e5e81612e25565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612e99601d8361238a565b9150612ea482612e65565b602082019050919050565b5f6020820190508181035f830152612ec681612e8d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612f2760258361238a565b9150612f3282612ecd565b604082019050919050565b5f6020820190508181035f830152612f5481612f1b565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612fb560238361238a565b9150612fc082612f5b565b604082019050919050565b5f6020820190508181035f830152612fe281612fa9565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61304360268361238a565b915061304e82612fe9565b604082019050919050565b5f6020820190508181035f83015261307081613037565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6130ab601f8361238a565b91506130b682613077565b602082019050919050565b5f6020820190508181035f8301526130d88161309f565b9050919050565b7f426f6e64696e6720706572696f64206973206e6f74206f7665722079657400005f82015250565b5f613113601e8361238a565b915061311e826130df565b602082019050919050565b5f6020820190508181035f83015261314081613107565b9050919050565b7f6c69717569646974792068617320616c7265616479206265656e206465706c6f5f8201527f7965640000000000000000000000000000000000000000000000000000000000602082015250565b5f6131a160238361238a565b91506131ac82613147565b604082019050919050565b5f6020820190508181035f8301526131ce81613195565b9050919050565b5f819050919050565b5f6131f86131f36131ee846131d5565b612669565b612488565b9050919050565b613208816131de565b82525050565b5f60c0820190506132215f8301896125d8565b61322e602083018861252c565b61323b60408301876131ff565b61324860608301866131ff565b61325560808301856125d8565b61326260a083018461252c565b979650505050505050565b5f8151905061327b81612491565b92915050565b5f805f606084860312156132985761329761242a565b5b5f6132a58682870161326d565b93505060206132b68682870161326d565b92505060406132c78682870161326d565b9150509250925092565b5f815190506132df8161245e565b92915050565b5f602082840312156132fa576132f961242a565b5b5f613307848285016132d1565b91505092915050565b5f6040820190506133235f8301856125d8565b61333060208301846125d8565b9392505050565b5f60608201905061334a5f8301866125d8565b61335760208301856125d8565b61336460408301846125d8565b949350505050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f6133a0601f8361238a565b91506133ab8261336c565b602082019050919050565b5f6020820190508181035f8301526133cd81613394565b905091905056fea2646970667358221220cc48df732762e09e1ace060f686be6e828e6723d0537dd8922f84959562f17f464736f6c63430008140033

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

000000000000000000000000000000000000000000000000000000000013c68000000000000000000000000036cd5ec81abeb77a1246d97a19209e5c6c39f4880000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _bondingPeriod (uint256): 1296000
Arg [1] : _farm (address): 0x36cd5EC81ABeb77A1246D97a19209E5c6C39F488
Arg [2] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000013c680
Arg [1] : 00000000000000000000000036cd5ec81abeb77a1246d97a19209e5c6c39f488
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

40% distributed through a unique ETH bonding contract where users recieved 90% of bonds back along with their share of $RICE. Due to the success of this mechanism, $RICE will become a utility token to receive rewards for a platform that allows for other tokens to use the same distribution mechanism.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.