ETH Price: $3,384.08 (-1.55%)
Gas: 1 Gwei

Contract

0xE68c1d72340aEeFe5Be76eDa63AE2f4bc7514110
 

Overview

ETH Balance

4.559872275030073076 ETH

Eth Value

$15,430.97 (@ $3,384.08/ETH)

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
Swap201697262024-06-25 15:55:113 days ago1719330911IN
DeFi Plaza: XDP2 Token
0.0019 ETH0.000407358.48286264
Swap201672642024-06-25 7:40:114 days ago1719301211IN
DeFi Plaza: XDP2 Token
0 ETH0.000325234.29963192
Remove Liquidity201662852024-06-25 4:22:594 days ago1719289379IN
DeFi Plaza: XDP2 Token
0 ETH0.000170593.87621914
Remove Liquidity201662362024-06-25 4:13:114 days ago1719288791IN
DeFi Plaza: XDP2 Token
0 ETH0.00016263.69476134
Remove Liquidity201662292024-06-25 4:11:474 days ago1719288707IN
DeFi Plaza: XDP2 Token
0 ETH0.000194733.37325984
Swap201469452024-06-22 11:27:476 days ago1719055667IN
DeFi Plaza: XDP2 Token
0 ETH0.000185712.44842768
Swap201143092024-06-17 21:52:4711 days ago1718661167IN
DeFi Plaza: XDP2 Token
0.0171 ETH0.000266114.11093059
Swap201043922024-06-16 12:35:5912 days ago1718541359IN
DeFi Plaza: XDP2 Token
0 ETH0.000222293.48669223
Remove Liquidity200944382024-06-15 3:11:2314 days ago1718421083IN
DeFi Plaza: XDP2 Token
0 ETH0.000235554.08037821
Remove Liquidity200303692024-06-06 4:21:4723 days ago1717647707IN
DeFi Plaza: XDP2 Token
0 ETH0.000546159.45883334
Swap200036422024-06-02 10:48:5926 days ago1717325339IN
DeFi Plaza: XDP2 Token
0 ETH0.000514546.8023465
Swap199854462024-05-30 21:50:3529 days ago1717105835IN
DeFi Plaza: XDP2 Token
0 ETH0.0012376816.36501163
Swap199829192024-05-30 13:20:3529 days ago1717075235IN
DeFi Plaza: XDP2 Token
0 ETH0.0012516216.54935331
Swap199597712024-05-27 7:39:2333 days ago1716795563IN
DeFi Plaza: XDP2 Token
0 ETH0.000733319.69457936
Swap199461632024-05-25 10:01:3534 days ago1716631295IN
DeFi Plaza: XDP2 Token
0 ETH0.000437944.72218402
Swap199459892024-05-25 9:26:3535 days ago1716629195IN
DeFi Plaza: XDP2 Token
0 ETH0.000339355.48211967
Swap199221072024-05-22 1:18:3538 days ago1716340715IN
DeFi Plaza: XDP2 Token
0 ETH0.000399616.99235154
Swap198767282024-05-15 16:58:5944 days ago1715792339IN
DeFi Plaza: XDP2 Token
0 ETH0.000669028.8202661
Swap198699352024-05-14 18:13:1145 days ago1715710391IN
DeFi Plaza: XDP2 Token
0 ETH0.0009753912.85932327
Swap198687752024-05-14 14:16:5945 days ago1715696219IN
DeFi Plaza: XDP2 Token
0 ETH0.0013853518.26415968
Swap198623722024-05-13 16:44:4746 days ago1715618687IN
DeFi Plaza: XDP2 Token
0 ETH0.0023842222.81775833
Swap198623572024-05-13 16:41:4746 days ago1715618507IN
DeFi Plaza: XDP2 Token
0 ETH0.0012842420.54465525
Swap198620492024-05-13 15:39:5946 days ago1715614799IN
DeFi Plaza: XDP2 Token
0 ETH0.0019998335
Swap198495382024-05-11 21:40:5948 days ago1715463659IN
DeFi Plaza: XDP2 Token
0.0000342 ETH0.000290813.79221861
Swap198341642024-05-09 18:05:2350 days ago1715277923IN
DeFi Plaza: XDP2 Token
0 ETH0.000306774.95589397
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
201965192024-06-29 9:42:357 mins ago1719654155
DeFi Plaza: XDP2 Token
0.0099125 ETH
201962862024-06-29 8:55:4753 mins ago1719651347
DeFi Plaza: XDP2 Token
0.02447508 ETH
201961662024-06-29 8:31:351 hr ago1719649895
DeFi Plaza: XDP2 Token
0.0015589 ETH
201960242024-06-29 8:02:471 hr ago1719648167
DeFi Plaza: XDP2 Token
0.01288625 ETH
201960182024-06-29 8:01:351 hr ago1719648095
DeFi Plaza: XDP2 Token
0.01433011 ETH
201954432024-06-29 6:05:593 hrs ago1719641159
DeFi Plaza: XDP2 Token
0.00105141 ETH
201950472024-06-29 4:46:235 hrs ago1719636383
DeFi Plaza: XDP2 Token
0.00119194 ETH
201950372024-06-29 4:44:235 hrs ago1719636263
DeFi Plaza: XDP2 Token
0.01630186 ETH
201950032024-06-29 4:37:355 hrs ago1719635855
DeFi Plaza: XDP2 Token
0.00167272 ETH
201948842024-06-29 4:13:475 hrs ago1719634427
DeFi Plaza: XDP2 Token
0.02864595 ETH
201946852024-06-29 3:33:356 hrs ago1719632015
DeFi Plaza: XDP2 Token
0.01039947 ETH
201946822024-06-29 3:32:596 hrs ago1719631979
DeFi Plaza: XDP2 Token
0.03521666 ETH
201946222024-06-29 3:20:596 hrs ago1719631259
DeFi Plaza: XDP2 Token
0.00958515 ETH
201945732024-06-29 3:11:116 hrs ago1719630671
DeFi Plaza: XDP2 Token
0.0003 ETH
201944832024-06-29 2:52:596 hrs ago1719629579
DeFi Plaza: XDP2 Token
0.00350686 ETH
201942522024-06-29 2:06:477 hrs ago1719626807
DeFi Plaza: XDP2 Token
0.02757459 ETH
201942102024-06-29 1:58:237 hrs ago1719626303
DeFi Plaza: XDP2 Token
0.00089751 ETH
201939372024-06-29 1:03:118 hrs ago1719622991
DeFi Plaza: XDP2 Token
0.01006765 ETH
201933982024-06-28 23:14:1110 hrs ago1719616451
DeFi Plaza: XDP2 Token
0.00647782 ETH
201929422024-06-28 21:42:3512 hrs ago1719610955
DeFi Plaza: XDP2 Token
0.00146576 ETH
201927592024-06-28 21:05:5912 hrs ago1719608759
DeFi Plaza: XDP2 Token
0.02487109 ETH
201919572024-06-28 18:24:4715 hrs ago1719599087
DeFi Plaza: XDP2 Token
0.04282492 ETH
201916642024-06-28 17:25:4716 hrs ago1719595547
DeFi Plaza: XDP2 Token
0.05190777 ETH
201916242024-06-28 17:17:4716 hrs ago1719595067
DeFi Plaza: XDP2 Token
0.02831357 ETH
201916192024-06-28 17:16:4716 hrs ago1719595007
DeFi Plaza: XDP2 Token
0.03710487 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DeFiPlaza

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, Audited
File 1 of 9 : DeFiPlaza.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

import "../interfaces/IDeFiPlaza.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title DeFi Plaza exchange controct, multi token DEX.
 * @author Jazzer 9F
 * @notice Trades between two tokens follow the local bonding curve x*y=k
 * The number of tokens used is hard coded to 16 for efficiency reasons.
 */
contract DeFiPlaza is IDeFiPlaza, Ownable, ERC20 {
  using SafeERC20 for IERC20;

  // States that each token can be in
  enum State {Unlisted, PreListing, Delisting, Listed}

  // Configuration per token. Still some bits available if needed
  struct TokenSettings {
    State state;                      // What state the token is currently in
    uint112 listingTarget;            // Amount of tokens needed to activate listing
  }

  // Exchange configuration
  struct Config {
    bool unlocked;                    // Locked for trading to prevent re-entrancy misery
    uint64 oneMinusTradingFee;        // One minus the swap fee (0.64 fixed point integer)
    uint64 delistingBonus;            // Amount of additional tokens to encourage immediate delisting (0.64 fixed point)
  }

  // Keeps track of whether there is a listing change underway and if so between which tokens
  struct ListingUpdate {
    address tokenToDelist;            // Token to be removed
    address tokenToList;              // Token to be listed
  }

  // Mapping to keep track of the listed tokens
  mapping(address => TokenSettings) public listedTokens;
  Config public DFPconfig;
  ListingUpdate public listingUpdate;
  address public admin;

  /**
  * Sets up default configuration
  * Initialize with ordered list of 15 token addresses (ETH is always listed)
  * Doesn't do any checks. Make sure you ONLY add well behaved ERC20s!!
  */
  constructor(address[] memory tokensToList, uint256 mintAmount, string memory name_, string memory symbol_) ERC20(name_, symbol_) {
    // Basic exchange configuration
    Config memory config;
    config.unlocked = false;
    config.oneMinusTradingFee = 0xffbe76c8b4395800;   // approximately 0.999
    config.delistingBonus = 0;
    DFPconfig = config;

    // Configure the listed tokens as such
    TokenSettings memory listed;
    listed.state = State.Listed;
    require(tokensToList.length == 15, "Incorrect number of tokens");
    address previous = address(0);
    address current = address(0);
    for (uint256 i = 0; i < 15; i++) {
      current = tokensToList[i];
      require(current > previous, "Require ordered list");
      listedTokens[current] = listed;
      previous = current;
    }

    // Generate the LP tokens reflecting the initial liquidity (to be loaded externally)
    _mint(msg.sender, mintAmount);
  }

  // For bootstrapping ETH liquidity
  receive() external payable {}

  // To safeguard some functionality is only applied to listed tokens
  modifier onlyListedToken(address token) {
    require(
      token == address(0) || listedTokens[token].state > State.Delisting,
      "DFP: Token not listed"
    );
    _;
  }

  modifier onlyAdmin() {
    require(
      msg.sender == admin || msg.sender == owner(),
      "DFP: admin rights required"
    );
    _;
  }

  /**
  * Allows users to swap between any two tokens listed on the DEX.
  * Follows the x*y=k swap invariant hyperbole
  * For ETH trades, send the ETH with the transaction and use the NULL address as inputToken.
  */
  function swap(
    address inputToken,
    address outputToken,
    uint256 inputAmount,
    uint256 minOutputAmount
  )
    external
    payable
    onlyListedToken(inputToken)
    onlyListedToken(outputToken)
    override
    returns (uint256 outputAmount)
  {
    // Check that the exchange is unlocked and thus open for business
    Config memory _config = DFPconfig;
    require(_config.unlocked, "DFP: Locked");

    // Pull in input token and check the exchange balance for that token
    uint256 initialInputBalance;
    if (inputToken == address(0)) {
      require(msg.value == inputAmount, "DFP: bad ETH amount");
      initialInputBalance = address(this).balance - inputAmount;
    } else {
      initialInputBalance = IERC20(inputToken).balanceOf(address(this));
      IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputAmount);
    }

    // Check dex balance of the output token
    uint256 initialOutputBalance;
    if (outputToken == address(0)) {
      initialOutputBalance = address(this).balance;
    } else {
      initialOutputBalance = IERC20(outputToken).balanceOf(address(this));
    }

    // Calculate the output amount through the x*y=k invariant
    // Can skip overflow/underflow checks on this calculation as they will always work against an attacker anyway.
    uint256 netInputAmount = inputAmount * _config.oneMinusTradingFee;
    outputAmount = netInputAmount * initialOutputBalance / ((initialInputBalance << 64) + netInputAmount);
    require(outputAmount > minOutputAmount, "DFP: No deal");

    // Send output tokens to whoever invoked the swap function
    if (outputToken == address(0)) {
      address payable sender = payable(msg.sender);
      sender.transfer(outputAmount);
    } else {
      IERC20(outputToken).safeTransfer(msg.sender, outputAmount);
    }

    // Emit swap event to enable better governance decision making
    emit Swapped(msg.sender, inputToken, outputToken, inputAmount, outputAmount);
  }

  /**
  * Single sided liquidity add. More economic at low/moderate liquidity amounts.
  * Mathematically works as adding all tokens and swapping back to 1 token at no fee.
  *
  *         R = (1 + X_supplied/X_initial)^(1/N) - 1
  *         LP_minted = R * LP_total
  *
  * When adding ETH, the inputToken address to be used is the NULL address.
  * A fee is applied to prevent zero fee swapping through liquidity add/remove.
  *
  * Note that this method suffers from two forms of slippage.
  *   1. Slippage from single sided add which is modeled with 15 internal swaps
  *   2. Slippage from the numerical approximation required for calculation.
  *
  * When adding a large amount of liquidity when compared with the existing
  * liquidity for the selected token, the slippage can become quite significant.
  * The smart contract limits the maximum input amount at 100% of the existing
  * liquidity, at which point the slippage is 29.2% (due to 1) + 9.3% (due to 2)
  */
  function addLiquidity(address inputToken, uint256 inputAmount, uint256 minLP)
    external
    payable
    onlyListedToken(inputToken)
    override
    returns (uint256 actualLP)
  {
    // Check that the exchange is unlocked and thus open for business
    Config memory _config = DFPconfig;
    require(_config.unlocked, "DFP: Locked");

    // Pull in input token and check the exchange balance for that token
    uint256 initialBalance;
    if (inputToken == address(0)) {
      require(msg.value == inputAmount, "DFP: Incorrect amount of ETH");
      initialBalance = address(this).balance - inputAmount;
    } else {
      initialBalance = IERC20(inputToken).balanceOf(address(this));
      IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputAmount);
    }

    // Prevent excessive liquidity add which runs of the approximation curve
    require(inputAmount < initialBalance, "DFP: Too much at once");

    // See https://en.wikipedia.org/wiki/Binomial_approximation for the below
    // Compute the 6th power binomial series approximation of R.
    //
    //                   X   15 X^2   155 X^3   7285 X^4   91791 X^5   2417163 X^6
    // (1+X)^1/16 - 1 ≈ -- - ------ + ------- - -------- + --------- - -----------
    //                  16    512      8192      524288     8388608     268435456
    //
    // Note that we need to terminate at an even order to guarantee an underestimate
    // for safety. The underestimation leads to slippage for higher amounts, but
    // protects funds of those that are already invested.
    uint256 X = (inputAmount * _config.oneMinusTradingFee) / initialBalance;  // 0.64 bits
    uint256 X_ = X * X;                                // X^2   0.128 bits
    uint256 R_ = (X >> 4) - (X_ * 15 >> 73);           // R2    0.64 bits
    X_ = X_ * X;                                       // X^3   0.192 bits
    R_ = R_ + (X_ * 155 >> 141);                       // R3    0.64 bits
    X_ = X_ * X >> 192;                                // X^4   0.64 bits
    R_ = R_ - (X_ * 7285 >> 19);                       // R4    0.64 bits
    X_ = X_ * X;                                       // X^5   0.128 bits
    R_ = R_ + (X_ * 91791 >> 87);                      // R5    0.64 bits
    X_ = X_ * X;                                       // X^6   0.192 bits
    R_ = R_ - (X_ * 2417163 >> 156);                   // R6    0.64 bits

    // Calculate and mint LPs to be awarded
    actualLP = R_ * totalSupply() >> 64;
    require(actualLP > minLP, "DFP: No deal");
    _mint(msg.sender, actualLP);

    // Emitting liquidity add event to enable better governance decisions
    emit LiquidityAdded(msg.sender, inputToken, inputAmount, actualLP);
  }

  /**
  * Multi-token liquidity add. More economic for large amounts of liquidity.
  * Simply takes in all 16 listed tokens in ratio and mints the LPs accordingly.
  * For ETH, the inputToken address to be used is the NULL address.
  * A fee is applied to prevent zero fee swapping through liquidity add/remove.
  */
  function addMultiple(address[] calldata tokens, uint256[] calldata maxAmounts)
    external
    payable
    override
    returns (uint256 actualLP)
  {
    // Perform basic checks
    Config memory _config = DFPconfig;
    require(_config.unlocked, "DFP: Locked");
    require(tokens.length == 16, "DFP: Bad tokens array length");
    require(maxAmounts.length == 16, "DFP: Bad maxAmount array length");

    // Check ETH amount/ratio first
    require(tokens[0] == address(0), "DFP: No ETH found");
    require(maxAmounts[0] == msg.value, "DFP: Incorrect ETH amount");
    uint256 dexBalance = address(this).balance - msg.value;
    uint256 actualRatio = msg.value * (1<<128) / dexBalance;

    // Check ERC20 amounts/ratios
    uint256 currentRatio;
    address previous;
    address token;
    for (uint256 i = 1; i < 16; i++) {
      token = tokens[i];
      require(token > previous, "DFP: Require ordered list");
      require(
        listedTokens[token].state > State.Delisting,
        "DFP: Token not listed"
      );
      dexBalance = IERC20(token).balanceOf(address(this));
      currentRatio = maxAmounts[i] * (1 << 128) / dexBalance;
      if (currentRatio < actualRatio) {
        actualRatio = currentRatio;
      }
      previous = token;
    }

    // Calculate how many LP will be generated
    actualLP = (actualRatio * totalSupply() >> 64) * DFPconfig.oneMinusTradingFee >> 128;

    // Collect ERC20 tokens
    for (uint256 i = 1; i < 16; i++) {
      token = tokens[i];
      dexBalance = IERC20(token).balanceOf(address(this));
      IERC20(token).safeTransferFrom(msg.sender, address(this), dexBalance * actualRatio >> 128);
    }

    // Mint the LP tokens
    _mint(msg.sender, actualLP);
    emit MultiLiquidityAdded(msg.sender, actualLP, totalSupply());

    // Refund ETH change
    dexBalance = address(this).balance - msg.value;
    address payable sender = payable(msg.sender);
    sender.transfer(msg.value - (dexBalance * actualRatio >> 128));
  }

  /**
  * Single sided liquidity withdrawal. More efficient at lower liquidity amounts.
  * Mathematically withdraws 16 tokens in ratio and then swaps 15 back in at no fees.
  * Calculates the following:
  *
  *        R = LP_burnt / LP_initial
  *        X_out = X_initial * (1 - (1 - R)^N)
  *
  * No fee is applied for withdrawals. For ETH output, use the NULL address as outputToken.
  */
  function removeLiquidity(uint256 LPamount, address outputToken, uint256 minOutputAmount)
    external
    onlyListedToken(outputToken)
    override
    returns (uint256 actualOutput)
  {
    // Checks the initial balance of the token desired as output token
    uint256 initialBalance;
    if (outputToken == address(0)) {
      initialBalance = address(this).balance;
    } else {
      initialBalance = IERC20(outputToken).balanceOf(address(this));
    }

    // Calculates intermediate variable F = (1-R)^16 and then the resulting output amount.
    uint256 F_;
    F_ = (1 << 64) - (LPamount << 64) / totalSupply();   // (1-R)      (0.64 bits)
    F_ = F_ * F_;                                       // (1-R)^2    (0.128 bits)
    F_ = F_ * F_ >> 192;                                // (1-R)^4    (0.64 bits)
    F_ = F_ * F_;                                       // (1-R)^8    (0.128 bits)
    F_ = F_ * F_ >> 192;                                // (1-R)^16   (0.64 bits)
    actualOutput = initialBalance * ((1 << 64) - F_) >> 64;
    require(actualOutput > minOutputAmount, "DFP: No deal");

    // Burns the LP tokens and sends the output tokens
    _burn(msg.sender, LPamount);
    if (outputToken == address(0)) {
      address payable sender = payable(msg.sender);
      sender.transfer(actualOutput);
    } else {
      IERC20(outputToken).safeTransfer(msg.sender, actualOutput);
    }

    // Emitting liquidity removal event to enable better governance decisions
    emit LiquidityRemoved(msg.sender, outputToken, actualOutput, LPamount);
  }

  /**
  * Multi-token liquidity removal. More economic for large amounts of liquidity.
  * Returns all 16 listed tokens in ratio and burns the LPs accordingly.
  */
  function removeMultiple(uint256 LPamount, address[] calldata tokens)
    external
    override
    returns (bool success)
  {
    // Perform basic validation (no lock check here on purpose)
    require(tokens.length == 16, "DFP: Bad tokens array length");

    // Calculate fraction of total liquidity to be returned
    uint256 fraction = (LPamount << 128) / totalSupply();

    // Send the ETH first (use transfer to prevent reentrancy)
    uint256 dexBalance = address(this).balance;
    address payable sender = payable(msg.sender);
    sender.transfer(fraction * dexBalance >> 128);

    // Send the ERC20 tokens
    address previous;
    for (uint256 i = 1; i < 16; i++) {
      address token = tokens[i];
      require(token > previous, "DFP: Require ordered list");
      require(
        listedTokens[token].state > State.Delisting,
        "DFP: Token not listed"
      );
      dexBalance = IERC20(token).balanceOf(address(this));
      IERC20(token).safeTransfer(msg.sender, fraction * dexBalance >> 128);
      previous = token;
    }

    // Burn the LPs
    _burn(msg.sender, LPamount);
    emit MultiLiquidityRemoved(msg.sender, LPamount, totalSupply());

    // That's all folks
    return true;
  }


  /**
  * When a token is delisted and another one gets listed in its place, the users can
  * call this function to provide liquidity for the new token in exchange for the old
  * token. The ratio should be set such that the users have a financial incentive to
  * perform this transaction.
  */
  function bootstrapNewToken(
    address inputToken,
    uint256 maxInputAmount,
    address outputToken
  ) public override returns (uint64 fractionBootstrapped) {
    // Check whether the valid token is being bootstrapped
    TokenSettings memory tokenToList = listedTokens[inputToken];
    require(
      tokenToList.state == State.PreListing,
      "DFP: Wrong token"
    );

    // Calculate how many tokens to actually take in (clamp at max available)
    uint256 initialInputBalance = IERC20(inputToken).balanceOf(address(this));
    uint256 availableAmount;

    // Intentionally underflow (zero clamping) is the cheapest way to gracefully prevent failing when target is already met
    unchecked { availableAmount = tokenToList.listingTarget - initialInputBalance; }
    if (initialInputBalance >= tokenToList.listingTarget) { availableAmount = 1; }
    uint256 actualInputAmount = maxInputAmount > availableAmount ? availableAmount : maxInputAmount;

    // Actually pull the tokens in
    IERC20(inputToken).safeTransferFrom(msg.sender, address(this), actualInputAmount);

    // Check whether the output token requested is indeed being delisted
    TokenSettings memory tokenToDelist = listedTokens[outputToken];
    require(
      tokenToDelist.state == State.Delisting,
      "DFP: Wrong token"
    );

    // Check how many of the output tokens should be given out and transfer those
    uint256 initialOutputBalance = IERC20(outputToken).balanceOf(address(this));
    uint256 outputAmount = actualInputAmount * initialOutputBalance / availableAmount;
    IERC20(outputToken).safeTransfer(msg.sender, outputAmount);
    fractionBootstrapped = uint64((actualInputAmount << 64) / tokenToList.listingTarget);

    // Emit event for better governance decisions
    emit Bootstrapped(
      msg.sender,
      inputToken,
      actualInputAmount,
      outputToken,
      outputAmount
    );

    // If the input token liquidity is now at the target we complete the (de)listing
    if (actualInputAmount == availableAmount) {
      tokenToList.state = State.Listed;
      listedTokens[inputToken] = tokenToList;
      delete listedTokens[outputToken];
      delete listingUpdate;
      DFPconfig.delistingBonus = 0;
      emit BootstrapCompleted(outputToken, inputToken);
    }
  }

  /**
   * Emergency bonus withdrawal when bootstrapping is expected to remain incomplete
   * A fraction is specified (for example 5%) that is then rewarded in bonus tokens
   * on top of the regular bootstrapping output tokens.
   */
  function bootstrapNewTokenWithBonus(
    address inputToken,
    uint256 maxInputAmount,
    address outputToken,
    address bonusToken
  ) external onlyListedToken(bonusToken) override returns (uint256 bonusAmount) {
    // Check whether the output token requested is indeed being delisted
    TokenSettings memory tokenToDelist = listedTokens[outputToken];
    require(
      tokenToDelist.state == State.Delisting,
      "DFP: Wrong token"
    );

    // Collect parameters required to calculate bonus
    uint256 bonusFactor = uint256(DFPconfig.delistingBonus);
    uint64 fractionBootstrapped = bootstrapNewToken(inputToken, maxInputAmount, outputToken);

    // Balance of selected bonus token
    uint256 bonusBalance;
    if (bonusToken == address(0)) {
      bonusBalance = address(this).balance;
    } else {
      bonusBalance = IERC20(bonusToken).balanceOf(address(this));
    }

    // Calculate bonus amount
    bonusAmount = uint256(fractionBootstrapped) * bonusFactor * bonusBalance >> 128;

    // Payout bonus tokens
    if (bonusToken == address(0)) {
      address payable sender = payable(msg.sender);
      sender.transfer(bonusAmount);
    } else {
      IERC20(bonusToken).safeTransfer(msg.sender, bonusAmount);
    }

    // Emit event to enable data driven governance
    emit BootstrapBonus(
      msg.sender,
      bonusToken,
      bonusAmount
    );
  }

  /**
   * Initiates process to delist one token and list another.
   */
  function changeListing(
    address tokenToDelist,              // Address of token to be delisted
    address tokenToList,                // Address of token to be listed
    uint112 listingTarget               // Amount of tokens needed to activate listing
  ) external onlyListedToken(tokenToDelist) onlyOwner() {
    // Basic validity checks. ETH cannot be delisted, only one delisting at a time.
    require(tokenToDelist != address(0), "DFP: Cannot delist ETH");
    ListingUpdate memory update = listingUpdate;
    require(update.tokenToDelist == address(0), "DFP: Previous update incomplete");

    // Can't list an already listed token
    TokenSettings memory _token = listedTokens[tokenToList];
    require(_token.state == State.Unlisted, "DFP: Token already listed");

    // Set the delisting/listing struct.
    update.tokenToDelist = tokenToDelist;
    update.tokenToList = tokenToList;
    listingUpdate = update;

    // Configure the token states for incoming/outgoing tokens
    _token.state = State.PreListing;
    _token.listingTarget = listingTarget;
    listedTokens[tokenToList] = _token;
    listedTokens[tokenToDelist].state = State.Delisting;
  }

  /**
  * Sets trading fee (actually calculates using 1-fee) as a 0.64 fixed point number.
  */
  function setTradingFee(uint64 oneMinusFee) external onlyOwner() {
    DFPconfig.oneMinusTradingFee = oneMinusFee;
  }

  /**
  * Sets delisting bonus as emergency measure to complete a (de)listing when it gets stuck.
  */
  function setDeListingBonus(uint64 delistingBonus) external onlyOwner() {
    ListingUpdate memory update = listingUpdate;
    require(update.tokenToDelist != address(0), "DFP: No active delisting");

    DFPconfig.delistingBonus = delistingBonus;
  }

  /**
  * Sets admin address for emergency exchange locking
  */
  function setAdmin(address adminAddress) external onlyOwner() {
    admin = adminAddress;
  }

  /**
  * Sets exchange lock, under which swap and liquidity add (but not remove) are disabled
  */
  function lockExchange() external onlyAdmin() {
    DFPconfig.unlocked = false;
  }

  /**
  * Resets exchange lock.
  */
  function unlockExchange() external onlyAdmin() {
    DFPconfig.unlocked = true;
  }
}

File 2 of 9 : IDeFiPlaza.sol
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.6;

interface IDeFiPlaza {
  function swap(
    address inputToken,
    address outputToken,
    uint256 inputAmount,
    uint256 minOutputAmount
  ) external payable returns (uint256 outputAmount);

  function addLiquidity(
    address inputToken,
    uint256 inputAmount,
    uint256 minLP
  ) external payable returns (uint256 deltaLP);

  function addMultiple(
    address[] calldata tokens,
    uint256[] calldata maxAmounts
  ) external payable returns (uint256 actualLP);

  function removeLiquidity(
    uint256 LPamount,
    address outputToken,
    uint256 minOutputAmount
  ) external returns (uint256 actualOutput);

  function removeMultiple(
    uint256 LPamount,
    address[] calldata tokens
  ) external returns (bool success);

  function bootstrapNewToken(
    address inputToken,
    uint256 maxInputAmount,
    address outputToken
  ) external returns (uint64 fractionBootstrapped);

  function bootstrapNewTokenWithBonus(
    address inputToken,
    uint256 maxInputAmount,
    address outputToken,
    address bonusToken
  ) external returns (uint256 bonusAmount);

  event Swapped(
    address sender,
    address inputToken,
    address outputToken,
    uint256 inputAmount,
    uint256 outputAmount
  );

  event LiquidityAdded(
    address sender,
    address token,
    uint256 tokenAmount,
    uint256 LPs
  );

  event MultiLiquidityAdded(
    address sender,
    uint256 LPs,
    uint256 totalLPafter
  );

  event LiquidityRemoved(
    address recipient,
    address token,
    uint256 tokenAmount,
    uint256 LPs
  );

  event MultiLiquidityRemoved(
    address sender,
    uint256 LPs,
    uint256 totalLPafter
  );

  event Bootstrapped(
    address sender,
    address inputToken,
    uint256 inputAmount,
    address outputToken,
    uint256 outputAmount
  );

  event BootstrapBonus(
    address sender,
    address bonusToken,
    uint256 bonusAmount
  );

  event BootstrapCompleted(
    address delistedToken,
    address listedToken
  );
}

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 100000
  },
  "evmVersion": "berlin",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"tokensToList","type":"address[]"},{"internalType":"uint256","name":"mintAmount","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"bonusToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonusAmount","type":"uint256"}],"name":"BootstrapBonus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"delistedToken","type":"address"},{"indexed":false,"internalType":"address","name":"listedToken","type":"address"}],"name":"BootstrapCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"inputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"inputAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"outputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"outputAmount","type":"uint256"}],"name":"Bootstrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"LPs","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"LPs","type":"uint256"}],"name":"LiquidityRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"LPs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalLPafter","type":"uint256"}],"name":"MultiLiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"LPs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalLPafter","type":"uint256"}],"name":"MultiLiquidityRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"inputToken","type":"address"},{"indexed":false,"internalType":"address","name":"outputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"inputAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"outputAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DFPconfig","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"},{"internalType":"uint64","name":"oneMinusTradingFee","type":"uint64"},{"internalType":"uint64","name":"delistingBonus","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"minLP","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"actualLP","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"maxAmounts","type":"uint256[]"}],"name":"addMultiple","outputs":[{"internalType":"uint256","name":"actualLP","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"maxInputAmount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"}],"name":"bootstrapNewToken","outputs":[{"internalType":"uint64","name":"fractionBootstrapped","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"maxInputAmount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"address","name":"bonusToken","type":"address"}],"name":"bootstrapNewTokenWithBonus","outputs":[{"internalType":"uint256","name":"bonusAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenToDelist","type":"address"},{"internalType":"address","name":"tokenToList","type":"address"},{"internalType":"uint112","name":"listingTarget","type":"uint112"}],"name":"changeListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"listedTokens","outputs":[{"internalType":"enum DeFiPlaza.State","name":"state","type":"uint8"},{"internalType":"uint112","name":"listingTarget","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listingUpdate","outputs":[{"internalType":"address","name":"tokenToDelist","type":"address"},{"internalType":"address","name":"tokenToList","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockExchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"LPamount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"uint256","name":"minOutputAmount","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"actualOutput","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"LPamount","type":"uint256"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"removeMultiple","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adminAddress","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"delistingBonus","type":"uint64"}],"name":"setDeListingBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"oneMinusFee","type":"uint64"}],"name":"setTradingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"minOutputAmount","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"outputAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockExchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200516e3803806200516e8339810160408190526200003491620004bc565b818162000041336200024c565b81516200005690600490602085019062000381565b5080516200006c90600590602084019062000381565b505060408051606081018252600080825281830181905267ffbe76c8b4395800602080840191909152600780546001600160881b03191668ffbe76c8b43958000017905583518085019094528184528301529150600381528551600f146200011b5760405162461bcd60e51b815260206004820152601a60248201527f496e636f7272656374206e756d626572206f6620746f6b656e7300000000000060448201526064015b60405180910390fd5b60008060005b600f8110156200023157888181518110620001405762000140620006ba565b60200260200101519150826001600160a01b0316826001600160a01b031611620001ad5760405162461bcd60e51b815260206004820152601460248201527f52657175697265206f726465726564206c697374000000000000000000000000604482015260640162000112565b6001600160a01b03821660009081526006602052604090208451815486929190829060ff19166001836003811115620001ea57620001ea620006a4565b02179055506020919091015181546001600160701b0390911661010002610100600160781b0319909116179055909150819080620002288162000670565b91505062000121565b506200023e33886200029c565b5050505050505050620006e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620002f45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000112565b806003600082825462000308919062000618565b90915550506001600160a01b038216600090815260016020526040812080548392906200033790849062000618565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200038f9062000633565b90600052602060002090601f016020900481019282620003b35760008555620003fe565b82601f10620003ce57805160ff1916838001178555620003fe565b82800160010185558215620003fe579182015b82811115620003fe578251825591602001919060010190620003e1565b506200040c92915062000410565b5090565b5b808211156200040c576000815560010162000411565b600082601f8301126200043957600080fd5b81516001600160401b03811115620004555762000455620006d0565b60206200046b601f8301601f19168201620005e5565b82815285828487010111156200048057600080fd5b60005b83811015620004a057858101830151828201840152820162000483565b83811115620004b25760008385840101525b5095945050505050565b60008060008060808587031215620004d357600080fd5b84516001600160401b0380821115620004eb57600080fd5b818701915087601f8301126200050057600080fd5b8151602082821115620005175762000517620006d0565b8160051b62000528828201620005e5565b8381528281019086840183880185018e10156200054457600080fd5b600097505b858810156200058257805193506001600160a01b03841684146200056c57600080fd5b8383526001979097019691840191840162000549565b50928b015160408c0151939a50985091945050505080821115620005a557600080fd5b620005b38883890162000427565b93506060870151915080821115620005ca57600080fd5b50620005d98782880162000427565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620006105762000610620006d0565b604052919050565b600082198211156200062e576200062e6200068e565b500190565b600181811c908216806200064857607f821691505b602082108114156200066a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200068757620006876200068e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b614a7880620006f66000396000f3fe6080604052600436106101dc5760003560e01c806370a2df1d11610102578063a9059cbb11610095578063dd62ed3e11610064578063dd62ed3e1461063b578063f2fde38b1461068e578063f851a440146106ae578063fe029156146106db57600080fd5b8063a9059cbb146105d3578063c4ccdeea146105f3578063ce35979714610613578063cebe7a511461062657600080fd5b806395d89b41116100d157806395d89b411461055e57806399d2230414610573578063a457c2d714610593578063a62af183146105b357600080fd5b806370a2df1d1461047c578063715018a61461049c57806376e36ab2146104b15780638da5cb5b1461051257600080fd5b80633d3eee8c1161017a578063691ea2f011610149578063691ea2f0146103af578063704b6c02146103c45780637093f47f146103e457806370a082311461043957600080fd5b80633d3eee8c146102f75780634fdc57e31461031957806355776b771461033957806368c2a4001461034c57600080fd5b806323b872dd116101b657806323b872dd14610262578063313ce56714610282578063395093511461029e5780633bb1956a146102be57600080fd5b806306fdde03146101e8578063095ea7b31461021357806318160ddd1461024357600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6106ee565b60405161020a9190614804565b60405180910390f35b34801561021f57600080fd5b5061023361022e366004614566565b610780565b604051901515815260200161020a565b34801561024f57600080fd5b506003545b60405190815260200161020a565b34801561026e57600080fd5b5061023361027d3660046144e8565b610796565b34801561028e57600080fd5b506040516012815260200161020a565b3480156102aa57600080fd5b506102336102b9366004614566565b610883565b3480156102ca57600080fd5b506102de6102d9366004614590565b6108cc565b60405167ffffffffffffffff909116815260200161020a565b34801561030357600080fd5b50610317610312366004614764565b610ec8565b005b34801561032557600080fd5b50610233610334366004614718565b61102b565b610254610347366004614619565b6113bd565b34801561035857600080fd5b506007546103879060ff81169067ffffffffffffffff6101008204811691690100000000000000000090041683565b60408051931515845267ffffffffffffffff928316602085015291169082015260600161020a565b3480156103bb57600080fd5b506103176118db565b3480156103d057600080fd5b506103176103df366004614440565b6119ab565b3480156103f057600080fd5b5061042b6103ff366004614440565b60066020526000908152604090205460ff81169061010090046dffffffffffffffffffffffffffff1682565b60405161020a9291906147aa565b34801561044557600080fd5b50610254610454366004614440565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b34801561048857600080fd5b50610317610497366004614764565b611a73565b3480156104a857600080fd5b50610317611b34565b3480156104bd57600080fd5b506008546009546104e59173ffffffffffffffffffffffffffffffffffffffff908116911682565b6040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301520161020a565b34801561051e57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161020a565b34801561056a57600080fd5b506101fd611bc1565b34801561057f57600080fd5b5061025461058e3660046145cc565b611bd0565b34801561059f57600080fd5b506102336105ae366004614566565b611f70565b3480156105bf57600080fd5b506103176105ce36600461448e565b612048565b3480156105df57600080fd5b506102336105ee366004614566565b6124fe565b3480156105ff57600080fd5b5061025461060e3660046146f3565b61250b565b61025461062136600461464c565b612869565b34801561063257600080fd5b50610317612fda565b34801561064757600080fd5b5061025461065636600461445b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561069a57600080fd5b506103176106a9366004614440565b6130a7565b3480156106ba57600080fd5b50600a546105399073ffffffffffffffffffffffffffffffffffffffff1681565b6102546106e9366004614524565b6131d7565b6060600480546106fd90614928565b80601f016020809104026020016040519081016040528092919081815260200182805461072990614928565b80156107765780601f1061074b57610100808354040283529160200191610776565b820191906000526020600020905b81548152906001019060200180831161075957829003601f168201915b5050505050905090565b600061078d3384846137b4565b50600192915050565b60006107a3848484613967565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260026020908152604080832033845290915290205482811015610869576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61087685338584036137b4565b60019150505b9392505050565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161078d9185906108c7908690614855565b6137b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408082208151808301909252805483929190829060ff166003811115610916576109166149e4565b6003811115610927576109276149e4565b8152905461010090046dffffffffffffffffffffffffffff16602090910152905060018151600381111561095d5761095d6149e4565b146109c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8716906370a082319060240160206040518083038186803b158015610a2c57600080fd5b505afa158015610a40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6491906146da565b60208301519091506dffffffffffffffffffffffffffff16818103908210610a8a575060015b6000818711610a995786610a9b565b815b9050610abf73ffffffffffffffffffffffffffffffffffffffff8916333084613c1c565b73ffffffffffffffffffffffffffffffffffffffff861660009081526006602052604080822081518083019092528054829060ff166003811115610b0557610b056149e4565b6003811115610b1657610b166149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600281516003811115610b4c57610b4c6149e4565b14610bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8916906370a082319060240160206040518083038186803b158015610c1b57600080fd5b505afa158015610c2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5391906146da565b9050600084610c6283866148a8565b610c6c919061486d565b9050610c8f73ffffffffffffffffffffffffffffffffffffffff8a163383613cf8565b6020870151610cb2906dffffffffffffffffffffffffffff16604086901b61486d565b6040805133815273ffffffffffffffffffffffffffffffffffffffff808f166020830152918101879052908b166060820152608081018390529098507f73d54f46dbb35c8366181c7b385f112b2cb792cf3edcc78fc8b48c97b011f3509060a00160405180910390a184841415610eba57600380885273ffffffffffffffffffffffffffffffffffffffff8c166000908152600660205260409020885181548a9383917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016906001908490811115610d8c57610d8c6149e4565b021790555060209182015181546dffffffffffffffffffffffffffff909116610100027fffffffffffffffffffffffffffffffffff0000000000000000000000000000ff90911617905573ffffffffffffffffffffffffffffffffffffffff8a811660008181526006845260409081902080547fffffffffffffffffffffffffffffffffff000000000000000000000000000000169055600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600980549091169055600780547fffffffffffffffffffffffffffffff0000000000000000ffffffffffffffffff1690558051918252918e16928101929092527f943c02796d667aeacb72f3160a29d06d9c71c472bc592cf38b169eb282618ce5910160405180910390a15b505050505050509392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b6040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff9081168083526009549091166020830152610fe2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4446503a204e6f206163746976652064656c697374696e6700000000000000006044820152606401610860565b506007805467ffffffffffffffff9092166901000000000000000000027fffffffffffffffffffffffffffffff0000000000000000ffffffffffffffffff909216919091179055565b600060108214611097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a2042616420746f6b656e73206172726179206c656e677468000000006044820152606401610860565b60006110a260035490565b6110b090608087901b61486d565b90504733806108fc60806110c485876148a8565b604051911c801590920291906000818181858888f193505050501580156110ef573d6000803e3d6000fd5b50600060015b601081101561134357600088888381811061111257611112614a13565b90506020020160208101906111279190614440565b90508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16116111be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a2052657175697265206f726465726564206c697374000000000000006044820152606401610860565b600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156111fa576111fa6149e4565b11611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a082319060240160206040518083038186803b1580156112c657600080fd5b505afa1580156112da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fe91906146da565b945061132f336080611310888a6148a8565b73ffffffffffffffffffffffffffffffffffffffff851692911c613cf8565b91508061133b8161497c565b9150506110f5565b5061134e3389613d53565b7f6baa5d9dd9d305f18e36ed3e3dc82a07f286d330e614a25c0bef84e59f2d7a2b338961137a60035490565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260208401929092529082015260600160405180910390a1506001979650505050505050565b60008373ffffffffffffffffffffffffffffffffffffffff8116158061141c5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff16600381111561141a5761141a6149e4565b115b611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040805160608101825260075460ff8116151580835267ffffffffffffffff6101008304811660208501526901000000000000000000909204909116928201929092529061152c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff87166115c3578534146115b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a20496e636f727265637420616d6f756e74206f6620455448000000006044820152606401610860565b6115bc86476148e5565b9050611684565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b15801561162857600080fd5b505afa15801561163c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166091906146da565b905061168473ffffffffffffffffffffffffffffffffffffffff8816333089613c1c565b8086106116ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6f206d756368206174206f6e636500000000000000000000006044820152606401610860565b600081836020015167ffffffffffffffff168861170a91906148a8565b611714919061486d565b9050600061172282806148a8565b90506000604961173383600f6148a8565b611742911c600485901c6148e5565b905061174e83836148a8565b9150608d61175d83609b6148a8565b611768911c82614855565b905060c061177684846148a8565b901c9150601361178883611c756148a8565b611793911c826148e5565b905061179f83836148a8565b915060576117b0836201668f6148a8565b6117bb911c82614855565b90506117c783836148a8565b9150609c6117d8836224e20b6148a8565b6117e3911c826148e5565b905060406117f060035490565b6117fa90836148a8565b901c9650878711611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b6118713388613f40565b6040805133815273ffffffffffffffffffffffffffffffffffffffff8c1660208201529081018a9052606081018890527f36f3b2e1a21c19137dd82ec243b0708a1d26b3d1fa1dc49c44c4c366a58781389060800160405180910390a15050505050509392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331480611918575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61197e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4446503a2061646d696e207269676874732072657175697265640000000000006044820152606401610860565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b6007805467ffffffffffffffff909216610100027fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ff909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b611bbf6000614060565b565b6060600580546106fd90614928565b60008173ffffffffffffffffffffffffffffffffffffffff81161580611c2f5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115611c2d57611c2d6149e4565b115b611c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604080822081518083019092528054829060ff166003811115611cdb57611cdb6149e4565b6003811115611cec57611cec6149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600281516003811115611d2257611d226149e4565b14611d89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6007546901000000000000000000900467ffffffffffffffff166000611db08989896108cc565b9050600073ffffffffffffffffffffffffffffffffffffffff8716611dd6575047611e76565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b158015611e3b57600080fd5b505afa158015611e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7391906146da565b90505b608081611e8d8567ffffffffffffffff86166148a8565b611e9791906148a8565b901c955073ffffffffffffffffffffffffffffffffffffffff8716611eec576040513390819088156108fc029089906000818181858888f19350505050158015611ee5573d6000803e3d6000fd5b5050611f0d565b611f0d73ffffffffffffffffffffffffffffffffffffffff88163388613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff891660208201529081018790527fb1de651e02601de8f235c9277fc01f865e8de15840194e9a1f0e1713a113cb269060600160405180910390a15050505050949350505050565b33600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610860565b61203e33858584036137b4565b5060019392505050565b8273ffffffffffffffffffffffffffffffffffffffff811615806120a55750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156120a3576120a36149e4565b115b61210b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b60005473ffffffffffffffffffffffffffffffffffffffff16331461218c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8416612209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4446503a2043616e6e6f742064656c69737420455448000000000000000000006044820152606401610860565b6040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff9081168083526009549091166020830152156122a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4446503a2050726576696f75732075706461746520696e636f6d706c657465006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604080822081518083019092528054829060ff1660038111156122e9576122e96149e4565b60038111156122fa576122fa6149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600081516003811115612330576123306149e4565b14612397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a20546f6b656e20616c7265616479206c6973746564000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8681168084529086166020808501829052600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909417905560098054909316821790925560018084526dffffffffffffffffffffffffffff871684840152600091825260069092526040902082518154849383917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169083600381111561245b5761245b6149e4565b021790555060209182015181547fffffffffffffffffffffffffffffffffff0000000000000000000000000000ff166101006dffffffffffffffffffffffffffff9092169190910217905573ffffffffffffffffffffffffffffffffffffffff96909616600090815260069096525050604090932080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166002179055505050565b600061078d338484613967565b60008273ffffffffffffffffffffffffffffffffffffffff8116158061256a5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115612568576125686149e4565b115b6125d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff85166125f4575047612694565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8616906370a082319060240160206040518083038186803b15801561265957600080fd5b505afa15801561266d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269191906146da565b90505b600061269f60035490565b6126ad90604089901b61486d565b6126c090680100000000000000006148e5565b90506126cc81806148a8565b905060c06126da82806148a8565b901c90506126e881806148a8565b905060c06126f682806148a8565b901c9050604061270f82680100000000000000006148e5565b61271990846148a8565b901c9350848411612786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b6127903388613d53565b73ffffffffffffffffffffffffffffffffffffffff86166127e1576040513390819086156108fc029087906000818181858888f193505050501580156127da573d6000803e3d6000fd5b5050612802565b61280273ffffffffffffffffffffffffffffffffffffffff87163386613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff88166020820152908101859052606081018890527f3b5c196aff80bb96c03b41c96906b66827014de931d1b36e0ede6ee8caeb4bf99060800160405180910390a15050509392505050565b6040805160608101825260075460ff8116151580835267ffffffffffffffff610100830481166020850152690100000000000000000090920490911692820192909252600091612915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b6010851461297f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a2042616420746f6b656e73206172726179206c656e677468000000006044820152606401610860565b601083146129e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4446503a20426164206d6178416d6f756e74206172726179206c656e677468006044820152606401610860565b6000868682816129fb576129fb614a13565b9050602002016020810190612a109190614440565b73ffffffffffffffffffffffffffffffffffffffff1614612a8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4446503a204e6f2045544820666f756e640000000000000000000000000000006044820152606401610860565b3484846000818110612aa157612aa1614a13565b9050602002013514612b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a20496e636f72726563742045544820616d6f756e74000000000000006044820152606401610860565b6000612b1b34476148e5565b9050600081612b3b347001000000000000000000000000000000006148a8565b612b45919061486d565b90506000808060015b6010811015612dbb578b8b82818110612b6957612b69614a13565b9050602002016020810190612b7e9190614440565b91508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1611612c15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a2052657175697265206f726465726564206c697374000000000000006044820152606401610860565b600273ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604090205460ff166003811115612c5157612c516149e4565b11612cb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015612d1d57600080fd5b505afa158015612d31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5591906146da565b9550858a8a83818110612d6a57612d6a614a13565b90506020020135700100000000000000000000000000000000612d8d91906148a8565b612d97919061486d565b935084841015612da5578394505b8192508080612db39061497c565b915050612b4e565b5060075460809067ffffffffffffffff610100909104166040612ddd60035490565b612de790886148a8565b612df292911c6148a8565b901c965060015b6010811015612f0e578b8b82818110612e1457612e14614a13565b9050602002016020810190612e299190614440565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290925073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015612e9157600080fd5b505afa158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec991906146da565b9550612efc33306080612edc898b6148a8565b73ffffffffffffffffffffffffffffffffffffffff87169392911c613c1c565b80612f068161497c565b915050612df9565b50612f193388613f40565b7ff8a0b170c5f5d0c7cf38a00cf2f15f1cac38123cfeaaa2a377217efff62c9c0a3388612f4560035490565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260208401929092529082015260600160405180910390a1612f8434476148e5565b945033806108fc6080612f97888a6148a8565b612fa2911c346148e5565b6040518115909202916000818181858888f19350505050158015612fca573d6000803e3d6000fd5b5050505050505050949350505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331480613017575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61307d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4446503a2061646d696e207269676874732072657175697265640000000000006044820152606401610860565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314613128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff81166131cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610860565b6131d481614060565b50565b60008473ffffffffffffffffffffffffffffffffffffffff811615806132365750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115613234576132346149e4565b115b61329c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b8473ffffffffffffffffffffffffffffffffffffffff811615806132f95750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156132f7576132f76149e4565b115b61335f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040805160608101825260075460ff8116151580835267ffffffffffffffff61010083048116602085015269010000000000000000009092049091169282019290925290613409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff89166134a05786341461348f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4446503a206261642045544820616d6f756e74000000000000000000000000006044820152606401610860565b61349987476148e5565b9050613561565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b15801561350557600080fd5b505afa158015613519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353d91906146da565b905061356173ffffffffffffffffffffffffffffffffffffffff8a1633308a613c1c565b600073ffffffffffffffffffffffffffffffffffffffff8916613585575047613625565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b1580156135ea57600080fd5b505afa1580156135fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362291906146da565b90505b6000836020015167ffffffffffffffff168961364191906148a8565b905061365181604085901b614855565b61365b83836148a8565b613665919061486d565b96508787116136d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8a16613721576040513390819089156108fc02908a906000818181858888f1935050505015801561371a573d6000803e3d6000fd5b5050613742565b61374273ffffffffffffffffffffffffffffffffffffffff8b163389613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff8d811660208301528c1681830152606081018b90526080810189905290517f6782190c91d4a7e8ad2a867deed6ec0a970cab8ff137ae2bd4abd92b3810f4d39181900360a00190a1505050505050949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316613856576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff82166138f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316613a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff8216613aad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205481811015613b63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220858503905591851681529081208054849290613ba7908490614855565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613c0d91815260200190565b60405180910390a35b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052613c169085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526140d5565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052613d4e9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613c76565b505050565b73ffffffffffffffffffffffffffffffffffffffff8216613df6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205481811015613eac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120838303905560038054849290613ee89084906148e5565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216613fbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610860565b8060036000828254613fcf9190614855565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081208054839290614009908490614855565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000614137826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141e19092919063ffffffff16565b805190915015613d4e578080602001905181019061415591906146b8565b613d4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610860565b60606141f084846000856141f8565b949350505050565b60608247101561428a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610860565b843b6142f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610860565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161431b919061478e565b60006040518083038185875af1925050503d8060008114614358576040519150601f19603f3d011682016040523d82523d6000602084013e61435d565b606091505b509150915061436d828286614378565b979650505050505050565b6060831561438757508161087c565b8251156143975782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108609190614804565b803573ffffffffffffffffffffffffffffffffffffffff811681146143ef57600080fd5b919050565b60008083601f84011261440657600080fd5b50813567ffffffffffffffff81111561441e57600080fd5b6020830191508360208260051b850101111561443957600080fd5b9250929050565b60006020828403121561445257600080fd5b61087c826143cb565b6000806040838503121561446e57600080fd5b614477836143cb565b9150614485602084016143cb565b90509250929050565b6000806000606084860312156144a357600080fd5b6144ac846143cb565b92506144ba602085016143cb565b915060408401356dffffffffffffffffffffffffffff811681146144dd57600080fd5b809150509250925092565b6000806000606084860312156144fd57600080fd5b614506846143cb565b9250614514602085016143cb565b9150604084013590509250925092565b6000806000806080858703121561453a57600080fd5b614543856143cb565b9350614551602086016143cb565b93969395505050506040820135916060013590565b6000806040838503121561457957600080fd5b614582836143cb565b946020939093013593505050565b6000806000606084860312156145a557600080fd5b6145ae846143cb565b9250602084013591506145c3604085016143cb565b90509250925092565b600080600080608085870312156145e257600080fd5b6145eb856143cb565b935060208501359250614600604086016143cb565b915061460e606086016143cb565b905092959194509250565b60008060006060848603121561462e57600080fd5b614637846143cb565b95602085013595506040909401359392505050565b6000806000806040858703121561466257600080fd5b843567ffffffffffffffff8082111561467a57600080fd5b614686888389016143f4565b9096509450602087013591508082111561469f57600080fd5b506146ac878288016143f4565b95989497509550505050565b6000602082840312156146ca57600080fd5b8151801515811461087c57600080fd5b6000602082840312156146ec57600080fd5b5051919050565b60008060006060848603121561470857600080fd5b83359250614514602085016143cb565b60008060006040848603121561472d57600080fd5b83359250602084013567ffffffffffffffff81111561474b57600080fd5b614757868287016143f4565b9497909650939450505050565b60006020828403121561477657600080fd5b813567ffffffffffffffff8116811461087c57600080fd5b600082516147a08184602087016148fc565b9190910192915050565b60408101600484106147e5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9281526dffffffffffffffffffffffffffff9190911660209091015290565b60208152600082518060208401526148238160408501602087016148fc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115614868576148686149b5565b500190565b6000826148a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148e0576148e06149b5565b500290565b6000828210156148f7576148f76149b5565b500390565b60005b838110156149175781810151838201526020016148ff565b83811115613c165750506000910152565b600181811c9082168061493c57607f821691505b60208210811415614976577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149ae576149ae6149b5565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212207cb9052f0b4ea8f45675aa854ba8a1c66568dc9590f365c9d60af12db87eb58c64736f6c6343000806003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000002800129b12195b80000000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9840000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002f57430a6ceda85a67121757785877b4a71b8e6d000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000006468e79a80c0eab0f9a2b574c8d5bc374af594140000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe20000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb00000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000104465666920506c617a6120496e6465780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045844503200000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101dc5760003560e01c806370a2df1d11610102578063a9059cbb11610095578063dd62ed3e11610064578063dd62ed3e1461063b578063f2fde38b1461068e578063f851a440146106ae578063fe029156146106db57600080fd5b8063a9059cbb146105d3578063c4ccdeea146105f3578063ce35979714610613578063cebe7a511461062657600080fd5b806395d89b41116100d157806395d89b411461055e57806399d2230414610573578063a457c2d714610593578063a62af183146105b357600080fd5b806370a2df1d1461047c578063715018a61461049c57806376e36ab2146104b15780638da5cb5b1461051257600080fd5b80633d3eee8c1161017a578063691ea2f011610149578063691ea2f0146103af578063704b6c02146103c45780637093f47f146103e457806370a082311461043957600080fd5b80633d3eee8c146102f75780634fdc57e31461031957806355776b771461033957806368c2a4001461034c57600080fd5b806323b872dd116101b657806323b872dd14610262578063313ce56714610282578063395093511461029e5780633bb1956a146102be57600080fd5b806306fdde03146101e8578063095ea7b31461021357806318160ddd1461024357600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6106ee565b60405161020a9190614804565b60405180910390f35b34801561021f57600080fd5b5061023361022e366004614566565b610780565b604051901515815260200161020a565b34801561024f57600080fd5b506003545b60405190815260200161020a565b34801561026e57600080fd5b5061023361027d3660046144e8565b610796565b34801561028e57600080fd5b506040516012815260200161020a565b3480156102aa57600080fd5b506102336102b9366004614566565b610883565b3480156102ca57600080fd5b506102de6102d9366004614590565b6108cc565b60405167ffffffffffffffff909116815260200161020a565b34801561030357600080fd5b50610317610312366004614764565b610ec8565b005b34801561032557600080fd5b50610233610334366004614718565b61102b565b610254610347366004614619565b6113bd565b34801561035857600080fd5b506007546103879060ff81169067ffffffffffffffff6101008204811691690100000000000000000090041683565b60408051931515845267ffffffffffffffff928316602085015291169082015260600161020a565b3480156103bb57600080fd5b506103176118db565b3480156103d057600080fd5b506103176103df366004614440565b6119ab565b3480156103f057600080fd5b5061042b6103ff366004614440565b60066020526000908152604090205460ff81169061010090046dffffffffffffffffffffffffffff1682565b60405161020a9291906147aa565b34801561044557600080fd5b50610254610454366004614440565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b34801561048857600080fd5b50610317610497366004614764565b611a73565b3480156104a857600080fd5b50610317611b34565b3480156104bd57600080fd5b506008546009546104e59173ffffffffffffffffffffffffffffffffffffffff908116911682565b6040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301520161020a565b34801561051e57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161020a565b34801561056a57600080fd5b506101fd611bc1565b34801561057f57600080fd5b5061025461058e3660046145cc565b611bd0565b34801561059f57600080fd5b506102336105ae366004614566565b611f70565b3480156105bf57600080fd5b506103176105ce36600461448e565b612048565b3480156105df57600080fd5b506102336105ee366004614566565b6124fe565b3480156105ff57600080fd5b5061025461060e3660046146f3565b61250b565b61025461062136600461464c565b612869565b34801561063257600080fd5b50610317612fda565b34801561064757600080fd5b5061025461065636600461445b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561069a57600080fd5b506103176106a9366004614440565b6130a7565b3480156106ba57600080fd5b50600a546105399073ffffffffffffffffffffffffffffffffffffffff1681565b6102546106e9366004614524565b6131d7565b6060600480546106fd90614928565b80601f016020809104026020016040519081016040528092919081815260200182805461072990614928565b80156107765780601f1061074b57610100808354040283529160200191610776565b820191906000526020600020905b81548152906001019060200180831161075957829003601f168201915b5050505050905090565b600061078d3384846137b4565b50600192915050565b60006107a3848484613967565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260026020908152604080832033845290915290205482811015610869576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61087685338584036137b4565b60019150505b9392505050565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161078d9185906108c7908690614855565b6137b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660205260408082208151808301909252805483929190829060ff166003811115610916576109166149e4565b6003811115610927576109276149e4565b8152905461010090046dffffffffffffffffffffffffffff16602090910152905060018151600381111561095d5761095d6149e4565b146109c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8716906370a082319060240160206040518083038186803b158015610a2c57600080fd5b505afa158015610a40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6491906146da565b60208301519091506dffffffffffffffffffffffffffff16818103908210610a8a575060015b6000818711610a995786610a9b565b815b9050610abf73ffffffffffffffffffffffffffffffffffffffff8916333084613c1c565b73ffffffffffffffffffffffffffffffffffffffff861660009081526006602052604080822081518083019092528054829060ff166003811115610b0557610b056149e4565b6003811115610b1657610b166149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600281516003811115610b4c57610b4c6149e4565b14610bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8916906370a082319060240160206040518083038186803b158015610c1b57600080fd5b505afa158015610c2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5391906146da565b9050600084610c6283866148a8565b610c6c919061486d565b9050610c8f73ffffffffffffffffffffffffffffffffffffffff8a163383613cf8565b6020870151610cb2906dffffffffffffffffffffffffffff16604086901b61486d565b6040805133815273ffffffffffffffffffffffffffffffffffffffff808f166020830152918101879052908b166060820152608081018390529098507f73d54f46dbb35c8366181c7b385f112b2cb792cf3edcc78fc8b48c97b011f3509060a00160405180910390a184841415610eba57600380885273ffffffffffffffffffffffffffffffffffffffff8c166000908152600660205260409020885181548a9383917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016906001908490811115610d8c57610d8c6149e4565b021790555060209182015181546dffffffffffffffffffffffffffff909116610100027fffffffffffffffffffffffffffffffffff0000000000000000000000000000ff90911617905573ffffffffffffffffffffffffffffffffffffffff8a811660008181526006845260409081902080547fffffffffffffffffffffffffffffffffff000000000000000000000000000000169055600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909155600980549091169055600780547fffffffffffffffffffffffffffffff0000000000000000ffffffffffffffffff1690558051918252918e16928101929092527f943c02796d667aeacb72f3160a29d06d9c71c472bc592cf38b169eb282618ce5910160405180910390a15b505050505050509392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b6040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff9081168083526009549091166020830152610fe2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4446503a204e6f206163746976652064656c697374696e6700000000000000006044820152606401610860565b506007805467ffffffffffffffff9092166901000000000000000000027fffffffffffffffffffffffffffffff0000000000000000ffffffffffffffffff909216919091179055565b600060108214611097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a2042616420746f6b656e73206172726179206c656e677468000000006044820152606401610860565b60006110a260035490565b6110b090608087901b61486d565b90504733806108fc60806110c485876148a8565b604051911c801590920291906000818181858888f193505050501580156110ef573d6000803e3d6000fd5b50600060015b601081101561134357600088888381811061111257611112614a13565b90506020020160208101906111279190614440565b90508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16116111be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a2052657175697265206f726465726564206c697374000000000000006044820152606401610860565b600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156111fa576111fa6149e4565b11611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8216906370a082319060240160206040518083038186803b1580156112c657600080fd5b505afa1580156112da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fe91906146da565b945061132f336080611310888a6148a8565b73ffffffffffffffffffffffffffffffffffffffff851692911c613cf8565b91508061133b8161497c565b9150506110f5565b5061134e3389613d53565b7f6baa5d9dd9d305f18e36ed3e3dc82a07f286d330e614a25c0bef84e59f2d7a2b338961137a60035490565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260208401929092529082015260600160405180910390a1506001979650505050505050565b60008373ffffffffffffffffffffffffffffffffffffffff8116158061141c5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff16600381111561141a5761141a6149e4565b115b611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040805160608101825260075460ff8116151580835267ffffffffffffffff6101008304811660208501526901000000000000000000909204909116928201929092529061152c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff87166115c3578534146115b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a20496e636f727265637420616d6f756e74206f6620455448000000006044820152606401610860565b6115bc86476148e5565b9050611684565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b15801561162857600080fd5b505afa15801561163c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166091906146da565b905061168473ffffffffffffffffffffffffffffffffffffffff8816333089613c1c565b8086106116ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6f206d756368206174206f6e636500000000000000000000006044820152606401610860565b600081836020015167ffffffffffffffff168861170a91906148a8565b611714919061486d565b9050600061172282806148a8565b90506000604961173383600f6148a8565b611742911c600485901c6148e5565b905061174e83836148a8565b9150608d61175d83609b6148a8565b611768911c82614855565b905060c061177684846148a8565b901c9150601361178883611c756148a8565b611793911c826148e5565b905061179f83836148a8565b915060576117b0836201668f6148a8565b6117bb911c82614855565b90506117c783836148a8565b9150609c6117d8836224e20b6148a8565b6117e3911c826148e5565b905060406117f060035490565b6117fa90836148a8565b901c9650878711611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b6118713388613f40565b6040805133815273ffffffffffffffffffffffffffffffffffffffff8c1660208201529081018a9052606081018890527f36f3b2e1a21c19137dd82ec243b0708a1d26b3d1fa1dc49c44c4c366a58781389060800160405180910390a15050505050509392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331480611918575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61197e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4446503a2061646d696e207269676874732072657175697265640000000000006044820152606401610860565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b6007805467ffffffffffffffff909216610100027fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ff909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b611bbf6000614060565b565b6060600580546106fd90614928565b60008173ffffffffffffffffffffffffffffffffffffffff81161580611c2f5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115611c2d57611c2d6149e4565b115b611c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604080822081518083019092528054829060ff166003811115611cdb57611cdb6149e4565b6003811115611cec57611cec6149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600281516003811115611d2257611d226149e4565b14611d89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4446503a2057726f6e6720746f6b656e000000000000000000000000000000006044820152606401610860565b6007546901000000000000000000900467ffffffffffffffff166000611db08989896108cc565b9050600073ffffffffffffffffffffffffffffffffffffffff8716611dd6575047611e76565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8816906370a082319060240160206040518083038186803b158015611e3b57600080fd5b505afa158015611e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7391906146da565b90505b608081611e8d8567ffffffffffffffff86166148a8565b611e9791906148a8565b901c955073ffffffffffffffffffffffffffffffffffffffff8716611eec576040513390819088156108fc029089906000818181858888f19350505050158015611ee5573d6000803e3d6000fd5b5050611f0d565b611f0d73ffffffffffffffffffffffffffffffffffffffff88163388613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff891660208201529081018790527fb1de651e02601de8f235c9277fc01f865e8de15840194e9a1f0e1713a113cb269060600160405180910390a15050505050949350505050565b33600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610860565b61203e33858584036137b4565b5060019392505050565b8273ffffffffffffffffffffffffffffffffffffffff811615806120a55750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156120a3576120a36149e4565b115b61210b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b60005473ffffffffffffffffffffffffffffffffffffffff16331461218c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8416612209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4446503a2043616e6e6f742064656c69737420455448000000000000000000006044820152606401610860565b6040805180820190915260085473ffffffffffffffffffffffffffffffffffffffff9081168083526009549091166020830152156122a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4446503a2050726576696f75732075706461746520696e636f6d706c657465006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602052604080822081518083019092528054829060ff1660038111156122e9576122e96149e4565b60038111156122fa576122fa6149e4565b8152905461010090046dffffffffffffffffffffffffffff166020909101529050600081516003811115612330576123306149e4565b14612397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a20546f6b656e20616c7265616479206c6973746564000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8681168084529086166020808501829052600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909417905560098054909316821790925560018084526dffffffffffffffffffffffffffff871684840152600091825260069092526040902082518154849383917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169083600381111561245b5761245b6149e4565b021790555060209182015181547fffffffffffffffffffffffffffffffffff0000000000000000000000000000ff166101006dffffffffffffffffffffffffffff9092169190910217905573ffffffffffffffffffffffffffffffffffffffff96909616600090815260069096525050604090932080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166002179055505050565b600061078d338484613967565b60008273ffffffffffffffffffffffffffffffffffffffff8116158061256a5750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115612568576125686149e4565b115b6125d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff85166125f4575047612694565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8616906370a082319060240160206040518083038186803b15801561265957600080fd5b505afa15801561266d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269191906146da565b90505b600061269f60035490565b6126ad90604089901b61486d565b6126c090680100000000000000006148e5565b90506126cc81806148a8565b905060c06126da82806148a8565b901c90506126e881806148a8565b905060c06126f682806148a8565b901c9050604061270f82680100000000000000006148e5565b61271990846148a8565b901c9350848411612786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b6127903388613d53565b73ffffffffffffffffffffffffffffffffffffffff86166127e1576040513390819086156108fc029087906000818181858888f193505050501580156127da573d6000803e3d6000fd5b5050612802565b61280273ffffffffffffffffffffffffffffffffffffffff87163386613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff88166020820152908101859052606081018890527f3b5c196aff80bb96c03b41c96906b66827014de931d1b36e0ede6ee8caeb4bf99060800160405180910390a15050509392505050565b6040805160608101825260075460ff8116151580835267ffffffffffffffff610100830481166020850152690100000000000000000090920490911692820192909252600091612915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b6010851461297f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4446503a2042616420746f6b656e73206172726179206c656e677468000000006044820152606401610860565b601083146129e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4446503a20426164206d6178416d6f756e74206172726179206c656e677468006044820152606401610860565b6000868682816129fb576129fb614a13565b9050602002016020810190612a109190614440565b73ffffffffffffffffffffffffffffffffffffffff1614612a8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4446503a204e6f2045544820666f756e640000000000000000000000000000006044820152606401610860565b3484846000818110612aa157612aa1614a13565b9050602002013514612b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a20496e636f72726563742045544820616d6f756e74000000000000006044820152606401610860565b6000612b1b34476148e5565b9050600081612b3b347001000000000000000000000000000000006148a8565b612b45919061486d565b90506000808060015b6010811015612dbb578b8b82818110612b6957612b69614a13565b9050602002016020810190612b7e9190614440565b91508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1611612c15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4446503a2052657175697265206f726465726564206c697374000000000000006044820152606401610860565b600273ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604090205460ff166003811115612c5157612c516149e4565b11612cb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015612d1d57600080fd5b505afa158015612d31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5591906146da565b9550858a8a83818110612d6a57612d6a614a13565b90506020020135700100000000000000000000000000000000612d8d91906148a8565b612d97919061486d565b935084841015612da5578394505b8192508080612db39061497c565b915050612b4e565b5060075460809067ffffffffffffffff610100909104166040612ddd60035490565b612de790886148a8565b612df292911c6148a8565b901c965060015b6010811015612f0e578b8b82818110612e1457612e14614a13565b9050602002016020810190612e299190614440565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290925073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015612e9157600080fd5b505afa158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec991906146da565b9550612efc33306080612edc898b6148a8565b73ffffffffffffffffffffffffffffffffffffffff87169392911c613c1c565b80612f068161497c565b915050612df9565b50612f193388613f40565b7ff8a0b170c5f5d0c7cf38a00cf2f15f1cac38123cfeaaa2a377217efff62c9c0a3388612f4560035490565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260208401929092529082015260600160405180910390a1612f8434476148e5565b945033806108fc6080612f97888a6148a8565b612fa2911c346148e5565b6040518115909202916000818181858888f19350505050158015612fca573d6000803e3d6000fd5b5050505050505050949350505050565b600a5473ffffffffffffffffffffffffffffffffffffffff16331480613017575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61307d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4446503a2061646d696e207269676874732072657175697265640000000000006044820152606401610860565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314613128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff81166131cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610860565b6131d481614060565b50565b60008473ffffffffffffffffffffffffffffffffffffffff811615806132365750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff166003811115613234576132346149e4565b115b61329c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b8473ffffffffffffffffffffffffffffffffffffffff811615806132f95750600273ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205460ff1660038111156132f7576132f76149e4565b115b61335f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4446503a20546f6b656e206e6f74206c697374656400000000000000000000006044820152606401610860565b6040805160608101825260075460ff8116151580835267ffffffffffffffff61010083048116602085015269010000000000000000009092049091169282019290925290613409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4446503a204c6f636b65640000000000000000000000000000000000000000006044820152606401610860565b600073ffffffffffffffffffffffffffffffffffffffff89166134a05786341461348f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4446503a206261642045544820616d6f756e74000000000000000000000000006044820152606401610860565b61349987476148e5565b9050613561565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b15801561350557600080fd5b505afa158015613519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353d91906146da565b905061356173ffffffffffffffffffffffffffffffffffffffff8a1633308a613c1c565b600073ffffffffffffffffffffffffffffffffffffffff8916613585575047613625565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b1580156135ea57600080fd5b505afa1580156135fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362291906146da565b90505b6000836020015167ffffffffffffffff168961364191906148a8565b905061365181604085901b614855565b61365b83836148a8565b613665919061486d565b96508787116136d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4446503a204e6f206465616c00000000000000000000000000000000000000006044820152606401610860565b73ffffffffffffffffffffffffffffffffffffffff8a16613721576040513390819089156108fc02908a906000818181858888f1935050505015801561371a573d6000803e3d6000fd5b5050613742565b61374273ffffffffffffffffffffffffffffffffffffffff8b163389613cf8565b6040805133815273ffffffffffffffffffffffffffffffffffffffff8d811660208301528c1681830152606081018b90526080810189905290517f6782190c91d4a7e8ad2a867deed6ec0a970cab8ff137ae2bd4abd92b3810f4d39181900360a00190a1505050505050949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316613856576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff82166138f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316613a0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff8216613aad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205481811015613b63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220858503905591851681529081208054849290613ba7908490614855565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613c0d91815260200190565b60405180910390a35b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052613c169085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526140d5565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052613d4e9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401613c76565b505050565b73ffffffffffffffffffffffffffffffffffffffff8216613df6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205481811015613eac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610860565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120838303905560038054849290613ee89084906148e5565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216613fbd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610860565b8060036000828254613fcf9190614855565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081208054839290614009908490614855565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000614137826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166141e19092919063ffffffff16565b805190915015613d4e578080602001905181019061415591906146b8565b613d4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610860565b60606141f084846000856141f8565b949350505050565b60608247101561428a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610860565b843b6142f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610860565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161431b919061478e565b60006040518083038185875af1925050503d8060008114614358576040519150601f19603f3d011682016040523d82523d6000602084013e61435d565b606091505b509150915061436d828286614378565b979650505050505050565b6060831561438757508161087c565b8251156143975782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108609190614804565b803573ffffffffffffffffffffffffffffffffffffffff811681146143ef57600080fd5b919050565b60008083601f84011261440657600080fd5b50813567ffffffffffffffff81111561441e57600080fd5b6020830191508360208260051b850101111561443957600080fd5b9250929050565b60006020828403121561445257600080fd5b61087c826143cb565b6000806040838503121561446e57600080fd5b614477836143cb565b9150614485602084016143cb565b90509250929050565b6000806000606084860312156144a357600080fd5b6144ac846143cb565b92506144ba602085016143cb565b915060408401356dffffffffffffffffffffffffffff811681146144dd57600080fd5b809150509250925092565b6000806000606084860312156144fd57600080fd5b614506846143cb565b9250614514602085016143cb565b9150604084013590509250925092565b6000806000806080858703121561453a57600080fd5b614543856143cb565b9350614551602086016143cb565b93969395505050506040820135916060013590565b6000806040838503121561457957600080fd5b614582836143cb565b946020939093013593505050565b6000806000606084860312156145a557600080fd5b6145ae846143cb565b9250602084013591506145c3604085016143cb565b90509250925092565b600080600080608085870312156145e257600080fd5b6145eb856143cb565b935060208501359250614600604086016143cb565b915061460e606086016143cb565b905092959194509250565b60008060006060848603121561462e57600080fd5b614637846143cb565b95602085013595506040909401359392505050565b6000806000806040858703121561466257600080fd5b843567ffffffffffffffff8082111561467a57600080fd5b614686888389016143f4565b9096509450602087013591508082111561469f57600080fd5b506146ac878288016143f4565b95989497509550505050565b6000602082840312156146ca57600080fd5b8151801515811461087c57600080fd5b6000602082840312156146ec57600080fd5b5051919050565b60008060006060848603121561470857600080fd5b83359250614514602085016143cb565b60008060006040848603121561472d57600080fd5b83359250602084013567ffffffffffffffff81111561474b57600080fd5b614757868287016143f4565b9497909650939450505050565b60006020828403121561477657600080fd5b813567ffffffffffffffff8116811461087c57600080fd5b600082516147a08184602087016148fc565b9190910192915050565b60408101600484106147e5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9281526dffffffffffffffffffffffffffff9190911660209091015290565b60208152600082518060208401526148238160408501602087016148fc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115614868576148686149b5565b500190565b6000826148a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148e0576148e06149b5565b500290565b6000828210156148f7576148f76149b5565b500390565b60005b838110156149175781810151838201526020016148ff565b83811115613c165750506000910152565b600181811c9082168061493c57607f821691505b60208210811415614976577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149ae576149ae6149b5565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212207cb9052f0b4ea8f45675aa854ba8a1c66568dc9590f365c9d60af12db87eb58c64736f6c63430008060033

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

00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000002800129b12195b80000000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9840000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002f57430a6ceda85a67121757785877b4a71b8e6d000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000006468e79a80c0eab0f9a2b574c8d5bc374af594140000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe20000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb00000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae90000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000104465666920506c617a6120496e6465780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045844503200000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : tokensToList (address[]): 0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e,0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984,0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599,0x2F57430a6ceDA85a67121757785877b4a71b8E6D,0x514910771AF9Ca656af840dff83E8264EcF986CA,0x6468e79A80C0eaB0F9A2B574c8d5bC374Af59414,0x6B175474E89094C44Da98b954EedeAC495271d0F,0x6B3595068778DD592e39A122f4f5a5cF09C90fE2,0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0,0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9,0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xc00e94Cb662C3520282E6f5717214004A7f26888,0xD533a949740bb3306d119CC777fa900bA034cd52,0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [1] : mintAmount (uint256): 11806000000000000000000
Arg [2] : name_ (string): Defi Plaza Index
Arg [3] : symbol_ (string): XDP2

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000002800129b12195b80000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 0000000000000000000000000bc529c00c6401aef6d220be8c6ea1667f6ad93e
Arg [6] : 0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f984
Arg [7] : 0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [8] : 0000000000000000000000002f57430a6ceda85a67121757785877b4a71b8e6d
Arg [9] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [10] : 0000000000000000000000006468e79a80c0eab0f9a2b574c8d5bc374af59414
Arg [11] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [12] : 0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
Arg [13] : 0000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb0
Arg [14] : 0000000000000000000000007fc66500c84a76ad7e9c93437bfc5ac33e2ddae9
Arg [15] : 0000000000000000000000009f8f72aa9304c8b593d555f12ef6589cc3a579a2
Arg [16] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [17] : 000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888
Arg [18] : 000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52
Arg [19] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [21] : 4465666920506c617a6120496e64657800000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [23] : 5844503200000000000000000000000000000000000000000000000000000000


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

DefiPlaza is a low-cost distributed exchange on Ethereum.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Chain Token Portfolio % Price Amount Value
ETH6.33%$13.831,127.2161$15,589.4
ETH6.33%$0.28216255,244.1773$15,587.78
ETH6.31%$60,8900.2551$15,531.06
ETH6.29%$6,462.782.396$15,484.59
ETH6.29%$0.99974715,487.4408$15,483.52
ETH6.29%$0.99986115,484.2368$15,482.08
ETH6.28%$0.99844315,489.2863$15,465.17
ETH6.27%$0.00068522,554,623.5119$15,446.08
ETH
Ether (ETH)
6.27%$3,384.724.5599$15,433.9
ETH6.26%$0.55674527,680.1952$15,410.81
ETH6.25%$0.82425318,687.8979$15,403.56
ETH6.23%$49.99306.7653$15,335.2
ETH6.22%$2,474.946.1843$15,305.88
ETH6.21%$2.985,137.5935$15,301.66
ETH6.18%$0.02983510,296.9567$15,222.04
ETH6.00%$0.023026641,835.0866$14,779.17
MATIC<0.01%$0.5567922.9001$1.61
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.