ETH Price: $3,089.98 (-2.43%)
 

Overview

ETH Balance

0.005000000000002491 ETH

Eth Value

$15.45 (@ $3,089.98/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim215783852025-01-08 7:53:2320 days ago1736322803IN
Tsunami Finance: Staking Contract
0 ETH0.000588495.41825391
Withdraw215783832025-01-08 7:52:5920 days ago1736322779IN
Tsunami Finance: Staking Contract
0 ETH0.001313415.41145391
Withdraw212206982024-11-19 8:51:4770 days ago1732006307IN
Tsunami Finance: Staking Contract
0 ETH0.002108298.68642501
Withdraw210772852024-10-30 8:31:5990 days ago1730277119IN
Tsunami Finance: Staking Contract
0 ETH0.0026055410.7351846
Claim210772852024-10-30 8:31:5990 days ago1730277119IN
Tsunami Finance: Staking Contract
0 ETH0.0011445210.7351846
Withdraw210421982024-10-25 11:01:2395 days ago1729854083IN
Tsunami Finance: Staking Contract
0 ETH0.001541126.34964438
Withdraw207483872024-09-14 10:55:47136 days ago1726311347IN
Tsunami Finance: Staking Contract
0 ETH0.000404591.6669696
Withdraw206433222024-08-30 18:55:35151 days ago1725044135IN
Tsunami Finance: Staking Contract
0 ETH0.000388271.59972592
Withdraw206433192024-08-30 18:54:59151 days ago1725044099IN
Tsunami Finance: Staking Contract
0 ETH0.000395851.58702223
Withdraw205841692024-08-22 12:33:11159 days ago1724329991IN
Tsunami Finance: Staking Contract
0 ETH0.000616992.32489425
Withdraw205841672024-08-22 12:32:47159 days ago1724329967IN
Tsunami Finance: Staking Contract
0 ETH0.000652462.45852311
Claim205841632024-08-22 12:31:59159 days ago1724329919IN
Tsunami Finance: Staking Contract
0 ETH0.000255962.28013065
Claim205841532024-08-22 12:29:59159 days ago1724329799IN
Tsunami Finance: Staking Contract
0 ETH0.000259152.30853658
Withdraw204044062024-07-28 10:19:47184 days ago1722161987IN
Tsunami Finance: Staking Contract
0 ETH0.000722992.87235807
Withdraw204044012024-07-28 10:18:47184 days ago1722161927IN
Tsunami Finance: Staking Contract
0 ETH0.000749312.82348064
Withdraw203961232024-07-27 6:34:47185 days ago1722062087IN
Tsunami Finance: Staking Contract
0 ETH0.000552712.08268431
Claim188723192023-12-26 20:43:23399 days ago1703623403IN
Tsunami Finance: Staking Contract
0 ETH0.0018445816.43153633
Withdraw188723152023-12-26 20:42:35399 days ago1703623355IN
Tsunami Finance: Staking Contract
0 ETH0.0041973316.67549444
Claim160074822022-11-19 23:55:59801 days ago1668902159IN
Tsunami Finance: Staking Contract
0 ETH0.0012505711.14011992
Withdraw130677662021-08-21 9:17:391256 days ago1629537459IN
Tsunami Finance: Staking Contract
0 ETH0.0063014825.03499351
Withdraw130429232021-08-17 13:14:331260 days ago1629206073IN
Tsunami Finance: Staking Contract
0 ETH0.0085353233.90977804
Withdraw130168482021-08-13 12:39:521264 days ago1628858392IN
Tsunami Finance: Staking Contract
0 ETH0.0113555345.11411552
Withdraw130041562021-08-11 13:25:551266 days ago1628688355IN
Tsunami Finance: Staking Contract
0 ETH0.011308742.61214437
Claim130040522021-08-11 13:04:461266 days ago1628687086IN
Tsunami Finance: Staking Contract
0 ETH0.0053513646.83538453
Withdraw129454692021-08-02 10:40:131275 days ago1627900813IN
Tsunami Finance: Staking Contract
0 ETH0.0050475222
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
215783832025-01-08 7:52:5920 days ago1736322779
Tsunami Finance: Staking Contract
0.00535065 ETH
215783832025-01-08 7:52:5920 days ago1736322779
Tsunami Finance: Staking Contract
0.00535065 ETH
212206982024-11-19 8:51:4770 days ago1732006307
Tsunami Finance: Staking Contract
0.0053596 ETH
212206982024-11-19 8:51:4770 days ago1732006307
Tsunami Finance: Staking Contract
0.0053596 ETH
210772852024-10-30 8:31:5990 days ago1730277119
Tsunami Finance: Staking Contract
0.02480928 ETH
210772852024-10-30 8:31:5990 days ago1730277119
Tsunami Finance: Staking Contract
0.02480928 ETH
210421982024-10-25 11:01:2395 days ago1729854083
Tsunami Finance: Staking Contract
0.00476351 ETH
210421982024-10-25 11:01:2395 days ago1729854083
Tsunami Finance: Staking Contract
0.00476351 ETH
207483872024-09-14 10:55:47136 days ago1726311347
Tsunami Finance: Staking Contract
0.0053611 ETH
207483872024-09-14 10:55:47136 days ago1726311347
Tsunami Finance: Staking Contract
0.0053611 ETH
206433222024-08-30 18:55:35151 days ago1725044135
Tsunami Finance: Staking Contract
0.00476319 ETH
206433222024-08-30 18:55:35151 days ago1725044135
Tsunami Finance: Staking Contract
0.00476319 ETH
206433192024-08-30 18:54:59151 days ago1725044099
Tsunami Finance: Staking Contract
0.00536074 ETH
206433192024-08-30 18:54:59151 days ago1725044099
Tsunami Finance: Staking Contract
0.00536074 ETH
205841692024-08-22 12:33:11159 days ago1724329991
Tsunami Finance: Staking Contract
0.00477065 ETH
205841692024-08-22 12:33:11159 days ago1724329991
Tsunami Finance: Staking Contract
0.00477065 ETH
205841672024-08-22 12:32:47159 days ago1724329967
Tsunami Finance: Staking Contract
0.00536913 ETH
205841672024-08-22 12:32:47159 days ago1724329967
Tsunami Finance: Staking Contract
0.00536913 ETH
204044062024-07-28 10:19:47184 days ago1722161987
Tsunami Finance: Staking Contract
0.00477364 ETH
204044062024-07-28 10:19:47184 days ago1722161987
Tsunami Finance: Staking Contract
0.00477364 ETH
204044012024-07-28 10:18:47184 days ago1722161927
Tsunami Finance: Staking Contract
0.00537249 ETH
204044012024-07-28 10:18:47184 days ago1722161927
Tsunami Finance: Staking Contract
0.00537249 ETH
203961232024-07-27 6:34:47185 days ago1722062087
Tsunami Finance: Staking Contract
0.00477364 ETH
203961232024-07-27 6:34:47185 days ago1722062087
Tsunami Finance: Staking Contract
0.00477364 ETH
188723152023-12-26 20:42:35399 days ago1703623355
Tsunami Finance: Staking Contract
0.00632412 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LordNami

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : LordNami.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.6.12;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./uniswapv2/interfaces/IUniswapV2Factory.sol";
import "./uniswapv2/interfaces/IUniswapV2Pair.sol";
import "./uniswapv2/interfaces/IUniswapV2Router02.sol";
import "./uniswapv2/interfaces/IWETH.sol";
import "./Nami.sol";

contract LordNami is ReentrancyGuard {

    using SafeMath for uint256;
    using Address for address;
    using SafeERC20 for IERC20;

    event Staked(address indexed from, uint256 amountETH, uint256 amountLP);
    event Withdrawn(address indexed to, uint256 amountETH, uint256 amountLP);
    event Claimed(address indexed to, uint256 amount);
    event Halving(uint256 amount);
    event Received(address indexed from, uint256 amount);

    Nami public token;
    IUniswapV2Factory public factory;
    IUniswapV2Router02 public router;
    address public weth;
    address payable public treasury;
    address public pairAddress;

    struct AccountInfo {
        // Staked LP token balance
        uint256 balance;
        uint256 peakBalance;
        uint256 withdrawTimestamp;
        uint256 reward;
        uint256 rewardPerTokenPaid;
    }
    mapping(address => AccountInfo) public accountInfos;

    // Staked LP token total supply
    uint256 private _totalSupply = 0;

    uint256 public constant HALVING_DURATION = 7 days;
    uint256 public rewardAllocation = 1500 * 1e18;
    uint256 public halvingTimestamp = 0;
    uint256 public lastUpdateTimestamp = 0;

    uint256 public rewardRate = 0;
    uint256 public rewardPerTokenStored = 0;

    // Farming will be open on this timestamp
    // Date and time (GMT): Monday, October 26, 2020 3:00:00 PM
    uint256 public farmingStartTimestamp = 1603724400;
    bool public farmingStarted = false;

    // Max 10% / day LP withdraw
    uint256 public constant WITHDRAW_LIMIT = 10;

    // Burn address
    address constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // Dev decided to launch without whitelist but since it has been coded and tested, so dev will be leave it here.
    // Whitelisted address
    mapping (address => bool) public whitelists;
    // Whitelist deposited balance
    mapping (address => uint256) public whitelistBalance;
    // End period for whitelist advantage
    uint256 public whitelistEndTimestamp = 0;
    // Max stake for whitelist
    uint256 public constant WHITELIST_STAKE_LIMIT = 3 ether;
    // Whitelist advantage duration (reduced to 1 minutes since we dont have whitelist)
    uint256 public constant WHITELIST_DURATION = 1 minutes;

    constructor(address _routerAddress, address[] memory _whitelists) public {
        token = new Nami(address(this));

        router = IUniswapV2Router02(_routerAddress);
        factory = IUniswapV2Factory(router.factory());
        weth = router.WETH();
        treasury = msg.sender;
        pairAddress = factory.createPair(address(token), weth);

        // Calc reward rate
        rewardRate = rewardAllocation.div(HALVING_DURATION);

        // Init whitelist
        _setupWhitelists(_whitelists);
        whitelistEndTimestamp = farmingStartTimestamp.add(WHITELIST_DURATION);
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
    }

    function stake() external payable nonReentrant {
        _checkFarming();
        _updateReward(msg.sender);
        _halving();

        require(msg.value > 0, 'Cannot stake 0');
        require(!address(msg.sender).isContract(), 'Please use your individual account');

        // If we are still in whitelist duration
        if (whitelistEndTimestamp >= block.timestamp) {
            require(whitelists[msg.sender], 'Only whitelisted address can stake right now');
            whitelistBalance[msg.sender] = whitelistBalance[msg.sender].add(msg.value);
            require(whitelistBalance[msg.sender] <= WHITELIST_STAKE_LIMIT, 'Cannot stake more than allowed in whitelist period');
        }

        // 10% compensation fee
        // since dev doesn't hold any initial supply
        uint256 fee = msg.value.div(10);
        uint256 amount = msg.value.sub(fee);
        treasury.transfer(fee);

        uint256 ethAmount = IERC20(weth).balanceOf(pairAddress);
        uint256 tokenAmount = IERC20(token).balanceOf(pairAddress);

        // If eth amount = 0 then set initial price to 1 eth = 2 nami
        uint256 amountTokenDesired = ethAmount == 0 ? (amount * 2) : amount.mul(tokenAmount).div(ethAmount);
        // Mint borrowed nami
        token.mint(address(this), amountTokenDesired);

        // Add liquidity in uniswap
        uint256 amountETHDesired = amount;
        IERC20(token).approve(address(router), amountTokenDesired);
        (,, uint256 liquidity) = router.addLiquidityETH{value : amountETHDesired}(address(token), amountTokenDesired, 1, 1, address(this), block.timestamp + 1 days);

        // Add LP token to total supply
        _totalSupply = _totalSupply.add(liquidity);

        // Add to balance
        accountInfos[msg.sender].balance = accountInfos[msg.sender].balance.add(liquidity);
        // Set peak balance
        if (accountInfos[msg.sender].balance > accountInfos[msg.sender].peakBalance) {
            accountInfos[msg.sender].peakBalance = accountInfos[msg.sender].balance;
        }

        // Set stake timestamp as withdraw timestamp
        // to prevent withdraw immediately after first staking
        if (accountInfos[msg.sender].withdrawTimestamp == 0) {
            accountInfos[msg.sender].withdrawTimestamp = block.timestamp;
        }

        emit Staked(msg.sender, msg.value, liquidity);
    }

    function withdraw() external nonReentrant {
        _checkFarming();
        _updateReward(msg.sender);
        _halving();

        require(accountInfos[msg.sender].withdrawTimestamp + 1 days <= block.timestamp, 'You must wait 1 day since your last withdraw or stake');
        require(accountInfos[msg.sender].balance > 0, 'Cannot withdraw 0');

        // Limit withdraw LP token
        uint256 amount = accountInfos[msg.sender].peakBalance.div(WITHDRAW_LIMIT);
        if (accountInfos[msg.sender].balance < amount) {
            amount = accountInfos[msg.sender].balance;
        }

        // Reduce total supply
        _totalSupply = _totalSupply.sub(amount);
        // Reduce balance
        accountInfos[msg.sender].balance = accountInfos[msg.sender].balance.sub(amount);
        // Set timestamp
        accountInfos[msg.sender].withdrawTimestamp = block.timestamp;

        // Remove liquidity in uniswap
        IERC20(pairAddress).approve(address(router), amount);
        (uint256 tokenAmount, uint256 ethAmount) = router.removeLiquidity(address(token), weth, amount, 0, 0, address(this), block.timestamp + 1 days);

        // Burn borrowed nami
        token.burn(address(this), tokenAmount);
        // Withdraw ETH and send to sender
        IWETH(weth).withdraw(ethAmount);
        msg.sender.transfer(ethAmount);

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

    function claim() external nonReentrant {
        _checkFarming();
        _updateReward(msg.sender);
        _halving();

        uint256 reward = accountInfos[msg.sender].reward;
        require(reward > 0, 'There is no reward to claim');

        if (reward > 0) {
            // Reduce first
            accountInfos[msg.sender].reward = 0;
            // Apply tax
            uint256 taxDenominator = claimTaxDenominator();
            uint256 tax = taxDenominator > 0 ? reward.div(taxDenominator) : 0;
            uint256 net = reward.sub(tax);

            // Send reward
            token.mint(msg.sender, net);
            if (tax > 0) {
                // Burn taxed token
                token.mint(BURN_ADDRESS, tax);
            }

            emit Claimed(msg.sender, reward);
        }
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return accountInfos[account].balance;
    }

    function burnedTokenAmount() public view returns (uint256) {
        return token.balanceOf(BURN_ADDRESS);
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }

        return rewardPerTokenStored
        .add(
            lastRewardTimestamp()
            .sub(lastUpdateTimestamp)
            .mul(rewardRate)
            .mul(1e18)
            .div(_totalSupply)
        );
    }

    function lastRewardTimestamp() public view returns (uint256) {
        return Math.min(block.timestamp, halvingTimestamp);
    }

    function rewardEarned(address account) public view returns (uint256) {
        return accountInfos[account].balance.mul(
            rewardPerToken().sub(accountInfos[account].rewardPerTokenPaid)
        )
        .div(1e18)
        .add(accountInfos[account].reward);
    }

    // Token price in eth
    function tokenPrice() public view returns (uint256) {
        uint256 ethAmount = IERC20(weth).balanceOf(pairAddress);
        uint256 tokenAmount = IERC20(token).balanceOf(pairAddress);
        return tokenAmount > 0 ?
        // Current price
        ethAmount.mul(1e18).div(tokenAmount) :
        // Initial price
        (uint256(1e18).div(2));
    }

    function claimTaxDenominator() public view returns (uint256) {
        if (block.timestamp < farmingStartTimestamp + 1 days) {
            return 4;
        } else if (block.timestamp < farmingStartTimestamp + 2 days) {
            return 5;
        } else if (block.timestamp < farmingStartTimestamp + 3 days) {
            return 10;
        } else if (block.timestamp < farmingStartTimestamp + 4 days) {
            return 20;
        } else {
            return 0;
        }
    }

    function _updateReward(address account) internal {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTimestamp = lastRewardTimestamp();
        if (account != address(0)) {
            accountInfos[account].reward = rewardEarned(account);
            accountInfos[account].rewardPerTokenPaid = rewardPerTokenStored;
        }
    }

    // Do halving when timestamp reached
    function _halving() internal {
        if (block.timestamp >= halvingTimestamp) {
            rewardAllocation = rewardAllocation.div(2);

            rewardRate = rewardAllocation.div(HALVING_DURATION);
            halvingTimestamp = halvingTimestamp.add(HALVING_DURATION);

            _updateReward(msg.sender);
            emit Halving(rewardAllocation);
        }
    }

    // Check if farming is started
    function _checkFarming() internal {
        require(farmingStartTimestamp <= block.timestamp, 'Please wait until farming started');
        if (!farmingStarted) {
            farmingStarted = true;
            halvingTimestamp = block.timestamp.add(HALVING_DURATION);
            lastUpdateTimestamp = block.timestamp;
        }
    }

    function _setupWhitelists(address[] memory addresses) internal {
        for (uint256 i = 0; i < addresses.length; i++) {
            whitelists[addresses[i]] = true;
        }
    }
}

File 2 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

File 3 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

File 4 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

File 6 of 20 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

File 7 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 20 : IUniswapV2Factory.sol
// SPDX-License-Identifier: Unlicensed

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 migrator() 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;
    function setMigrator(address) external;
}

File 9 of 20 : IUniswapV2Pair.sol
// SPDX-License-Identifier: Unlicensed

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 10 of 20 : IUniswapV2Router02.sol
// SPDX-License-Identifier: Unlicensed

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 11 of 20 : IUniswapV2Router01.sol
// SPDX-License-Identifier: Unlicensed

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 12 of 20 : IWETH.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 13 of 20 : Nami.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.6.12;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

contract Nami is ERC20 {

    address minter;

    modifier onlyMinter {
        require(msg.sender == minter, 'Only minter can call this function.');
        _;
    }

    constructor(address _minter) public ERC20('Tsunami', 'NAMI') {
        minter = _minter;
    }

    function mint(address account, uint256 amount) external onlyMinter {
        _mint(account, amount);
    }

    function burn(address account, uint256 amount) external onlyMinter {
        _burn(account, amount);
    }

}

File 14 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

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

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

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}

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

pragma solidity ^0.6.0;

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

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

File 16 of 20 : IERC20.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity >=0.5.0;

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

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view 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);
}

File 17 of 20 : IUniswapV2Callee.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity >=0.5.0;

interface IUniswapV2Callee {
    function uniswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

File 18 of 20 : IUniswapV2ERC20.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity >=0.5.0;

interface IUniswapV2ERC20 {
    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;
}

File 19 of 20 : MathUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16 <0.7.0;

import '@openzeppelin/contracts/math/SafeMath.sol';

library MathUtils {
    using SafeMath for uint256;

    /// @notice Calculates the square root of a given value.
    function sqrt(uint256 x) internal pure returns (uint256 y) {
        uint256 z = (x + 1) / 2;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }

    /// @notice Rounds a division result.
    function roundedDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, 'div by 0');

        uint256 halfB = (b.mod(2) == 0) ? (b.div(2)) : (b.div(2).add(1));
        return (a.mod(b) >= halfB) ? (a.div(b).add(1)) : (a.div(b));
    }
}

File 20 of 20 : WETH9.sol
// SPDX-License-Identifier: Unlicensed
pragma solidity >0.5.0;

contract WETH9 {
    string public name = "Wrapped Ether";
    string public symbol = "WETH";
    uint8  public decimals = 18;

    event  Approval(address indexed src, address indexed guy, uint wad);
    event  Transfer(address indexed src, address indexed dst, uint wad);
    event  Deposit(address indexed dst, uint wad);
    event  Withdrawal(address indexed src, uint wad);

    mapping(address => uint)                       public  balanceOf;
    mapping(address => mapping(address => uint))  public  allowance;

    receive() external payable {
        deposit();
    }

    function deposit() public payable {
        balanceOf[msg.sender] += msg.value;
        Deposit(msg.sender, msg.value);
    }

    function withdraw(uint wad) public {
        require(balanceOf[msg.sender] >= wad);
        balanceOf[msg.sender] -= wad;
        msg.sender.transfer(wad);
        Withdrawal(msg.sender, wad);
    }

    function totalSupply() public view returns (uint) {
        return address(this).balance;
    }

    function approve(address guy, uint wad) public returns (bool) {
        allowance[msg.sender][guy] = wad;
        Approval(msg.sender, guy, wad);
        return true;
    }

    function transfer(address dst, uint wad) public returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

    function transferFrom(address src, address dst, uint wad)
    public
    returns (bool)
    {
        require(balanceOf[src] >= wad);

        if (src != msg.sender && allowance[src][msg.sender] != uint(- 1)) {
            require(allowance[src][msg.sender] >= wad);
            allowance[src][msg.sender] -= wad;
        }

        balanceOf[src] -= wad;
        balanceOf[dst] += wad;

        Transfer(src, dst, wad);

        return true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_routerAddress","type":"address"},{"internalType":"address[]","name":"_whitelists","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Halving","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLP","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLP","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"HALVING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_STAKE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountInfos","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"peakBalance","type":"uint256"},{"internalType":"uint256","name":"withdrawTimestamp","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnedTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTaxDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"rewardEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract Nami","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","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":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260006008819055685150ae84a8cdf00000600955600a819055600b819055600c819055600d819055635f96e470600e55600f805460ff191690556012553480156200004e57600080fd5b5060405162002f7d38038062002f7d833981810160405260408110156200007457600080fd5b8151602083018051604051929492938301929190846401000000008211156200009c57600080fd5b908301906020820185811115620000b257600080fd5b8251866020820283011164010000000082111715620000d057600080fd5b82525081516020918201928201910280838360005b83811015620000ff578181015183820152602001620000e5565b50505050905001604052505050600160008190555030604051620001239062000545565b6001600160a01b03909116815260405190819003602001906000f08015801562000151573d6000803e3d6000fd5b50600180546001600160a01b03199081166001600160a01b03938416179091556003805490911684831617908190556040805163c45a015560e01b81529051919092169163c45a0155916004808301926020929190829003018186803b158015620001bb57600080fd5b505afa158015620001d0573d6000803e3d6000fd5b505050506040513d6020811015620001e757600080fd5b5051600280546001600160a01b0319166001600160a01b03928316179055600354604080516315ab88c960e31b81529051919092169163ad5c4648916004808301926020929190829003018186803b1580156200024357600080fd5b505afa15801562000258573d6000803e3d6000fd5b505050506040513d60208110156200026f57600080fd5b5051600480546001600160a01b039283166001600160a01b031991821617808355600580549092163317909155600254600154604080516364e329cb60e11b81529186169482019490945291841660248301529151919092169163c9c653969160448083019260209291908290030181600087803b158015620002f157600080fd5b505af115801562000306573d6000803e3d6000fd5b505050506040513d60208110156200031d57600080fd5b5051600680546001600160a01b0319166001600160a01b039092169190911790556009546200035c9062093a8062000393602090811b6200162717901c565b600c556200036a81620003e4565b62000387603c600e546200044360201b620016701790919060201c565b60125550620005539050565b6000620003dd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200049e60201b60201c565b9392505050565b60005b81518110156200043f576001601060008484815181106200040457fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101620003e7565b5050565b600082820183811015620003dd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081836200052e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620004f2578181015183820152602001620004d8565b50505050905090810190601f168015620005205780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200053b57fe5b0495945050505050565b610f27806200205683390190565b611af380620005636000396000f3fe6080604052600436106101e75760003560e01c806370a0823111610102578063a8b0898211610095578063df136d6511610064578063df136d651461056d578063f8077fae14610582578063f887ea4014610597578063fc0c546a146105ac57610224565b8063a8b0898214610519578063b415a2d61461052e578063c45a015514610543578063cd3daf9d1461055857610224565b806394c2c612116100d157806394c2c612146104c557806395a2a043146104da5780639ca6fbb4146104ef5780639d06c5631461050457610224565b806370a082311461040a5780637b0a47ee1461043d5780637ff9b5961461045257806387cad0bf1461046757610224565b80633a4b66f11161017a578063571b1f8a11610149578063571b1f8a146103b65780635a4ee600146103cb57806361d027b3146103e057806367739387146103f557610224565b80633a4b66f1146103515780633ccfd60b1461035b5780633fc8cef3146103705780634e71d92d146103a157610224565b80631e7be210116101b65780631e7be210146102ad57806325798e61146102f45780632f60f52514610309578063368e18611461031e57610224565b80630c2cd50c1461022957806314bcec9f1461025057806316ba6bf31461026557806318160ddd1461029857610224565b366102245760408051348152905133917f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874919081900360200190a2005b600080fd5b34801561023557600080fd5b5061023e6105c1565b60408051918252519081900360200190f35b34801561025c57600080fd5b5061023e6105c7565b34801561027157600080fd5b5061023e6004803603602081101561028857600080fd5b50356001600160a01b03166105cd565b3480156102a457600080fd5b5061023e61064a565b3480156102b957600080fd5b506102e0600480360360208110156102d057600080fd5b50356001600160a01b0316610651565b604080519115158252519081900360200190f35b34801561030057600080fd5b5061023e610666565b34801561031557600080fd5b5061023e61066d565b34801561032a57600080fd5b5061023e6004803603602081101561034157600080fd5b50356001600160a01b0316610673565b610359610685565b005b34801561036757600080fd5b50610359610c47565b34801561037c57600080fd5b50610385611077565b604080516001600160a01b039092168252519081900360200190f35b3480156103ad57600080fd5b50610359611086565b3480156103c257600080fd5b5061023e6112d5565b3480156103d757600080fd5b5061023e6112da565b3480156103ec57600080fd5b50610385611340565b34801561040157600080fd5b5061023e61134f565b34801561041657600080fd5b5061023e6004803603602081101561042d57600080fd5b50356001600160a01b0316611355565b34801561044957600080fd5b5061023e611370565b34801561045e57600080fd5b5061023e611376565b34801561047357600080fd5b5061049a6004803603602081101561048a57600080fd5b50356001600160a01b03166114b7565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b3480156104d157600080fd5b5061023e6114e6565b3480156104e657600080fd5b5061023e6114eb565b3480156104fb57600080fd5b506102e0611569565b34801561051057600080fd5b5061023e611572565b34801561052557600080fd5b50610385611578565b34801561053a57600080fd5b5061023e611587565b34801561054f57600080fd5b50610385611593565b34801561056457600080fd5b5061023e6115a2565b34801561057957600080fd5b5061023e6115f5565b34801561058e57600080fd5b5061023e6115fb565b3480156105a357600080fd5b50610385611609565b3480156105b857600080fd5b50610385611618565b60125481565b600b5481565b6001600160a01b03811660009081526007602052604081206003810154600490910154610644919061063e90670de0b6b3a76400009061063890610619906106136115a2565b906116ca565b6001600160a01b0388166000908152600760205260409020549061170c565b90611627565b90611670565b92915050565b6008545b90565b60106020526000908152604090205460ff1681565b62093a8081565b600a5481565b60116020526000908152604090205481565b600260005414156106dd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556106ea611765565b6106f3336117d4565b6106fb61182f565b60003411610741576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61074a336118ae565b156107865760405162461bcd60e51b81526004018080602001828103825260228152602001806119fc6022913960400191505060405180910390fd5b426012541061084f573360009081526010602052604090205460ff166107dd5760405162461bcd60e51b815260040180806020018281038252602c815260200180611a3f602c913960400191505060405180910390fd5b336000908152601160205260409020546107f79034611670565b3360009081526011602052604090208190556729a2241af62c0000101561084f5760405162461bcd60e51b8152600401808060200182810382526032815260200180611a8c6032913960400191505060405180910390fd5b600061085c34600a611627565b9050600061086a34836116ca565b6005546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050501580156108a5573d6000803e3d6000fd5b5060048054600654604080516370a0823160e01b81526001600160a01b03928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b1580156108fc57600080fd5b505afa158015610910573d6000803e3d6000fd5b505050506040513d602081101561092657600080fd5b5051600154600654604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561097e57600080fd5b505afa158015610992573d6000803e3d6000fd5b505050506040513d60208110156109a857600080fd5b50519050600082156109c7576109c283610638868561170c565b6109cc565b836002025b600154604080516340c10f1960e01b81523060048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b50506001546003546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101879052905189955091909216925063095ea7b3916044808201926020929091908290030181600087803b158015610a9657600080fd5b505af1158015610aaa573d6000803e3d6000fd5b505050506040513d6020811015610ac057600080fd5b5050600354600180546040805163f305d71960e01b81526001600160a01b0392831660048201526024810187905260448101849052606481019390935230608484015262015180420160a484015251600093919091169163f305d71991859160c48082019260609290919082900301818588803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b50505050506040513d6060811015610b6b57600080fd5b5060400151600854909150610b809082611670565b60085533600090815260076020526040902054610b9d9082611670565b336000908152600760205260409020818155600101541015610bd15733600090815260076020526040902080546001909101555b33600090815260076020526040902060020154610bff57336000908152600760205260409020426002909101555b6040805134815260208101839052815133927f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90928290030190a2505060016000555050505050565b60026000541415610c9f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055610cac611765565b610cb5336117d4565b610cbd61182f565b3360009081526007602052604090206002015442620151809091011115610d155760405162461bcd60e51b81526004018080602001828103825260358152602001806119c76035913960400191505060405180910390fd5b33600090815260076020526040902054610d6a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b33600090815260076020526040812060010154610d8890600a611627565b33600090815260076020526040902054909150811115610db45750336000908152600760205260409020545b600854610dc190826116ca565b60085533600090815260076020526040902054610dde90826116ca565b33600090815260076020908152604080832093845542600290940193909355600654600354845163095ea7b360e01b81526001600160a01b03918216600482015260248101879052945191169363095ea7b39360448083019493928390030190829087803b158015610e4f57600080fd5b505af1158015610e63573d6000803e3d6000fd5b505050506040513d6020811015610e7957600080fd5b50506003546001546004805460408051635d5155ef60e11b81526001600160a01b0394851693810193909352908316602483015260448201859052600060648301819052608483018190523060a484015262015180420160c4840152815190948594169263baa2abde9260e480830193919282900301818787803b158015610f0057600080fd5b505af1158015610f14573d6000803e3d6000fd5b505050506040513d6040811015610f2a57600080fd5b50805160209091015160015460408051632770a7eb60e21b81523060048201526024810185905290519395509193506001600160a01b031691639dc29fac9160448082019260009290919082900301818387803b158015610f8a57600080fd5b505af1158015610f9e573d6000803e3d6000fd5b50506004805460408051632e1a7d4d60e01b8152928301869052516001600160a01b039091169350632e1a7d4d9250602480830192600092919082900301818387803b158015610fed57600080fd5b505af1158015611001573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611032573d6000803e3d6000fd5b506040805182815260208101859052815133927f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6928290030190a25050600160005550565b6004546001600160a01b031681565b600260005414156110de576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556110eb611765565b6110f4336117d4565b6110fc61182f565b3360009081526007602052604090206003015480611161576040805162461bcd60e51b815260206004820152601b60248201527f5468657265206973206e6f2072657761726420746f20636c61696d0000000000604482015290519081900360640190fd5b80156112cd573360009081526007602052604081206003018190556111846112da565b905060008082116111965760006111a0565b6111a08383611627565b905060006111ae84836116ca565b600154604080516340c10f1960e01b81523360048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b15801561120457600080fd5b505af1158015611218573d6000803e3d6000fd5b50505050600082111561129357600154604080516340c10f1960e01b815261dead60048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050505b60408051858152905133917fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a919081900360200190a25050505b506001600055565b603c81565b6000600e5462015180014210156112f35750600461064e565b600e546202a3000142101561130a5750600561064e565b600e546203f480014210156113215750600a61064e565b600e5462054600014210156113385750601461064e565b50600061064e565b6005546001600160a01b031681565b60095481565b6001600160a01b031660009081526007602052604090205490565b600c5481565b60048054600654604080516370a0823160e01b81526001600160a01b039283169481019490945251600093849392909216916370a08231916024808301926020929190829003018186803b1580156113cd57600080fd5b505afa1580156113e1573d6000803e3d6000fd5b505050506040513d60208110156113f757600080fd5b5051600154600654604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561144f57600080fd5b505afa158015611463573d6000803e3d6000fd5b505050506040513d602081101561147957600080fd5b505190508061149a57611495670de0b6b3a76400006002611627565b6114b0565b6114b08161063884670de0b6b3a764000061170c565b9250505090565b600760205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b600a81565b600154604080516370a0823160e01b815261dead600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561153857600080fd5b505afa15801561154c573d6000803e3d6000fd5b505050506040513d602081101561156257600080fd5b5051905090565b600f5460ff1681565b600e5481565b6006546001600160a01b031681565b6729a2241af62c000081565b6002546001600160a01b031681565b6000600854600014156115b85750600d5461064e565b6115f06115e7600854610638670de0b6b3a76400006115e1600c546115e1600b546106136115fb565b9061170c565b600d5490611670565b905090565b600d5481565b60006115f042600a546118b4565b6003546001600160a01b031681565b6001546001600160a01b031681565b600061166983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506118ca565b9392505050565b600082820183811015611669576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061166983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061196c565b60008261171b57506000610644565b8282028284828161172857fe5b04146116695760405162461bcd60e51b8152600401808060200182810382526021815260200180611a6b6021913960400191505060405180910390fd5b42600e5411156117a65760405162461bcd60e51b8152600401808060200182810382526021815260200180611a1e6021913960400191505060405180910390fd5b600f5460ff166117d257600f805460ff191660011790556117ca4262093a80611670565b600a5542600b555b565b6117dc6115a2565b600d556117e76115fb565b600b556001600160a01b0381161561182c57611802816105cd565b6001600160a01b03821660009081526007602052604090206003810191909155600d546004909101555b50565b600a5442106117d257600954611846906002611627565b60098190556118589062093a80611627565b600c55600a5461186b9062093a80611670565b600a55611877336117d4565b60095460408051918252517ffafb0ec84dbe5a6bf08f4fec2f970b66d402032cdfea2008b11e11eb5c3990f09181900360200190a1565b3b151590565b60008183106118c35781611669565b5090919050565b600081836119565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561191b578181015183820152602001611903565b50505050905090810190601f1680156119485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161196257fe5b0495945050505050565b600081848411156119be5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561191b578181015183820152602001611903565b50505090039056fe596f75206d75737420776169742031206461792073696e636520796f7572206c617374207769746864726177206f72207374616b65506c656173652075736520796f757220696e646976696475616c206163636f756e74506c65617365207761697420756e74696c206661726d696e6720737461727465644f6e6c792077686974656c697374656420616464726573732063616e207374616b65207269676874206e6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e6e6f74207374616b65206d6f7265207468616e20616c6c6f77656420696e2077686974656c69737420706572696f64a2646970667358221220f42233cafc3fdd0f8d96088e38f241d3b582a443327619b36341856d1dba446e64736f6c634300060c0033608060405234801561001057600080fd5b50604051610f27380380610f278339818101604052602081101561003357600080fd5b505160408051808201825260078152665473756e616d6960c81b6020828101918252835180850190945260048452634e414d4960e01b90840152815191929161007e916003916100cb565b5080516100929060049060208401906100cb565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff1990941660121793909316929092179091555061015e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010c57805160ff1916838001178555610139565b82800160010185558215610139579182015b8281111561013957825182559160200191906001019061011e565b50610145929150610149565b5090565b5b80821115610145576000815560010161014a565b610dba8061016d6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac14610287578063a457c2d7146102b3578063a9059cbb146102df578063dd62ed3e1461030b576100cf565b806340c10f191461022b57806370a082311461025957806395d89b411461027f576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc610339565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103cf565b604080519115158252519081900360200190f35b6101996103ec565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103f2565b6101e9610479565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610482565b6102576004803603604081101561024157600080fd5b506001600160a01b0381351690602001356104d0565b005b6101996004803603602081101561026f57600080fd5b50356001600160a01b031661052c565b6100dc610547565b6102576004803603604081101561029d57600080fd5b506001600160a01b0381351690602001356105a8565b61017d600480360360408110156102c957600080fd5b506001600160a01b038135169060200135610600565b61017d600480360360408110156102f557600080fd5b506001600160a01b038135169060200135610668565b6101996004803603604081101561032157600080fd5b506001600160a01b038135811691602001351661067c565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b820191906000526020600020905b8154815290600101906020018083116103a857829003601f168201915b5050505050905090565b60006103e36103dc6106a7565b84846106ab565b50600192915050565b60025490565b60006103ff848484610797565b61046f8461040b6106a7565b61046a85604051806060016040528060288152602001610cce602891396001600160a01b038a166000908152600160205260408120906104496106a7565b6001600160a01b0316815260208101919091526040016000205491906108f2565b6106ab565b5060019392505050565b60055460ff1690565b60006103e361048f6106a7565b8461046a85600160006104a06106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610989565b60055461010090046001600160a01b0316331461051e5760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b61052882826109ea565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b60055461010090046001600160a01b031633146105f65760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b6105288282610ada565b60006103e361060d6106a7565b8461046a85604051806060016040528060258152602001610d6060259139600160006106376106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108f2565b60006103e36106756106a7565b8484610797565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166106f05760405162461bcd60e51b8152600401808060200182810382526024815260200180610d3c6024913960400191505060405180910390fd5b6001600160a01b0382166107355760405162461bcd60e51b8152600401808060200182810382526022815260200180610c636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107dc5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d176025913960400191505060405180910390fd5b6001600160a01b0382166108215760405162461bcd60e51b8152600401808060200182810382526023815260200180610c1e6023913960400191505060405180910390fd5b61082c838383610bd6565b61086981604051806060016040528060268152602001610ca8602691396001600160a01b03861660009081526020819052604090205491906108f2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108989082610989565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561094657818101518382015260200161092e565b50505050905090810190601f1680156109735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156109e3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610a45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a5160008383610bd6565b600254610a5e9082610989565b6002556001600160a01b038216600090815260208190526040902054610a849082610989565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b1f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610cf66021913960400191505060405180910390fd5b610b2b82600083610bd6565b610b6881604051806060016040528060228152602001610c41602291396001600160a01b03851660009081526020819052604090205491906108f2565b6001600160a01b038316600090815260208190526040902055600254610b8e9082610bdb565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b60006109e383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108f256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f20616464726573734f6e6c79206d696e7465722063616e2063616c6c20746869732066756e6374696f6e2e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206c605e03c1e0a939339ce9c2954fcecd4b8e457ef46f21881db44d2170ce017f64736f6c634300060c00330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101e75760003560e01c806370a0823111610102578063a8b0898211610095578063df136d6511610064578063df136d651461056d578063f8077fae14610582578063f887ea4014610597578063fc0c546a146105ac57610224565b8063a8b0898214610519578063b415a2d61461052e578063c45a015514610543578063cd3daf9d1461055857610224565b806394c2c612116100d157806394c2c612146104c557806395a2a043146104da5780639ca6fbb4146104ef5780639d06c5631461050457610224565b806370a082311461040a5780637b0a47ee1461043d5780637ff9b5961461045257806387cad0bf1461046757610224565b80633a4b66f11161017a578063571b1f8a11610149578063571b1f8a146103b65780635a4ee600146103cb57806361d027b3146103e057806367739387146103f557610224565b80633a4b66f1146103515780633ccfd60b1461035b5780633fc8cef3146103705780634e71d92d146103a157610224565b80631e7be210116101b65780631e7be210146102ad57806325798e61146102f45780632f60f52514610309578063368e18611461031e57610224565b80630c2cd50c1461022957806314bcec9f1461025057806316ba6bf31461026557806318160ddd1461029857610224565b366102245760408051348152905133917f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874919081900360200190a2005b600080fd5b34801561023557600080fd5b5061023e6105c1565b60408051918252519081900360200190f35b34801561025c57600080fd5b5061023e6105c7565b34801561027157600080fd5b5061023e6004803603602081101561028857600080fd5b50356001600160a01b03166105cd565b3480156102a457600080fd5b5061023e61064a565b3480156102b957600080fd5b506102e0600480360360208110156102d057600080fd5b50356001600160a01b0316610651565b604080519115158252519081900360200190f35b34801561030057600080fd5b5061023e610666565b34801561031557600080fd5b5061023e61066d565b34801561032a57600080fd5b5061023e6004803603602081101561034157600080fd5b50356001600160a01b0316610673565b610359610685565b005b34801561036757600080fd5b50610359610c47565b34801561037c57600080fd5b50610385611077565b604080516001600160a01b039092168252519081900360200190f35b3480156103ad57600080fd5b50610359611086565b3480156103c257600080fd5b5061023e6112d5565b3480156103d757600080fd5b5061023e6112da565b3480156103ec57600080fd5b50610385611340565b34801561040157600080fd5b5061023e61134f565b34801561041657600080fd5b5061023e6004803603602081101561042d57600080fd5b50356001600160a01b0316611355565b34801561044957600080fd5b5061023e611370565b34801561045e57600080fd5b5061023e611376565b34801561047357600080fd5b5061049a6004803603602081101561048a57600080fd5b50356001600160a01b03166114b7565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b3480156104d157600080fd5b5061023e6114e6565b3480156104e657600080fd5b5061023e6114eb565b3480156104fb57600080fd5b506102e0611569565b34801561051057600080fd5b5061023e611572565b34801561052557600080fd5b50610385611578565b34801561053a57600080fd5b5061023e611587565b34801561054f57600080fd5b50610385611593565b34801561056457600080fd5b5061023e6115a2565b34801561057957600080fd5b5061023e6115f5565b34801561058e57600080fd5b5061023e6115fb565b3480156105a357600080fd5b50610385611609565b3480156105b857600080fd5b50610385611618565b60125481565b600b5481565b6001600160a01b03811660009081526007602052604081206003810154600490910154610644919061063e90670de0b6b3a76400009061063890610619906106136115a2565b906116ca565b6001600160a01b0388166000908152600760205260409020549061170c565b90611627565b90611670565b92915050565b6008545b90565b60106020526000908152604090205460ff1681565b62093a8081565b600a5481565b60116020526000908152604090205481565b600260005414156106dd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556106ea611765565b6106f3336117d4565b6106fb61182f565b60003411610741576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61074a336118ae565b156107865760405162461bcd60e51b81526004018080602001828103825260228152602001806119fc6022913960400191505060405180910390fd5b426012541061084f573360009081526010602052604090205460ff166107dd5760405162461bcd60e51b815260040180806020018281038252602c815260200180611a3f602c913960400191505060405180910390fd5b336000908152601160205260409020546107f79034611670565b3360009081526011602052604090208190556729a2241af62c0000101561084f5760405162461bcd60e51b8152600401808060200182810382526032815260200180611a8c6032913960400191505060405180910390fd5b600061085c34600a611627565b9050600061086a34836116ca565b6005546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050501580156108a5573d6000803e3d6000fd5b5060048054600654604080516370a0823160e01b81526001600160a01b03928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b1580156108fc57600080fd5b505afa158015610910573d6000803e3d6000fd5b505050506040513d602081101561092657600080fd5b5051600154600654604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561097e57600080fd5b505afa158015610992573d6000803e3d6000fd5b505050506040513d60208110156109a857600080fd5b50519050600082156109c7576109c283610638868561170c565b6109cc565b836002025b600154604080516340c10f1960e01b81523060048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b50506001546003546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101879052905189955091909216925063095ea7b3916044808201926020929091908290030181600087803b158015610a9657600080fd5b505af1158015610aaa573d6000803e3d6000fd5b505050506040513d6020811015610ac057600080fd5b5050600354600180546040805163f305d71960e01b81526001600160a01b0392831660048201526024810187905260448101849052606481019390935230608484015262015180420160a484015251600093919091169163f305d71991859160c48082019260609290919082900301818588803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b50505050506040513d6060811015610b6b57600080fd5b5060400151600854909150610b809082611670565b60085533600090815260076020526040902054610b9d9082611670565b336000908152600760205260409020818155600101541015610bd15733600090815260076020526040902080546001909101555b33600090815260076020526040902060020154610bff57336000908152600760205260409020426002909101555b6040805134815260208101839052815133927f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90928290030190a2505060016000555050505050565b60026000541415610c9f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600055610cac611765565b610cb5336117d4565b610cbd61182f565b3360009081526007602052604090206002015442620151809091011115610d155760405162461bcd60e51b81526004018080602001828103825260358152602001806119c76035913960400191505060405180910390fd5b33600090815260076020526040902054610d6a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b33600090815260076020526040812060010154610d8890600a611627565b33600090815260076020526040902054909150811115610db45750336000908152600760205260409020545b600854610dc190826116ca565b60085533600090815260076020526040902054610dde90826116ca565b33600090815260076020908152604080832093845542600290940193909355600654600354845163095ea7b360e01b81526001600160a01b03918216600482015260248101879052945191169363095ea7b39360448083019493928390030190829087803b158015610e4f57600080fd5b505af1158015610e63573d6000803e3d6000fd5b505050506040513d6020811015610e7957600080fd5b50506003546001546004805460408051635d5155ef60e11b81526001600160a01b0394851693810193909352908316602483015260448201859052600060648301819052608483018190523060a484015262015180420160c4840152815190948594169263baa2abde9260e480830193919282900301818787803b158015610f0057600080fd5b505af1158015610f14573d6000803e3d6000fd5b505050506040513d6040811015610f2a57600080fd5b50805160209091015160015460408051632770a7eb60e21b81523060048201526024810185905290519395509193506001600160a01b031691639dc29fac9160448082019260009290919082900301818387803b158015610f8a57600080fd5b505af1158015610f9e573d6000803e3d6000fd5b50506004805460408051632e1a7d4d60e01b8152928301869052516001600160a01b039091169350632e1a7d4d9250602480830192600092919082900301818387803b158015610fed57600080fd5b505af1158015611001573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611032573d6000803e3d6000fd5b506040805182815260208101859052815133927f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6928290030190a25050600160005550565b6004546001600160a01b031681565b600260005414156110de576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556110eb611765565b6110f4336117d4565b6110fc61182f565b3360009081526007602052604090206003015480611161576040805162461bcd60e51b815260206004820152601b60248201527f5468657265206973206e6f2072657761726420746f20636c61696d0000000000604482015290519081900360640190fd5b80156112cd573360009081526007602052604081206003018190556111846112da565b905060008082116111965760006111a0565b6111a08383611627565b905060006111ae84836116ca565b600154604080516340c10f1960e01b81523360048201526024810184905290519293506001600160a01b03909116916340c10f199160448082019260009290919082900301818387803b15801561120457600080fd5b505af1158015611218573d6000803e3d6000fd5b50505050600082111561129357600154604080516340c10f1960e01b815261dead60048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561127a57600080fd5b505af115801561128e573d6000803e3d6000fd5b505050505b60408051858152905133917fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a919081900360200190a25050505b506001600055565b603c81565b6000600e5462015180014210156112f35750600461064e565b600e546202a3000142101561130a5750600561064e565b600e546203f480014210156113215750600a61064e565b600e5462054600014210156113385750601461064e565b50600061064e565b6005546001600160a01b031681565b60095481565b6001600160a01b031660009081526007602052604090205490565b600c5481565b60048054600654604080516370a0823160e01b81526001600160a01b039283169481019490945251600093849392909216916370a08231916024808301926020929190829003018186803b1580156113cd57600080fd5b505afa1580156113e1573d6000803e3d6000fd5b505050506040513d60208110156113f757600080fd5b5051600154600654604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561144f57600080fd5b505afa158015611463573d6000803e3d6000fd5b505050506040513d602081101561147957600080fd5b505190508061149a57611495670de0b6b3a76400006002611627565b6114b0565b6114b08161063884670de0b6b3a764000061170c565b9250505090565b600760205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b600a81565b600154604080516370a0823160e01b815261dead600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561153857600080fd5b505afa15801561154c573d6000803e3d6000fd5b505050506040513d602081101561156257600080fd5b5051905090565b600f5460ff1681565b600e5481565b6006546001600160a01b031681565b6729a2241af62c000081565b6002546001600160a01b031681565b6000600854600014156115b85750600d5461064e565b6115f06115e7600854610638670de0b6b3a76400006115e1600c546115e1600b546106136115fb565b9061170c565b600d5490611670565b905090565b600d5481565b60006115f042600a546118b4565b6003546001600160a01b031681565b6001546001600160a01b031681565b600061166983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506118ca565b9392505050565b600082820183811015611669576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061166983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061196c565b60008261171b57506000610644565b8282028284828161172857fe5b04146116695760405162461bcd60e51b8152600401808060200182810382526021815260200180611a6b6021913960400191505060405180910390fd5b42600e5411156117a65760405162461bcd60e51b8152600401808060200182810382526021815260200180611a1e6021913960400191505060405180910390fd5b600f5460ff166117d257600f805460ff191660011790556117ca4262093a80611670565b600a5542600b555b565b6117dc6115a2565b600d556117e76115fb565b600b556001600160a01b0381161561182c57611802816105cd565b6001600160a01b03821660009081526007602052604090206003810191909155600d546004909101555b50565b600a5442106117d257600954611846906002611627565b60098190556118589062093a80611627565b600c55600a5461186b9062093a80611670565b600a55611877336117d4565b60095460408051918252517ffafb0ec84dbe5a6bf08f4fec2f970b66d402032cdfea2008b11e11eb5c3990f09181900360200190a1565b3b151590565b60008183106118c35781611669565b5090919050565b600081836119565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561191b578181015183820152602001611903565b50505050905090810190601f1680156119485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161196257fe5b0495945050505050565b600081848411156119be5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561191b578181015183820152602001611903565b50505090039056fe596f75206d75737420776169742031206461792073696e636520796f7572206c617374207769746864726177206f72207374616b65506c656173652075736520796f757220696e646976696475616c206163636f756e74506c65617365207761697420756e74696c206661726d696e6720737461727465644f6e6c792077686974656c697374656420616464726573732063616e207374616b65207269676874206e6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e6e6f74207374616b65206d6f7265207468616e20616c6c6f77656420696e2077686974656c69737420706572696f64a2646970667358221220f42233cafc3fdd0f8d96088e38f241d3b582a443327619b36341856d1dba446e64736f6c634300060c0033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


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

This is staking contract for Tsunami Finance.

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.