ETH Price: $3,645.31 (+0.88%)
 

Overview

Max Total Supply

1,000,000 PHI

Holders

58

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
5.6 PHI

Value
$0.00
0x2d8ce4d08471868438bfae99c9e7f342deba31d1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Phi

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license
File 1 of 13 : Phi.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/BondingCurveToken.sol";
import "./DelphiaPlatformToken.sol";

contract Phi is Ownable, BondingCurveToken {


    uint32 private constant MAX_RESERVE_RATIO = 1000000;
    uint256 private constant HUNDRED_PERCENT = 1e18;
    uint256 private constant COEFFICIENT = 1e9;
    uint256 private immutable _fee; // 1e18 = 100%, 1e16 = 1%, 0 = 0%
    DelphiaPlatformToken public immutable delphiaPlatformToken;
    uint256 internal _poolBalance;

    event BondedToMint(address indexed receiver, uint256 bonded, uint256 received);
    event BurnedToWithdraw(address indexed receiver, uint256 withdrawn, uint256 received);

    /// @notice Constructor that defines BondingTokenCurve and ERC20 parameters
    /// @param token Address of Delphia Platform Token to bond
    /// @param fee fee percentage to pay
    /// @param gasPrice gasPrice limitation to prevent front running
    /// @notice BondingCurveToken is created with _reserveRatio 500000 to set:
    /// PhiSupply ^ 2 = DelphiaPlatformTokenSupply
    constructor(DelphiaPlatformToken token, uint256 fee, uint256 gasPrice) BondingCurveToken(500000, gasPrice) ERC20("Phi","PHI") {
        delphiaPlatformToken = token;
        require(fee<HUNDRED_PERCENT,
            "Phi: Fee needs to be lower then 100%");
        _fee = fee;
    }

    /// @notice Function that bonds DelphiaPlatformTokens to receive Phis
    /// @param amountToBond Amount of Delphia Platform Token to bond
    /// @param minimalAmountToReceive Minimal amount of Delphia Platform Tokens to receive
    function bondToMint(uint256 amountToBond, uint256 minimalAmountToReceive) external {
        uint256 minted;
        if(totalSupply() == 0){
            minted = amountToBond;
            _mint(msg.sender, amountToBond);
            emit BondedToMint(msg.sender, amountToBond, amountToBond);
        } else {
            minted = _curvedMint(amountToBond);
            emit BondedToMint(msg.sender, amountToBond, minted);
        }
        require(minted >= minimalAmountToReceive,
            "Phi.bondToMint: Mints less tokens then expected");
        _poolBalance += amountToBond;
        require(delphiaPlatformToken.transferFrom(msg.sender, address(this), amountToBond),
            "Phi.bondToMint: Impossible to bond so much tokens");
    }

    /// @notice Function that withdraws DelphiaPlatformTokens by burning Phis
    /// @param amountToBurn Amount of Phi to burn
    /// @param minimalAmountToReceive Minimal amount of Delphia Platform Tokens to receive
    function burnToWithdraw(uint256 amountToBurn, uint256 minimalAmountToReceive) external {
        require(balanceOf(msg.sender) >= amountToBurn,
            "Phi.burnToWithdraw: Not enough funds to withdraw");
        uint256 currentFee = (amountToBurn * _fee) / HUNDRED_PERCENT;
        _transfer(msg.sender, address(this), currentFee);
        uint256 withdrawn = _curvedBurn(amountToBurn - currentFee);
        _poolBalance = _poolBalance - withdrawn;
        require(withdrawn >= minimalAmountToReceive,
            "CordinationToken.burnToWithdraw: Send less tokens then expected");
        require(delphiaPlatformToken.transfer(msg.sender, withdrawn),
            "Failed to transfer DelphiaPlatformTokens");
        emit BurnedToWithdraw(msg.sender, amountToBurn, withdrawn);
    }

    /// @notice Function that returns the overall amount of bonded DelphiaPlatformTokens
    /// @return Balance of DelphiaPlatformTokens of the contract
    function poolBalance() public override view returns (uint256) {
        return _poolBalance;
    }

    function setGasPrice(uint256 gasPrice) public onlyOwner{
        _setGasPrice(gasPrice);
    }
}

File 2 of 13 : DelphiaCredit.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./Phi.sol";

contract DelphiaCredit is Ownable {

    Phi public immutable phi;

    struct Receipt {
        address recipient;
        uint256 amount;
    }

    mapping(address => bool) public operators;
    mapping(address => uint256) public withdrawBalances;
    uint256 public activeBalance;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Distributed(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);
    event NewRDO(address operator);
    event RemovedRDO(address operator);

    /// @dev Reverts if the caller is not a Rewards Dispersement Operator or an owner
    modifier onlyRDOperator() {
        require(owner() == msg.sender || operators[msg.sender] == true,
            "DelphiaCredit: Only RD operators can distribute rewards");
        _;
    }

    /// @notice Constructor of DelphiaCredit
    /// @param token Address of Phi used as a payment
    constructor (Phi token) {
        phi = token;
    }

    /// @notice Function to add RDO
    /// @dev Only owner can add RDO
    /// @param operator Address of the RDO
    function addRDOperator(address operator) external onlyOwner{
        require(operators[operator] == false,
            "DelphiaCredit.addRDOperator: There is already such operator");
        operators[operator] = true;
        emit NewRDO(operator);
    }

    /// @notice Function to remove RDO
    /// @dev Only owner can remove RDO
    /// @param operator Address of the RDO
    function removeRDOperator(address operator) external onlyOwner{
        require(operators[operator] == true,
            "DelphiaCredit.removeRDOperator: There is no such operator");
        operators[operator] = false;
        emit RemovedRDO(operator);
    }

    /**
     * @dev Receives deposited tokens from the outside users.
     * @param amount The amount of tokens sent to the contract.
     */
    function deposit(uint256 amount) external {
        activeBalance += amount;
        require(phi.transferFrom(msg.sender, address (this), amount),
            "DelphiaCredit.deposit: Can't transfer token to the DelphiaCredit");
        emit Deposited(msg.sender, amount);
    }

    /**
    * @dev Withdraws deposited tokens to the outside users.
    */
    function withdraw(address payee) external {
        uint256 balance = withdrawBalances[payee];
        require(balance > 0,
            "DelphiaCredit.withdraw: There is nothing to withdraw");
        withdrawBalances[payee] = 0;
        require(phi.transfer(payee, balance),
            "Failed to transfer Phi");
        emit Withdrawn(payee, balance);
    }

     /**
     * @dev Distributes received tokens after the game.
     * @param receipts Array of addresses and their rewards amount.
     */
    function distribute(Receipt[] memory receipts) external onlyRDOperator{
        require(receipts.length <= 200,
            "DelphiaCredit.distribute: Can distribute 200 receipts at max");
        for(uint64 j = 0; j < receipts.length; j++){
            activeBalance -= receipts[j].amount;
            withdrawBalances[receipts[j].recipient] += receipts[j].amount;
            emit Distributed(receipts[j].recipient, receipts[j].amount);
        }
    }


}

File 3 of 13 : 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 13 : 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;
    }
}

File 5 of 13 : BondingCurveToken.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./BancorFormula.sol";

/**
 * @title Bonding Curve
 * @dev Bonding curve contract based on Bacor formula
 * inspired by bancor protocol and simondlr
 * https://github.com/bancorprotocol/contracts
 * https://github.com/ConsenSys/curationmarkets/blob/master/CurationMarkets.sol
 */
abstract contract BondingCurveToken is ERC20, BancorFormula {
    /*
      reserve ratio, represented in ppm, 1-1000000
      1/3 corresponds to y= multiple * x^2
      1/2 corresponds to y= multiple * x
      2/3 corresponds to y= multiple * x^1/2
      multiple will depends on contract initialization,
      specificallytotalAmount and poolBalance parameters
      we might want to add an 'initialize' function that will allow
      the owner to send ether to the contract and mint a given amount of tokens
    */
    uint32 public reserveRatio;

    /*
      - Front-running attacks are currently mitigated by the following mechanisms:
      TODO - minimum return argument for each conversion
      provides a way to define a minimum/maximum price for the transaction
      - gas price limit prevents users from having control over the order of execution
    */
    uint256 public gasPrice; // maximum gas price for bancor transactions

    event CurvedMint(address sender, uint256 amount, uint256 deposit);
    event CurvedBurn(address sender, uint256 amount, uint256 reimbursement);

    constructor(uint32 _reserveRatio, uint256 _gasPrice) {
        reserveRatio = _reserveRatio;
        gasPrice = _gasPrice;
    }

    function calculateCurvedMintReturn(uint256 amount) public view returns (uint256) {
        return calculatePurchaseReturn(totalSupply(), poolBalance(), reserveRatio, amount);
    }

    function calculateCurvedBurnReturn(uint256 amount) public view returns (uint256) {
        return calculateSaleReturn(totalSupply(), poolBalance(), reserveRatio, amount);
    }

    /**
     * @dev Mint tokens
     */
    function _curvedMint(uint256 deposit) internal returns (uint256) {
        return _curvedMintFor(msg.sender, deposit);
    }

    function _curvedMintFor(address user, uint256 deposit)
    validGasPrice
    validMint(deposit)
    internal
    returns (uint256)
    {
        uint256 amount = calculateCurvedMintReturn(deposit);
        _mint(user, amount);
        emit CurvedMint(user, amount, deposit);
        return amount;
    }

    /**
     * @dev Burn tokens
     * @param amount Amount of tokens to withdraw
     */
    function _curvedBurn(uint256 amount) internal returns (uint256) {
        return _curvedBurnFor(msg.sender, amount);
    }

    function _curvedBurnFor(address user, uint256 amount) validGasPrice validBurn(amount) internal returns (uint256) {
        uint256 reimbursement = calculateCurvedBurnReturn(amount);
        _burn(user, amount);
        emit CurvedBurn(user, amount, reimbursement);
        return reimbursement;
    }

    /**
      @dev Allows the owner to update the gas price limit
      @param _gasPrice The new gas price limit
    */
    function _setGasPrice(uint256 _gasPrice) internal {
        require(_gasPrice > 0);
        gasPrice = _gasPrice;
    }

    /**
     * @dev Abstract method that returns pool balance
     */
    function poolBalance() public virtual view returns (uint256);

    // verifies that the gas price is lower than the universal limit
    modifier validGasPrice() {
        assert(tx.gasprice <= gasPrice);
        _;
    }

    modifier validBurn(uint256 amount) {
        require(amount > 0 && balanceOf(msg.sender) >= amount);
        _;
    }

    modifier validMint(uint256 amount) {
        require(amount > 0);
        _;
    }
}

File 6 of 13 : DelphiaPlatformToken.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;
pragma experimental ABIEncoderV2;

import "./utils/ERC1404.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/// @title Contract that implements the Delphia Platform Token to manage the Bonding Curve
/// @dev This Token is being bonded in the Bonding Curve to gain Phi
///      which is being used in the games. Delphia Platform Token is strictly managed and
///      only whitelisted stakeholders are allowed to own it.
///      Reference implementation of ERC1404 can be found here:
///      https://github.com/simple-restricted-token/reference-implementation/blob/master/contracts/token/ERC1404/ERC1404ReferenceImpl.sol
///      https://github.com/simple-restricted-token/simple-restricted-token/blob/master/contracts/token/ERC1404/SimpleRestrictedToken.sol
contract DelphiaPlatformToken is ERC1404, Ownable {

    uint8 constant private SUCCESS_CODE = 0;
    uint8 constant private ERR_RECIPIENT_CODE = 1;
    uint8 constant private ERR_BONDING_CURVE_CODE = 2;
    uint8 constant private ERR_NOT_WHITELISTED_CODE = 3;
    string constant private SUCCESS_MESSAGE = "DelphiaPlatformToken: SUCCESS";
    string constant private ERR_RECIPIENT_MESSAGE = "DelphiaPlatformToken: RECIPIENT SHOULD BE IN THE WHITELIST";
    string constant private ERR_BONDING_CURVE_MESSAGE = "DelphiaPlatformToken: CAN TRANSFER ONLY TO BONDING CURVE";
    string constant private ERR_NOT_WHITELISTED_MESSAGE = "DelphiaPlatformToken: ONLY WHITELISTED USERS CAN TRANSFER TOKEN";


    struct Role {
        bool awo;
        bool sco;
    }

    mapping(address => Role) public operators;
    mapping(address => bool) public whitelist;
    address public bondingCurve;


    event NewStakeholder(address stakeholer);
    event RemovedStakeholder(address stakeholer);
    event NewSCO(address operator);
    event RemovedSCO(address operator);
    event NewAWO(address operator);
    event RemovedAWO(address operator);

    /// @dev Reverts if the caller is not a Securities Control Operator or an owner
    modifier onlySCOperator() {
        require(owner() == msg.sender || operators[msg.sender].sco == true,
            "DelphiaPlatformToken: Only SC operators can mint/burn token");
        _;
    }

    /// @dev Reverts if the caller is not an Accreditation Whitelist Operator or an owner
    modifier onlyAWOperator() {
        require(owner() == msg.sender || operators[msg.sender].awo == true,
            "DelphiaPlatformToken: Only AW operators can change whitelist");
        _;
    }

    /// @dev Checks if transfer of 'value' amount of tokens from 'from' to 'to' is allowed
    /// @param from address of token sender
    /// @param to address of token receiver
    /// @param value amount of tokens to transfer
    modifier notRestricted (address from, address to, uint256 value) {
        uint8 restrictionCode = detectTransferRestriction(from, to, value);
        require(restrictionCode == SUCCESS_CODE, messageForTransferRestriction(restrictionCode));
        _;
    }

    /// @notice Constructor function of the token
    /// @param name Name of the token as it will be in the ledger
    /// @param symbol Symbol that will represent the token
    constructor(string memory name, string memory symbol)  ERC20(name, symbol) {}

    /// @notice Function to add AWO
    /// @dev Only owner can add AWO
    /// @param operator Address of the AWO
    function addAWOperator(address operator) external onlyOwner{
        require(operators[operator].awo == false,
            "DelphiaPlatformToken.addAWOperator: Operator already exists");
        operators[operator].awo = true;
        emit NewAWO(operator);
    }

    /// @notice Function to add SCO
    /// @dev Only owner can add SCO
    /// @param operator Address of the SCO
    function addSCOperator(address operator) external onlyOwner{
        require(operators[operator].sco == false,
            "DelphiaPlatformToken.addSCOperator: Operator already exists");
        operators[operator].sco = true;
        emit NewSCO(operator);
    }

    /// @notice Function to remove AWO
    /// @dev Only owner can remove AWO
    /// @param operator Address of the AWO
    function removeAWOperator(address operator) external onlyOwner{
        require(operators[operator].awo == true,
            "DelphiaPlatformToken.removeAWOperator: There is no such operator");
        operators[operator].awo = false;
        emit RemovedAWO(operator);
    }

    /// @notice Function to remove SCO
    /// @dev Only owner can remove SCO
    /// @param operator Address of the SCO
    function removeSCOperator(address operator) external onlyOwner{
        require(operators[operator].sco == true,
            "DelphiaPlatformToken.removeSCOperator: There is no such operator");
        operators[operator].sco = false;
        emit RemovedSCO(operator);
    }

    /// @notice Function to mint DelphiaPlatformToken
    /// @dev Only SCO can mint tokens to the whitelisted addresses
    /// @param account Address of the token receiver
    /// @param amount Amount of minted tokens
    function mint(address account, uint256 amount) external onlySCOperator{
        require(whitelist[account] == true,
            "DelphiaPlatformToken.mint: Only whitelisted users can own tokens");
        _mint(account, amount);
    }

    /// @notice Function to burn DelphiaPlatformToken
    /// @dev Only SCO can burn tokens from addresses
    /// @param account Address from which tokens will be burned
    /// @param amount Amount of burned tokens
    function burn(address account, uint256 amount) external onlySCOperator{
        _burn(account, amount);
    }

    /// @notice Function to add address to Whitelist
    /// @dev Only AWO can add address to Whitelist
    /// @param account Address to add to the Whitelist
    function addToWhitelist(address account) public onlyAWOperator{
        whitelist[account] = true;
        emit NewStakeholder(account);
    }

    /// @notice Function to remove address from Whitelist
    /// @dev Only AWO can remove address from Whitelist on removal from the list user loses all of the tokens
    /// @param account Address to remove from the Whitelist
    function removeFromWhitelist(address account) external onlyAWOperator{
        require(whitelist[account] == true,
            "DelphiaPlatformToken.removeFromWhitelist: User not in whitelist");
        require(account != bondingCurve,
            "DelphiaPlatformToken.removeFromWhitelist: Can't del bondingCurve");
        whitelist[account] = false;
        emit RemovedStakeholder(account);
    }

    /// @notice Function to check the restriction for token transfer
    /// @param from address of sender
    /// @param to address of receiver
    /// @param value amount of tokens to transfer
    /// @return restrictionCode code of restriction for specific transfer
    function detectTransferRestriction (address from, address to, uint256 value)
        public
        view
        override
        returns (uint8 restrictionCode)
    {
        require(value > 0, "DelphiaPlatformToken: need to transfer more than 0.");
        if(from == bondingCurve){
            if(whitelist[to] == true){
                restrictionCode = SUCCESS_CODE;
            } else {
                restrictionCode = ERR_RECIPIENT_CODE;
            }
        } else if (whitelist[from]){
            if(to == bondingCurve){
                restrictionCode = SUCCESS_CODE;
            } else {
                restrictionCode = ERR_BONDING_CURVE_CODE;
            }
        } else{
            restrictionCode = ERR_NOT_WHITELISTED_CODE;
        }
    }


    /// @notice Function to return restriction message based on the code
    /// @param restrictionCode code of restriction
    /// @return message message of restriction for specific code
    function messageForTransferRestriction (uint8 restrictionCode)
        public
        pure
        override
        returns (string memory message)
    {
        if (restrictionCode == SUCCESS_CODE) {
            message = SUCCESS_MESSAGE;
        } else if (restrictionCode == ERR_RECIPIENT_CODE) {
            message = ERR_RECIPIENT_MESSAGE;
        } else if (restrictionCode == ERR_BONDING_CURVE_CODE) {
            message = ERR_BONDING_CURVE_MESSAGE;
        } else {
            message = ERR_NOT_WHITELISTED_MESSAGE;
        }
    }


    /// @notice Function to transfer tokens between whitelisted users
    /// @param to Address to which tokens are sent
    /// @param value Amount of tokens to send
    function transfer(address to, uint256 value)
        public
        override
        notRestricted(msg.sender, to, value)
        returns (bool)
    {
        _transfer(msg.sender, to, value);
        return true;
    }

    /// @notice Function to transfer tokens from some another address(used after approve)
    /// @dev Only Whitelisted addresses that have the approval can send or receive tokens
    /// @param sender Address that will be used to send tokens from
    /// @param recipient Address that will receive tokens
    /// @param amount Amount of tokens that may be sent
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    )
        public
        override
        notRestricted(sender, recipient, amount)
        returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = allowance(sender, msg.sender);
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");

        unchecked {
            _approve(sender, msg.sender, currentAllowance - amount);
        }

        return true;
    }

    /// @notice Function to set BondingCurve address for the contract
    /// @param curve address of the BondingCurve
    function setupBondingCurve(address curve) external onlyOwner {
        whitelist[bondingCurve] = false;
        bondingCurve = curve;
        whitelist[bondingCurve] = true;
    }


    /// @notice Function to check if user is in a whitelist
    /// @param user Address to check
    /// @return If address is in a whitelist
    function isInWhitelist(address user) external view returns (bool) {
        return whitelist[user];
    }
}

File 7 of 13 : 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 8 of 13 : BancorFormula.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;


import "./Power.sol";

/**
* @title Bancor formula by Bancor
* @dev Modified from the original by Slava Balasanov
* https://github.com/bancorprotocol/contracts
* Split Power.sol out from BancorFormula.sol and replace SafeMath formulas with zeppelin's SafeMath
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
* and to You under the Apache License, Version 2.0. "
*/
contract BancorFormula is Power {
    string public version = "0.3";
    uint32 private constant MAX_WEIGHT = 1000000;

    /**
    * @dev given a token supply, connector balance, weight and a deposit amount (in the connector token),
    * calculates the return for a given conversion (in the main token)
    *
    * Formula:
    * Return = _supply * ((1 + _depositAmount / _connectorBalance) ^ (_connectorWeight / 1000000) - 1)
    *
    * @param _supply              token total supply
    * @param _connectorBalance    total connector balance
    * @param _connectorWeight     connector weight, represented in ppm, 1-1000000
    * @param _depositAmount       deposit amount, in connector token
    *
    *  @return purchase return amount
    */
    function calculatePurchaseReturn(
        uint256 _supply,
        uint256 _connectorBalance,
        uint32 _connectorWeight,
        uint256 _depositAmount) public view returns (uint256)
    {
        // validate input
        require(_supply > 0, "BancorFormula: Supply not > 0.");
        require(_connectorBalance > 0, "BancorFormula: ConnectorBalance not > 0");
        require(_connectorWeight > 0, "BancorFormula: Connector Weight not > 0");
        require(_connectorWeight <= MAX_WEIGHT, "BancorFormula: Connector Weight not <= MAX_WEIGHT");

        // special case for 0 deposit amount
        if (_depositAmount == 0) {
            return 0;
        }
        // special case if the weight = 100%
        if (_connectorWeight == MAX_WEIGHT) {
            return _supply * _depositAmount / _connectorBalance;
        }
        uint256 result;
        uint8 precision;
        uint256 baseN = _depositAmount + _connectorBalance;
        (result, precision) = power(
            baseN, _connectorBalance, _connectorWeight, MAX_WEIGHT
        );
        uint256 newTokenSupply = _supply * result >> precision;
        return newTokenSupply - _supply;
    }

    /**
    * @dev given a token supply, connector balance, weight and a sell amount (in the main token),
    * calculates the return for a given conversion (in the connector token)
    *
    * Formula:
    * Return = _connectorBalance * (1 - (1 - _sellAmount / _supply) ^ (1 / (_connectorWeight / 1000000)))
    *
    * @param _supply              token total supply
    * @param _connectorBalance    total connector
    * @param _connectorWeight     constant connector Weight, represented in ppm, 1-1000000
    * @param _sellAmount          sell amount, in the token itself
    *
    * @return sale return amount
    */
    function calculateSaleReturn(
        uint256 _supply,
        uint256 _connectorBalance,
        uint32 _connectorWeight,
        uint256 _sellAmount) public view returns (uint256)
    {
        // validate input
        require(_supply > 0, "BancorFormula: Supply not > 0.");
        require(_connectorBalance > 0, "BancorFormula: ConnectorBalance not > 0");
        require(_connectorWeight > 0, "BancorFormula: Connector Weight not > 0");
        require(_connectorWeight <= MAX_WEIGHT, "BancorFormula: Connector Weight not <= MAX_WEIGHT");
        require(_sellAmount <= _supply, "BancorFormula: Sell Amount not <= Supply");

        // special case for 0 sell amount
        if (_sellAmount == 0) {
            return 0;
        }
        // special case for selling the entire supply
        if (_sellAmount == _supply) {
            return _connectorBalance;
        }
        // special case if the weight = 100%
        if (_connectorWeight == MAX_WEIGHT) {
            return _connectorBalance * _sellAmount / _supply;
        }
        uint256 result;
        uint8 precision;
        uint256 baseD = _supply - _sellAmount;
        (result, precision) = power(
            _supply, baseD, MAX_WEIGHT, _connectorWeight
        );
        uint256 oldBalance = _connectorBalance * result;
        uint256 newBalance = _connectorBalance << precision;
        return (oldBalance - newBalance) / result;
    }
}

File 9 of 13 : 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 10 of 13 : 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 11 of 13 : Power.sol
// SPDX-License-Identifier: Apache License 2.0

/* Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!)  The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2017 Bprotocol Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

pragma solidity 0.8.16;

/**
* @title Power function by Bancor
* @dev https://github.com/bancorprotocol/contracts
*
* Modified from the original by Slava Balasanov & Tarrence van As
*
* Split Power.sol out from BancorFormula.sol
*/
contract Power {

    uint256 private constant ONE = 1;
    uint8 private constant MIN_PRECISION = 32;
    uint8 private constant MAX_PRECISION = 127;

    /**
      The values below depend on MAX_PRECISION. If you choose to change it:
      Apply the same change in file 'PrintIntScalingFactors.py', run it and paste the results below.
    */
    uint256 private constant FIXED_1 = 0x080000000000000000000000000000000;
    uint256 private constant FIXED_2 = 0x100000000000000000000000000000000;
    uint256 private constant MAX_NUM = 0x200000000000000000000000000000000;

    /**
        Auto-generated via 'PrintLn2ScalingFactors.py'
    */
    uint256 private constant LN2_NUMERATOR   = 0x3f80fe03f80fe03f80fe03f80fe03f8;
    uint256 private constant LN2_DENOMINATOR = 0x5b9de1d10bf4103d647b0955897ba80;

    /**
        Auto-generated via 'PrintFunctionOptimalLog.py' and 'PrintFunctionOptimalExp.py'
    */
    uint256 private constant OPT_LOG_MAX_VAL =
    0x15bf0a8b1457695355fb8ac404e7a79e3;
    uint256 private constant OPT_EXP_MAX_VAL =
    0x800000000000000000000000000000000;

    /**
      The values below depend on MIN_PRECISION and MAX_PRECISION. If you choose to change either one of them:
      Apply the same change in file 'PrintFunctionBancorFormula.py', run it and paste the results below.
    */
    uint256[128] private maxExpArray;
    constructor() {
        //  maxExpArray[0] = 0x6bffffffffffffffffffffffffffffffff;
        //  maxExpArray[1] = 0x67ffffffffffffffffffffffffffffffff;
        //  maxExpArray[2] = 0x637fffffffffffffffffffffffffffffff;
        //  maxExpArray[3] = 0x5f6fffffffffffffffffffffffffffffff;
        //  maxExpArray[4] = 0x5b77ffffffffffffffffffffffffffffff;
        //  maxExpArray[5] = 0x57b3ffffffffffffffffffffffffffffff;
        //  maxExpArray[6] = 0x5419ffffffffffffffffffffffffffffff;
        //  maxExpArray[7] = 0x50a2ffffffffffffffffffffffffffffff;
        //  maxExpArray[8] = 0x4d517fffffffffffffffffffffffffffff;
        //  maxExpArray[9] = 0x4a233fffffffffffffffffffffffffffff;
        //  maxExpArray[10] = 0x47165fffffffffffffffffffffffffffff;
        //  maxExpArray[11] = 0x4429afffffffffffffffffffffffffffff;
        //  maxExpArray[12] = 0x415bc7ffffffffffffffffffffffffffff;
        //  maxExpArray[13] = 0x3eab73ffffffffffffffffffffffffffff;
        //  maxExpArray[14] = 0x3c1771ffffffffffffffffffffffffffff;
        //  maxExpArray[15] = 0x399e96ffffffffffffffffffffffffffff;
        //  maxExpArray[16] = 0x373fc47fffffffffffffffffffffffffff;
        //  maxExpArray[17] = 0x34f9e8ffffffffffffffffffffffffffff;
        //  maxExpArray[18] = 0x32cbfd5fffffffffffffffffffffffffff;
        //  maxExpArray[19] = 0x30b5057fffffffffffffffffffffffffff;
        //  maxExpArray[20] = 0x2eb40f9fffffffffffffffffffffffffff;
        //  maxExpArray[21] = 0x2cc8340fffffffffffffffffffffffffff;
        //  maxExpArray[22] = 0x2af09481ffffffffffffffffffffffffff;
        //  maxExpArray[23] = 0x292c5bddffffffffffffffffffffffffff;
        //  maxExpArray[24] = 0x277abdcdffffffffffffffffffffffffff;
        //  maxExpArray[25] = 0x25daf6657fffffffffffffffffffffffff;
        //  maxExpArray[26] = 0x244c49c65fffffffffffffffffffffffff;
        //  maxExpArray[27] = 0x22ce03cd5fffffffffffffffffffffffff;
        //  maxExpArray[28] = 0x215f77c047ffffffffffffffffffffffff;
        //  maxExpArray[29] = 0x1fffffffffffffffffffffffffffffffff;
        //  maxExpArray[30] = 0x1eaefdbdabffffffffffffffffffffffff;
        //  maxExpArray[31] = 0x1d6bd8b2ebffffffffffffffffffffffff;
        maxExpArray[32] = 0x1c35fedd14ffffffffffffffffffffffff;
        maxExpArray[33] = 0x1b0ce43b323fffffffffffffffffffffff;
        maxExpArray[34] = 0x19f0028ec1ffffffffffffffffffffffff;
        maxExpArray[35] = 0x18ded91f0e7fffffffffffffffffffffff;
        maxExpArray[36] = 0x17d8ec7f0417ffffffffffffffffffffff;
        maxExpArray[37] = 0x16ddc6556cdbffffffffffffffffffffff;
        maxExpArray[38] = 0x15ecf52776a1ffffffffffffffffffffff;
        maxExpArray[39] = 0x15060c256cb2ffffffffffffffffffffff;
        maxExpArray[40] = 0x1428a2f98d72ffffffffffffffffffffff;
        maxExpArray[41] = 0x13545598e5c23fffffffffffffffffffff;
        maxExpArray[42] = 0x1288c4161ce1dfffffffffffffffffffff;
        maxExpArray[43] = 0x11c592761c666fffffffffffffffffffff;
        maxExpArray[44] = 0x110a688680a757ffffffffffffffffffff;
        maxExpArray[45] = 0x1056f1b5bedf77ffffffffffffffffffff;
        maxExpArray[46] = 0x0faadceceeff8bffffffffffffffffffff;
        maxExpArray[47] = 0x0f05dc6b27edadffffffffffffffffffff;
        maxExpArray[48] = 0x0e67a5a25da4107fffffffffffffffffff;
        maxExpArray[49] = 0x0dcff115b14eedffffffffffffffffffff;
        maxExpArray[50] = 0x0d3e7a392431239fffffffffffffffffff;
        maxExpArray[51] = 0x0cb2ff529eb71e4fffffffffffffffffff;
        maxExpArray[52] = 0x0c2d415c3db974afffffffffffffffffff;
        maxExpArray[53] = 0x0bad03e7d883f69bffffffffffffffffff;
        maxExpArray[54] = 0x0b320d03b2c343d5ffffffffffffffffff;
        maxExpArray[55] = 0x0abc25204e02828dffffffffffffffffff;
        maxExpArray[56] = 0x0a4b16f74ee4bb207fffffffffffffffff;
        maxExpArray[57] = 0x09deaf736ac1f569ffffffffffffffffff;
        maxExpArray[58] = 0x0976bd9952c7aa957fffffffffffffffff;
        maxExpArray[59] = 0x09131271922eaa606fffffffffffffffff;
        maxExpArray[60] = 0x08b380f3558668c46fffffffffffffffff;
        maxExpArray[61] = 0x0857ddf0117efa215bffffffffffffffff;
        maxExpArray[62] = 0x07ffffffffffffffffffffffffffffffff;
        maxExpArray[63] = 0x07abbf6f6abb9d087fffffffffffffffff;
        maxExpArray[64] = 0x075af62cbac95f7dfa7fffffffffffffff;
        maxExpArray[65] = 0x070d7fb7452e187ac13fffffffffffffff;
        maxExpArray[66] = 0x06c3390ecc8af379295fffffffffffffff;
        maxExpArray[67] = 0x067c00a3b07ffc01fd6fffffffffffffff;
        maxExpArray[68] = 0x0637b647c39cbb9d3d27ffffffffffffff;
        maxExpArray[69] = 0x05f63b1fc104dbd39587ffffffffffffff;
        maxExpArray[70] = 0x05b771955b36e12f7235ffffffffffffff;
        maxExpArray[71] = 0x057b3d49dda84556d6f6ffffffffffffff;
        maxExpArray[72] = 0x054183095b2c8ececf30ffffffffffffff;
        maxExpArray[73] = 0x050a28be635ca2b888f77fffffffffffff;
        maxExpArray[74] = 0x04d5156639708c9db33c3fffffffffffff;
        maxExpArray[75] = 0x04a23105873875bd52dfdfffffffffffff;
        maxExpArray[76] = 0x0471649d87199aa990756fffffffffffff;
        maxExpArray[77] = 0x04429a21a029d4c1457cfbffffffffffff;
        maxExpArray[78] = 0x0415bc6d6fb7dd71af2cb3ffffffffffff;
        maxExpArray[79] = 0x03eab73b3bbfe282243ce1ffffffffffff;
        maxExpArray[80] = 0x03c1771ac9fb6b4c18e229ffffffffffff;
        maxExpArray[81] = 0x0399e96897690418f785257fffffffffff;
        maxExpArray[82] = 0x0373fc456c53bb779bf0ea9fffffffffff;
        maxExpArray[83] = 0x034f9e8e490c48e67e6ab8bfffffffffff;
        maxExpArray[84] = 0x032cbfd4a7adc790560b3337ffffffffff;
        maxExpArray[85] = 0x030b50570f6e5d2acca94613ffffffffff;
        maxExpArray[86] = 0x02eb40f9f620fda6b56c2861ffffffffff;
        maxExpArray[87] = 0x02cc8340ecb0d0f520a6af58ffffffffff;
        maxExpArray[88] = 0x02af09481380a0a35cf1ba02ffffffffff;
        maxExpArray[89] = 0x0292c5bdd3b92ec810287b1b3fffffffff;
        maxExpArray[90] = 0x0277abdcdab07d5a77ac6d6b9fffffffff;
        maxExpArray[91] = 0x025daf6654b1eaa55fd64df5efffffffff;
        maxExpArray[92] = 0x0244c49c648baa98192dce88b7ffffffff;
        maxExpArray[93] = 0x022ce03cd5619a311b2471268bffffffff;
        maxExpArray[94] = 0x0215f77c045fbe885654a44a0fffffffff;
        maxExpArray[95] = 0x01ffffffffffffffffffffffffffffffff;
        maxExpArray[96] = 0x01eaefdbdaaee7421fc4d3ede5ffffffff;
        maxExpArray[97] = 0x01d6bd8b2eb257df7e8ca57b09bfffffff;
        maxExpArray[98] = 0x01c35fedd14b861eb0443f7f133fffffff;
        maxExpArray[99] = 0x01b0ce43b322bcde4a56e8ada5afffffff;
        maxExpArray[100] = 0x019f0028ec1fff007f5a195a39dfffffff;
        maxExpArray[101] = 0x018ded91f0e72ee74f49b15ba527ffffff;
        maxExpArray[102] = 0x017d8ec7f04136f4e5615fd41a63ffffff;
        maxExpArray[103] = 0x016ddc6556cdb84bdc8d12d22e6fffffff;
        maxExpArray[104] = 0x015ecf52776a1155b5bd8395814f7fffff;
        maxExpArray[105] = 0x015060c256cb23b3b3cc3754cf40ffffff;
        maxExpArray[106] = 0x01428a2f98d728ae223ddab715be3fffff;
        maxExpArray[107] = 0x013545598e5c23276ccf0ede68034fffff;
        maxExpArray[108] = 0x01288c4161ce1d6f54b7f61081194fffff;
        maxExpArray[109] = 0x011c592761c666aa641d5a01a40f17ffff;
        maxExpArray[110] = 0x0110a688680a7530515f3e6e6cfdcdffff;
        maxExpArray[111] = 0x01056f1b5bedf75c6bcb2ce8aed428ffff;
        maxExpArray[112] = 0x00faadceceeff8a0890f3875f008277fff;
        maxExpArray[113] = 0x00f05dc6b27edad306388a600f6ba0bfff;
        maxExpArray[114] = 0x00e67a5a25da41063de1495d5b18cdbfff;
        maxExpArray[115] = 0x00dcff115b14eedde6fc3aa5353f2e4fff;
        maxExpArray[116] = 0x00d3e7a3924312399f9aae2e0f868f8fff;
        maxExpArray[117] = 0x00cb2ff529eb71e41582cccd5a1ee26fff;
        maxExpArray[118] = 0x00c2d415c3db974ab32a51840c0b67edff;
        maxExpArray[119] = 0x00bad03e7d883f69ad5b0a186184e06bff;
        maxExpArray[120] = 0x00b320d03b2c343d4829abd6075f0cc5ff;
        maxExpArray[121] = 0x00abc25204e02828d73c6e80bcdb1a95bf;
        maxExpArray[122] = 0x00a4b16f74ee4bb2040a1ec6c15fbbf2df;
        maxExpArray[123] = 0x009deaf736ac1f569deb1b5ae3f36c130f;
        maxExpArray[124] = 0x00976bd9952c7aa957f5937d790ef65037;
        maxExpArray[125] = 0x009131271922eaa6064b73a22d0bd4f2bf;
        maxExpArray[126] = 0x008b380f3558668c46c91c49a2f8e967b9;
        maxExpArray[127] = 0x00857ddf0117efa215952912839f6473e6;
    }

    /**
      General Description:
          Determine a value of precision.
          Calculate an integer approximation of (_baseN / _baseD) ^ (_expN / _expD) * 2 ^ precision.
          Return the result along with the precision used.
       Detailed Description:
          Instead of calculating "base ^ exp", we calculate "e ^ (log(base) * exp)".
          The value of "log(base)" is represented with an integer slightly smaller than "log(base) * 2 ^ precision".
          The larger "precision" is, the more accurately this value represents the real value.
          However, the larger "precision" is, the more bits are required in order to store this value.
          And the exponentiation function, which takes "x" and calculates "e ^ x", is limited to a maximum exponent (maximum value of "x").
          This maximum exponent depends on the "precision" used, and it is given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
          Hence we need to determine the highest precision which can be used for the given input, before calling the exponentiation function.
          This allows us to compute "base ^ exp" with maximum accuracy and without exceeding 256 bits in any of the intermediate computations.
          This functions assumes that "_expN < 2 ^ 256 / log(MAX_NUM - 1)", otherwise the multiplication should be replaced with a "safeMul".
    */
    function power(
        uint256 _baseN,
        uint256 _baseD,
        uint32 _expN,
        uint32 _expD
    ) internal view returns (uint256, uint8)
    {
        assert(_baseN < MAX_NUM);
        require(_baseN >= _baseD, "Bases < 1 are not supported.");

        uint256 baseLog;
        uint256 base = _baseN * FIXED_1 / _baseD;
        if (base < OPT_LOG_MAX_VAL) {
            baseLog = optimalLog(base);
        } else {
            baseLog = generalLog(base);
        }

        uint256 baseLogTimesExp = baseLog * _expN / _expD;
        if (baseLogTimesExp < OPT_EXP_MAX_VAL) {
            return (optimalExp(baseLogTimesExp), MAX_PRECISION);
        } else {
            uint8 precision = findPositionInMaxExpArray(baseLogTimesExp);
            return (generalExp(baseLogTimesExp >> (MAX_PRECISION - precision), precision), precision);
        }
    }

    /**
        Compute log(x / FIXED_1) * FIXED_1.
        This functions assumes that "x >= FIXED_1", because the output would be negative otherwise.
    */
    function generalLog(uint256 _x) internal pure returns (uint256) {
        uint256 res = 0;
        uint256 x = _x;

        // If x >= 2, then we compute the integer part of log2(x), which is larger than 0.
        if (x >= FIXED_2) {
            uint8 count = floorLog2(x / FIXED_1);
            x >>= count; // now x < 2
            res = count * FIXED_1;
        }

        // If x > 1, then we compute the fraction part of log2(x), which is larger than 0.
        if (x > FIXED_1) {
            for (uint8 i = MAX_PRECISION; i > 0; --i) {
                x = (x * x) / FIXED_1; // now 1 < x < 4
                if (x >= FIXED_2) {
                    x >>= 1; // now 1 < x < 2
                    res += ONE << (i - 1);
                }
            }
        }

        return res * LN2_NUMERATOR / LN2_DENOMINATOR;
    }

    /**
      Compute the largest integer smaller than or equal to the binary logarithm of the input.
    */
    function floorLog2(uint256 _n) internal pure returns (uint8) {
        uint8 res = 0;
        uint256 n = _n;

        if (n < 256) {
            // At most 8 iterations
            while (n > 1) {
                n >>= 1;
                res += 1;
            }
        } else {
            // Exactly 8 iterations
            for (uint8 s = 128; s > 0; s >>= 1) {
                if (n >= (ONE << s)) {
                    n >>= s;
                    res |= s;
                }
            }
        }

        return res;
    }

    /**
        The global "maxExpArray" is sorted in descending order, and therefore the following statements are equivalent:
        - This function finds the position of [the smallest value in "maxExpArray" larger than or equal to "x"]
        - This function finds the highest position of [a value in "maxExpArray" larger than or equal to "x"]
    */
    function findPositionInMaxExpArray(uint256 _x)
    internal view returns (uint8)
    {
        uint8 lo = MIN_PRECISION;
        uint8 hi = MAX_PRECISION;

        while (lo + 1 < hi) {
            uint8 mid = (lo + hi) / 2;
            if (maxExpArray[mid] >= _x)
                lo = mid;
            else
                hi = mid;
        }

        if (maxExpArray[hi] >= _x)
            return hi;
        if (maxExpArray[lo] >= _x)
            return lo;

        assert(false);
        return 0;
    }

    /* solium-disable */
    /**
         This function can be auto-generated by the script 'PrintFunctionGeneralExp.py'.
         It approximates "e ^ x" via maclaurin summation: "(x^0)/0! + (x^1)/1! + ... + (x^n)/n!".
         It returns "e ^ (x / 2 ^ precision) * 2 ^ precision", that is, the result is upshifted for accuracy.
         The global "maxExpArray" maps each "precision" to "((maximumExponent + 1) << (MAX_PRECISION - precision)) - 1".
         The maximum permitted value for "x" is therefore given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
     */
    function generalExp(uint256 _x, uint8 _precision) internal pure returns (uint256) {
        uint256 xi = _x;
        uint256 res = 0;

        xi = (xi * _x) >> _precision; res += xi * 0x3442c4e6074a82f1797f72ac0000000; // add x^02 * (33! / 02!)
        xi = (xi * _x) >> _precision; res += xi * 0x116b96f757c380fb287fd0e40000000; // add x^03 * (33! / 03!)
        xi = (xi * _x) >> _precision; res += xi * 0x045ae5bdd5f0e03eca1ff4390000000; // add x^04 * (33! / 04!)
        xi = (xi * _x) >> _precision; res += xi * 0x00defabf91302cd95b9ffda50000000; // add x^05 * (33! / 05!)
        xi = (xi * _x) >> _precision; res += xi * 0x002529ca9832b22439efff9b8000000; // add x^06 * (33! / 06!)
        xi = (xi * _x) >> _precision; res += xi * 0x00054f1cf12bd04e516b6da88000000; // add x^07 * (33! / 07!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000a9e39e257a09ca2d6db51000000; // add x^08 * (33! / 08!)
        xi = (xi * _x) >> _precision; res += xi * 0x000012e066e7b839fa050c309000000; // add x^09 * (33! / 09!)
        xi = (xi * _x) >> _precision; res += xi * 0x000001e33d7d926c329a1ad1a800000; // add x^10 * (33! / 10!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000002bee513bdb4a6b19b5f800000; // add x^11 * (33! / 11!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000003a9316fa79b88eccf2a00000; // add x^12 * (33! / 12!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000048177ebe1fa812375200000; // add x^13 * (33! / 13!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000005263fe90242dcbacf00000; // add x^14 * (33! / 14!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000057e22099c030d94100000; // add x^15 * (33! / 15!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000057e22099c030d9410000; // add x^16 * (33! / 16!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000052b6b54569976310000; // add x^17 * (33! / 17!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000004985f67696bf748000; // add x^18 * (33! / 18!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000003dea12ea99e498000; // add x^19 * (33! / 19!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000031880f2214b6e000; // add x^20 * (33! / 20!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000025bcff56eb36000; // add x^21 * (33! / 21!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000001b722e10ab1000; // add x^22 * (33! / 22!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000001317c70077000; // add x^23 * (33! / 23!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000cba84aafa00; // add x^24 * (33! / 24!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000082573a0a00; // add x^25 * (33! / 25!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000005035ad900; // add x^26 * (33! / 26!)
        xi = (xi * _x) >> _precision; res += xi * 0x000000000000000000000002f881b00; // add x^27 * (33! / 27!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000001b29340; // add x^28 * (33! / 28!)
        xi = (xi * _x) >> _precision; res += xi * 0x00000000000000000000000000efc40; // add x^29 * (33! / 29!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000007fe0; // add x^30 * (33! / 30!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000420; // add x^31 * (33! / 31!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000021; // add x^32 * (33! / 32!)
        xi = (xi * _x) >> _precision; res += xi * 0x0000000000000000000000000000001; // add x^33 * (33! / 33!)

        return res / 0x688589cc0e9505e2f2fee5580000000 + _x + (ONE << _precision); // divide by 33! and then add x^1 / 1! + x^0 / 0!
    }

    /**
        Return log(x / FIXED_1) * FIXED_1
        Input range: FIXED_1 <= x <= LOG_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalLog.py'
    */
    function optimalLog(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y;
        uint256 z;
        uint256 w;

        if (x >= 0xd3094c70f034de4b96ff7d5b6f99fcd8) {res += 0x40000000000000000000000000000000; x = x * FIXED_1 / 0xd3094c70f034de4b96ff7d5b6f99fcd8;}
        if (x >= 0xa45af1e1f40c333b3de1db4dd55f29a7) {res += 0x20000000000000000000000000000000; x = x * FIXED_1 / 0xa45af1e1f40c333b3de1db4dd55f29a7;}
        if (x >= 0x910b022db7ae67ce76b441c27035c6a1) {res += 0x10000000000000000000000000000000; x = x * FIXED_1 / 0x910b022db7ae67ce76b441c27035c6a1;}
        if (x >= 0x88415abbe9a76bead8d00cf112e4d4a8) {res += 0x08000000000000000000000000000000; x = x * FIXED_1 / 0x88415abbe9a76bead8d00cf112e4d4a8;}
        if (x >= 0x84102b00893f64c705e841d5d4064bd3) {res += 0x04000000000000000000000000000000; x = x * FIXED_1 / 0x84102b00893f64c705e841d5d4064bd3;}
        if (x >= 0x8204055aaef1c8bd5c3259f4822735a2) {res += 0x02000000000000000000000000000000; x = x * FIXED_1 / 0x8204055aaef1c8bd5c3259f4822735a2;}
        if (x >= 0x810100ab00222d861931c15e39b44e99) {res += 0x01000000000000000000000000000000; x = x * FIXED_1 / 0x810100ab00222d861931c15e39b44e99;}
        if (x >= 0x808040155aabbbe9451521693554f733) {res += 0x00800000000000000000000000000000; x = x * FIXED_1 / 0x808040155aabbbe9451521693554f733;}

        z = y = x - FIXED_1;
        w = y * y / FIXED_1;
        res += z * (0x100000000000000000000000000000000 - y) / 0x100000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - y) / 0x200000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x099999999999999999999999999999999 - y) / 0x300000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x092492492492492492492492492492492 - y) / 0x400000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x08e38e38e38e38e38e38e38e38e38e38e - y) / 0x500000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x08ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b - y) / 0x600000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x089d89d89d89d89d89d89d89d89d89d89 - y) / 0x700000000000000000000000000000000; z = z * w / FIXED_1;
        res += z * (0x088888888888888888888888888888888 - y) / 0x800000000000000000000000000000000;

        return res;
    }

    /**
        Return e ^ (x / FIXED_1) * FIXED_1
        Input range: 0 <= x <= OPT_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalExp.py'
    */
    function optimalExp(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y;
        uint256 z;

        z = y = x % 0x10000000000000000000000000000000;
        z = z * y / FIXED_1; res += z * 0x10e1b3be415a0000; // add y^02 * (20! / 02!)
        z = z * y / FIXED_1; res += z * 0x05a0913f6b1e0000; // add y^03 * (20! / 03!)
        z = z * y / FIXED_1; res += z * 0x0168244fdac78000; // add y^04 * (20! / 04!)
        z = z * y / FIXED_1; res += z * 0x004807432bc18000; // add y^05 * (20! / 05!)
        z = z * y / FIXED_1; res += z * 0x000c0135dca04000; // add y^06 * (20! / 06!)
        z = z * y / FIXED_1; res += z * 0x0001b707b1cdc000; // add y^07 * (20! / 07!)
        z = z * y / FIXED_1; res += z * 0x000036e0f639b800; // add y^08 * (20! / 08!)
        z = z * y / FIXED_1; res += z * 0x00000618fee9f800; // add y^09 * (20! / 09!)
        z = z * y / FIXED_1; res += z * 0x0000009c197dcc00; // add y^10 * (20! / 10!)
        z = z * y / FIXED_1; res += z * 0x0000000e30dce400; // add y^11 * (20! / 11!)
        z = z * y / FIXED_1; res += z * 0x000000012ebd1300; // add y^12 * (20! / 12!)
        z = z * y / FIXED_1; res += z * 0x0000000017499f00; // add y^13 * (20! / 13!)
        z = z * y / FIXED_1; res += z * 0x0000000001a9d480; // add y^14 * (20! / 14!)
        z = z * y / FIXED_1; res += z * 0x00000000001c6380; // add y^15 * (20! / 15!)
        z = z * y / FIXED_1; res += z * 0x000000000001c638; // add y^16 * (20! / 16!)
        z = z * y / FIXED_1; res += z * 0x0000000000001ab8; // add y^17 * (20! / 17!)
        z = z * y / FIXED_1; res += z * 0x000000000000017c; // add y^18 * (20! / 18!)
        z = z * y / FIXED_1; res += z * 0x0000000000000014; // add y^19 * (20! / 19!)
        z = z * y / FIXED_1; res += z * 0x0000000000000001; // add y^20 * (20! / 20!)
        res = res / 0x21c3677c82b40000 + y + FIXED_1; // divide by 20! and then add y^1 / 1! + y^0 / 0!

        if ((x & 0x010000000000000000000000000000000) != 0) res = res * 0x1c3d6a24ed82218787d624d3e5eba95f9 / 0x18ebef9eac820ae8682b9793ac6d1e776;
        if ((x & 0x020000000000000000000000000000000) != 0) res = res * 0x18ebef9eac820ae8682b9793ac6d1e778 / 0x1368b2fc6f9609fe7aceb46aa619baed4;
        if ((x & 0x040000000000000000000000000000000) != 0) res = res * 0x1368b2fc6f9609fe7aceb46aa619baed5 / 0x0bc5ab1b16779be3575bd8f0520a9f21f;
        if ((x & 0x080000000000000000000000000000000) != 0) res = res * 0x0bc5ab1b16779be3575bd8f0520a9f21e / 0x0454aaa8efe072e7f6ddbab84b40a55c9;
        if ((x & 0x100000000000000000000000000000000) != 0) res = res * 0x0454aaa8efe072e7f6ddbab84b40a55c5 / 0x00960aadc109e7a3bf4578099615711ea;
        if ((x & 0x200000000000000000000000000000000) != 0) res = res * 0x00960aadc109e7a3bf4578099615711d7 / 0x0002bf84208204f5977f9a8cf01fdce3d;
        if ((x & 0x400000000000000000000000000000000) != 0) res = res * 0x0002bf84208204f5977f9a8cf01fdc307 / 0x0000003c6ab775dd0b95b4cbee7e65d11;

        return res;
    }
    /* solium-enable */
}

File 12 of 13 : ERC1404.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

abstract contract ERC1404 is ERC20 {
    /// @notice Detects if a transfer will be reverted and if so returns an appropriate reference code
    /// @param from Sending address
    /// @param to Receiving address
    /// @param value Amount of tokens being transferred
    /// @return Code by which to reference message for rejection reasoning
    /// @dev Overwrite with your custom transfer restriction logic
    function detectTransferRestriction (address from, address to, uint256 value) public virtual view returns (uint8);

    /// @notice Returns a human-readable message for a given restriction code
    /// @param restrictionCode Identifier for looking up a message
    /// @return Text showing the restriction's reasoning
    /// @dev Overwrite with your custom message and restrictionCode handling
    function messageForTransferRestriction (uint8 restrictionCode) public virtual view returns (string memory);
}

File 13 of 13 : PhiMock.sol
// SPDX-License-Identifier: Apache License 2.0

pragma solidity 0.8.16;

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


contract PhiMock is ERC20 {
    constructor(
        string memory _tokenName,
        string memory _tokenSymbol
    )
    ERC20(
        _tokenName,
        _tokenSymbol
    )
    {}

    function mint(address account, uint256 value) public{
        _mint(account, value);
    }


    function burn(address account, uint256 value) public{
        _burn(account, value);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract DelphiaPlatformToken","name":"token","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"bonded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"received","type":"uint256"}],"name":"BondedToMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"received","type":"uint256"}],"name":"BurnedToWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reimbursement","type":"uint256"}],"name":"CurvedBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"}],"name":"CurvedMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"uint256","name":"amountToBond","type":"uint256"},{"internalType":"uint256","name":"minimalAmountToReceive","type":"uint256"}],"name":"bondToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToBurn","type":"uint256"},{"internalType":"uint256","name":"minimalAmountToReceive","type":"uint256"}],"name":"burnToWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateCurvedBurnReturn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateCurvedMintReturn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"_connectorBalance","type":"uint256"},{"internalType":"uint32","name":"_connectorWeight","type":"uint32"},{"internalType":"uint256","name":"_depositAmount","type":"uint256"}],"name":"calculatePurchaseReturn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"uint256","name":"_connectorBalance","type":"uint256"},{"internalType":"uint32","name":"_connectorWeight","type":"uint32"},{"internalType":"uint256","name":"_sellAmount","type":"uint256"}],"name":"calculateSaleReturn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delphiaPlatformToken","outputs":[{"internalType":"contract DelphiaPlatformToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[],"name":"poolBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveRatio","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gasPrice","type":"uint256"}],"name":"setGasPrice","outputs":[],"stateMutability":"nonpayable","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":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

610100604052600360c090815262302e3360e81b60e0526086906200002590826200098d565b503480156200003357600080fd5b5060405162003b3738038062003b37833981016040819052620000569162000a59565b6207a120816040518060400160405280600381526020016250686960e81b8152506040518060400160405280600381526020016250484960e81b815250620000ad620000a76200089460201b60201c565b62000898565b6004620000bb83826200098d565b506005620000ca82826200098d565b50506001641c35fedd1560601b03602655506001646c3390ecc9605e1b036027556001640cf801476160611b0360285560016431bdb23e1d605f1b0360295560016502fb1d8fe083605b1b03602a5560016505b771955b37605a1b03602b556001650af67a93bb5160591b03602c5560016515060c256cb360581b03602d556001651428a2f98d7360581b03602e556001654d515663970960561b03602f55600165944620b0e70f60551b03603055600166011c592761c66760541b0360315560016602214d10d014eb60531b03603255600166020ade36b7dbef60531b0360335560016603eab73b3bbfe360521b036034556001660782ee3593f6d760511b036035556001661ccf4b44bb4821604f1b0360365560016606e7f88ad8a77760511b0360375560016669f3d1c921891d604d1b03603855600166cb2ff529eb71e5604c1b03603955600166c2d415c3db974b604c1b03603a5560016702eb40f9f620fda7604a1b03603b5560016705990681d961a1eb60491b03603c55600167055e12902701414760491b03603d5560016714962dee9dc9764160471b03603e5560016704ef57b9b560fab560491b03603f5560016712ed7b32a58f552b60471b036040556001679131271922eaa60760441b036041556001678b380f3558668c4760441b036042556001680215f77c045fbe885760421b036043556001600160831b036044556001670f577eded5773a1160471b036045556001680eb5ec597592befbf5603f1b036046556001681c35fedd14b861eb05603e1b036047556001683619c87664579bc94b603d1b0360485560016867c00a3b07ffc01fd7603c1b03604955600168c6f6c8f8739773a7a5603b1b03604a55600168bec763f8209b7a72b1603b1b03604b5560016902dbb8caad9b7097b91b60391b03604c55600169057b3d49dda84556d6f760381b03604d55600169054183095b2c8ececf3160381b03604e556001690a14517cc6b9457111ef60371b03604f5560016913545598e5c23276ccf160361b036050556001692511882c39c3adea96ff60351b03605155600169471649d87199aa99075760341b036052557004429a21a029d4c1457cfbffffffffffff605355700415bc6d6fb7dd71af2cb3ffffffffffff6054557003eab73b3bbfe282243ce1ffffffffffff6055557003c1771ac9fb6b4c18e229ffffffffffff605655700399e96897690418f785257fffffffffff605755700373fc456c53bb779bf0ea9fffffffffff60585570034f9e8e490c48e67e6ab8bfffffffffff60595570032cbfd4a7adc790560b3337ffffffffff605a5570030b50570f6e5d2acca94613ffffffffff605b557002eb40f9f620fda6b56c2861ffffffffff605c557002cc8340ecb0d0f520a6af58ffffffffff605d557002af09481380a0a35cf1ba02ffffffffff605e55700292c5bdd3b92ec810287b1b3fffffffff605f55700277abdcdab07d5a77ac6d6b9fffffffff60605570025daf6654b1eaa55fd64df5efffffffff606155700244c49c648baa98192dce88b7ffffffff60625570022ce03cd5619a311b2471268bffffffff606355700215f77c045fbe885654a44a0fffffffff6064556001600160811b036065557001eaefdbdaaee7421fc4d3ede5ffffffff6066557001d6bd8b2eb257df7e8ca57b09bfffffff6067557001c35fedd14b861eb0443f7f133fffffff6068557001b0ce43b322bcde4a56e8ada5afffffff60695570019f0028ec1fff007f5a195a39dfffffff606a5570018ded91f0e72ee74f49b15ba527ffffff606b5570017d8ec7f04136f4e5615fd41a63ffffff606c5570016ddc6556cdb84bdc8d12d22e6fffffff606d5570015ecf52776a1155b5bd8395814f7fffff606e5570015060c256cb23b3b3cc3754cf40ffffff606f557001428a2f98d728ae223ddab715be3fffff60705570013545598e5c23276ccf0ede68034fffff6071557001288c4161ce1d6f54b7f61081194fffff60725570011c592761c666aa641d5a01a40f17ffff607355700110a688680a7530515f3e6e6cfdcdffff6074557001056f1b5bedf75c6bcb2ce8aed428ffff6075556ffaadceceeff8a0890f3875f008277fff6076556ff05dc6b27edad306388a600f6ba0bfff6077556fe67a5a25da41063de1495d5b18cdbfff6078556fdcff115b14eedde6fc3aa5353f2e4fff6079556fd3e7a3924312399f9aae2e0f868f8fff607a556fcb2ff529eb71e41582cccd5a1ee26fff607b556fc2d415c3db974ab32a51840c0b67edff607c556fbad03e7d883f69ad5b0a186184e06bff607d556fb320d03b2c343d4829abd6075f0cc5ff607e556fabc25204e02828d73c6e80bcdb1a95bf607f556fa4b16f74ee4bb2040a1ec6c15fbbf2df6080556f9deaf736ac1f569deb1b5ae3f36c130f6081556f976bd9952c7aa957f5937d790ef650376082556f9131271922eaa6064b73a22d0bd4f2bf6083556f8b380f3558668c46c91c49a2f8e967b96084556f857ddf0117efa215952912839f6473e66085556087805463ffffffff191663ffffffff93909316929092179091556088556001600160a01b03831660a052670de0b6b3a76400008210620008895760405162461bcd60e51b8152602060048201526024808201527f5068693a20466565206e6565647320746f206265206c6f776572207468656e206044820152633130302560e01b606482015260840160405180910390fd5b506080525062000a9e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200091357607f821691505b6020821081036200093457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200098857600081815260208120601f850160051c81016020861015620009635750805b601f850160051c820191505b8181101562000984578281556001016200096f565b5050505b505050565b81516001600160401b03811115620009a957620009a9620008e8565b620009c181620009ba8454620008fe565b846200093a565b602080601f831160018114620009f95760008415620009e05750858301515b600019600386901b1c1916600185901b17855562000984565b600085815260208120601f198616915b8281101562000a2a5788860151825594840194600190910190840162000a09565b508582101562000a495787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008060006060848603121562000a6f57600080fd5b83516001600160a01b038116811462000a8757600080fd5b602085015160409095015190969495509392505050565b60805160a05161306562000ad260003960008181610288015281816106060152610d2f0152600061051101526130656000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de5780639a4f318b11610097578063bf1fe42011610071578063bf1fe42014610373578063dd62ed3e14610386578063f2fde38b146103bf578063fe173b97146103d257600080fd5b80639a4f318b1461033a578063a457c2d71461034d578063a9059cbb1461036057600080fd5b806370a08231146102d5578063715018a6146102fe5780638702d915146103065780638da5cb5b1461031957806395d89b411461032a57806396365d441461033257600080fd5b806329a00e7c1161014b57806349f9b0f71161012557806349f9b0f71461026857806354fd4d501461027b578063560a3cfe146102835780636d6f1e01146102c257600080fd5b806329a00e7c14610233578063313ce56714610246578063395093511461025557600080fd5b806306fdde0314610193578063095ea7b3146101b15780630c7d5cd8146101d457806318160ddd146101f9578063237a9b281461020b57806323b872dd14610220575b600080fd5b61019b6103db565b6040516101a89190612be1565b60405180910390f35b6101c46101bf366004612c4b565b61046d565b60405190151581526020016101a8565b6087546101e49063ffffffff1681565b60405163ffffffff90911681526020016101a8565b6003545b6040519081526020016101a8565b61021e610219366004612c75565b610484565b005b6101c461022e366004612c97565b610719565b6101fd610241366004612cd3565b6107c3565b604051601281526020016101a8565b6101c4610263366004612c4b565b610911565b6101fd610276366004612cd3565b61094d565b61019b610b04565b6102aa7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101a8565b6101fd6102d0366004612d1b565b610b92565b6101fd6102e3366004612d34565b6001600160a01b031660009081526001602052604090205490565b61021e610bb2565b61021e610314366004612c75565b610be8565b6000546001600160a01b03166102aa565b61019b610e0f565b6089546101fd565b6101fd610348366004612d1b565b610e1e565b6101c461035b366004612c4b565b610e3e565b6101c461036e366004612c4b565b610ed7565b61021e610381366004612d1b565b610ee4565b6101fd610394366004612d56565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61021e6103cd366004612d34565b610f1a565b6101fd60885481565b6060600480546103ea90612d89565b80601f016020809104026020016040519081016040528092919081815260200182805461041690612d89565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b5050505050905090565b600061047a338484610fb2565b5060015b92915050565b336000908152600160205260409020548211156105015760405162461bcd60e51b815260206004820152603060248201527f5068692e6275726e546f57697468647261773a204e6f7420656e6f756768206660448201526f756e647320746f20776974686472617760801b60648201526084015b60405180910390fd5b6000670de0b6b3a76400006105367f000000000000000000000000000000000000000000000000000000000000000085612dd9565b6105409190612e0e565b905061054d3330836110d6565b600061056161055c8386612e22565b6112a5565b9050806089546105719190612e22565b608955828110156105ea5760405162461bcd60e51b815260206004820152603f60248201527f436f7264696e6174696f6e546f6b656e2e6275726e546f57697468647261773a60448201527f2053656e64206c65737320746f6b656e73207468656e2065787065637465640060648201526084016104f8565b60405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067b9190612e35565b6106d85760405162461bcd60e51b815260206004820152602860248201527f4661696c656420746f207472616e736665722044656c70686961506c6174666f604482015267726d546f6b656e7360c01b60648201526084016104f8565b604080518581526020810183905233917f77cf24a412b648329c970dcff7fff033de14957f9fc660d3f7fee3536d53b157910160405180910390a250505050565b60006107268484846110d6565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156107ab5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104f8565b6107b88533858403610fb2565b506001949350505050565b60008085116108145760405162461bcd60e51b815260206004820152601e60248201527f42616e636f72466f726d756c613a20537570706c79206e6f74203e20302e000060448201526064016104f8565b600084116108345760405162461bcd60e51b81526004016104f890612e57565b60008363ffffffff161161085a5760405162461bcd60e51b81526004016104f890612e9e565b620f424063ffffffff841611156108835760405162461bcd60e51b81526004016104f890612ee5565b8160000361089357506000610909565b620f423f1963ffffffff8416016108c057836108af8387612dd9565b6108b99190612e0e565b9050610909565b600080806108ce8786612f36565b90506108df818888620f42406112b1565b9093509150600060ff83166108f4858b612dd9565b901c90506109028982612e22565b9450505050505b949350505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161047a918590610948908690612f36565b610fb2565b600080851161099e5760405162461bcd60e51b815260206004820152601e60248201527f42616e636f72466f726d756c613a20537570706c79206e6f74203e20302e000060448201526064016104f8565b600084116109be5760405162461bcd60e51b81526004016104f890612e57565b60008363ffffffff16116109e45760405162461bcd60e51b81526004016104f890612e9e565b620f424063ffffffff84161115610a0d5760405162461bcd60e51b81526004016104f890612ee5565b84821115610a6e5760405162461bcd60e51b815260206004820152602860248201527f42616e636f72466f726d756c613a2053656c6c20416d6f756e74206e6f74203c6044820152673d20537570706c7960c01b60648201526084016104f8565b81600003610a7e57506000610909565b848203610a8c575082610909565b620f423f1963ffffffff841601610aa857846108af8386612dd9565b60008080610ab68589612e22565b9050610ac78882620f4240896112b1565b90935091506000610ad88489612dd9565b905060ff831688901b84610aec8284612e22565b610af69190612e0e565b9a9950505050505050505050565b60868054610b1190612d89565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90612d89565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b505050505081565b600061047e610ba060035490565b60895460875463ffffffff168561094d565b6000546001600160a01b03163314610bdc5760405162461bcd60e51b81526004016104f890612f49565b610be660006113f1565b565b6000610bf360035490565b600003610c46575081610c063382611441565b604080518481526020810185905233917f3eba6d39eec838247a06d74842feda6af0aa3622dc935c940431bf582052dc2e910160405180910390a2610c8e565b610c4f83611520565b604080518581526020810183905291925033917f3eba6d39eec838247a06d74842feda6af0aa3622dc935c940431bf582052dc2e910160405180910390a25b81811015610cf65760405162461bcd60e51b815260206004820152602f60248201527f5068692e626f6e64546f4d696e743a204d696e7473206c65737320746f6b656e60448201526e1cc81d1a195b88195e1c1958dd1959608a1b60648201526084016104f8565b8260896000828254610d089190612f36565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610d80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da49190612e35565b610e0a5760405162461bcd60e51b815260206004820152603160248201527f5068692e626f6e64546f4d696e743a20496d706f737369626c6520746f20626f6044820152706e6420736f206d75636820746f6b656e7360781b60648201526084016104f8565b505050565b6060600580546103ea90612d89565b600061047e610e2c60035490565b60895460875463ffffffff16856107c3565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610ec05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104f8565b610ecd3385858403610fb2565b5060019392505050565b600061047a3384846110d6565b6000546001600160a01b03163314610f0e5760405162461bcd60e51b81526004016104f890612f49565b610f178161152c565b50565b6000546001600160a01b03163314610f445760405162461bcd60e51b81526004016104f890612f49565b6001600160a01b038116610fa95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f8565b610f17816113f1565b6001600160a01b0383166110145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104f8565b6001600160a01b0382166110755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104f8565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661113a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104f8565b6001600160a01b03821661119c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104f8565b6001600160a01b038316600090815260016020526040902054818110156112145760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104f8565b6001600160a01b0380851660009081526001602052604080822085850390559185168152908120805484929061124b908490612f36565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129791815260200190565b60405180910390a350505050565b600061047e338361153e565b600080600160811b86106112c7576112c7612f7e565b848610156113175760405162461bcd60e51b815260206004820152601c60248201527f4261736573203c203120617265206e6f7420737570706f727465642e0000000060448201526064016104f8565b600080866113296001607f1b8a612dd9565b6113339190612e0e565b905070015bf0a8b1457695355fb8ac404e7a79e381101561135e57611357816115e5565b915061136a565b61136781611b5e565b91505b60008563ffffffff168763ffffffff16846113859190612dd9565b61138f9190612e0e565b9050600160831b8110156113b4576113a681611c4d565b607f945094505050506113e8565b60006113bf82612278565b90506113db6113cf82607f612f94565b60ff1683901c8261233d565b955093506113e892505050565b94509492505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166114975760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104f8565b80600360008282546114a99190612f36565b90915550506001600160a01b038216600090815260016020526040812080548392906114d6908490612f36565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600061047e33836129a4565b6000811161153957600080fd5b608855565b60006088543a111561155257611552612f7e565b816000811180156115725750336000908152600160205260409020548111155b61157b57600080fd5b600061158684610b92565b90506115928585612a24565b604080516001600160a01b0387168152602081018690529081018290527f14feb1b32dbb3ebf172a72bc6b201cb3ddcd8dd148da8b8ac41207f2d69bdd32906060015b60405180910390a1949350505050565b6000808080806fd3094c70f034de4b96ff7d5b6f99fcd8861061163e576116106001607e1b85612f36565b93506fd3094c70f034de4b96ff7d5b6f99fcd86116316001607f1b88612dd9565b61163b9190612e0e565b95505b6fa45af1e1f40c333b3de1db4dd55f29a78610611691576116636001607d1b85612f36565b93506fa45af1e1f40c333b3de1db4dd55f29a76116846001607f1b88612dd9565b61168e9190612e0e565b95505b6f910b022db7ae67ce76b441c27035c6a186106116e4576116b66001607c1b85612f36565b93506f910b022db7ae67ce76b441c27035c6a16116d76001607f1b88612dd9565b6116e19190612e0e565b95505b6f88415abbe9a76bead8d00cf112e4d4a88610611737576117096001607b1b85612f36565b93506f88415abbe9a76bead8d00cf112e4d4a861172a6001607f1b88612dd9565b6117349190612e0e565b95505b6f84102b00893f64c705e841d5d4064bd3861061178a5761175c6001607a1b85612f36565b93506f84102b00893f64c705e841d5d4064bd361177d6001607f1b88612dd9565b6117879190612e0e565b95505b6f8204055aaef1c8bd5c3259f4822735a286106117dd576117af600160791b85612f36565b93506f8204055aaef1c8bd5c3259f4822735a26117d06001607f1b88612dd9565b6117da9190612e0e565b95505b6f810100ab00222d861931c15e39b44e99861061183057611802600160781b85612f36565b93506f810100ab00222d861931c15e39b44e996118236001607f1b88612dd9565b61182d9190612e0e565b95505b6f808040155aabbbe9451521693554f733861061188357611855600160771b85612f36565b93506f808040155aabbbe9451521693554f7336118766001607f1b88612dd9565b6118809190612e0e565b95505b6118916001607f1b87612e22565b92508291506001607f1b6118a58380612dd9565b6118af9190612e0e565b9050600160801b6118c08482612e22565b6118ca9084612dd9565b6118d49190612e0e565b6118de9085612f36565b93506001607f1b6118ef8284612dd9565b6118f99190612e0e565b9150600160811b61191a846faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa612e22565b6119249084612dd9565b61192e9190612e0e565b6119389085612f36565b93506001607f1b6119498284612dd9565b6119539190612e0e565b9150600360801b611974846f99999999999999999999999999999999612e22565b61197e9084612dd9565b6119889190612e0e565b6119929085612f36565b93506001607f1b6119a38284612dd9565b6119ad9190612e0e565b9150600160821b6119ce846f92492492492492492492492492492492612e22565b6119d89084612dd9565b6119e29190612e0e565b6119ec9085612f36565b93506001607f1b6119fd8284612dd9565b611a079190612e0e565b9150600560801b611a28846f8e38e38e38e38e38e38e38e38e38e38e612e22565b611a329084612dd9565b611a3c9190612e0e565b611a469085612f36565b93506001607f1b611a578284612dd9565b611a619190612e0e565b9150600360811b611a82846f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b612e22565b611a8c9084612dd9565b611a969190612e0e565b611aa09085612f36565b93506001607f1b611ab18284612dd9565b611abb9190612e0e565b9150600760801b611adc846f89d89d89d89d89d89d89d89d89d89d89612e22565b611ae69084612dd9565b611af09190612e0e565b611afa9085612f36565b93506001607f1b611b0b8284612dd9565b611b159190612e0e565b9150600160831b611b36846f88888888888888888888888888888888612e22565b611b409084612dd9565b611b4a9190612e0e565b611b549085612f36565b9695505050505050565b60008082600160801b8110611ba3576000611b85611b806001607f1b84612e0e565b612b72565b60ff811692831c92909150611b9f906001607f1b90612dd9565b9250505b6001607f1b811115611c1857607f5b60ff811615611c16576001607f1b611bca8380612dd9565b611bd49190612e0e565b9150600160801b8210611c0657600191821c91611bf19082612f94565b60ff166001901b83611c039190612f36565b92505b611c0f81612fad565b9050611bb2565b505b6f05b9de1d10bf4103d647b0955897ba80611c436f03f80fe03f80fe03f80fe03f80fe03f884612dd9565b6109099190612e0e565b6000808080611c606001607c1b86612fca565b91508190506001607f1b611c748280612dd9565b611c7e9190612e0e565b9050611c92816710e1b3be415a0000612dd9565b611c9c9084612f36565b92506001607f1b611cad8383612dd9565b611cb79190612e0e565b9050611ccb816705a0913f6b1e0000612dd9565b611cd59084612f36565b92506001607f1b611ce68383612dd9565b611cf09190612e0e565b9050611d0481670168244fdac78000612dd9565b611d0e9084612f36565b92506001607f1b611d1f8383612dd9565b611d299190612e0e565b9050611d3c81664807432bc18000612dd9565b611d469084612f36565b92506001607f1b611d578383612dd9565b611d619190612e0e565b9050611d7481660c0135dca04000612dd9565b611d7e9084612f36565b92506001607f1b611d8f8383612dd9565b611d999190612e0e565b9050611dac816601b707b1cdc000612dd9565b611db69084612f36565b92506001607f1b611dc78383612dd9565b611dd19190612e0e565b9050611de3816536e0f639b800612dd9565b611ded9084612f36565b92506001607f1b611dfe8383612dd9565b611e089190612e0e565b9050611e1a81650618fee9f800612dd9565b611e249084612f36565b92506001607f1b611e358383612dd9565b611e3f9190612e0e565b9050611e5081649c197dcc00612dd9565b611e5a9084612f36565b92506001607f1b611e6b8383612dd9565b611e759190612e0e565b9050611e8681640e30dce400612dd9565b611e909084612f36565b92506001607f1b611ea18383612dd9565b611eab9190612e0e565b9050611ebc8164012ebd1300612dd9565b611ec69084612f36565b92506001607f1b611ed78383612dd9565b611ee19190612e0e565b9050611ef1816317499f00612dd9565b611efb9084612f36565b92506001607f1b611f0c8383612dd9565b611f169190612e0e565b9050611f26816301a9d480612dd9565b611f309084612f36565b92506001607f1b611f418383612dd9565b611f4b9190612e0e565b9050611f5a81621c6380612dd9565b611f649084612f36565b92506001607f1b611f758383612dd9565b611f7f9190612e0e565b9050611f8e816201c638612dd9565b611f989084612f36565b92506001607f1b611fa98383612dd9565b611fb39190612e0e565b9050611fc181611ab8612dd9565b611fcb9084612f36565b92506001607f1b611fdc8383612dd9565b611fe69190612e0e565b9050611ff48161017c612dd9565b611ffe9084612f36565b92506001607f1b61200f8383612dd9565b6120199190612e0e565b9050612026816014612dd9565b6120309084612f36565b92506001607f1b6120418383612dd9565b61204b9190612e0e565b9050612058816001612dd9565b6120629084612f36565b92506001607f1b8261207c6721c3677c82b4000086612e0e565b6120869190612f36565b6120909190612f36565b92506001607c1b8516156120d85770018ebef9eac820ae8682b9793ac6d1e7766120cb847001c3d6a24ed82218787d624d3e5eba95f9612dd9565b6120d59190612e0e565b92505b6001607d1b85161561211e577001368b2fc6f9609fe7aceb46aa619baed46121118470018ebef9eac820ae8682b9793ac6d1e778612dd9565b61211b9190612e0e565b92505b6001607e1b851615612163576fbc5ab1b16779be3575bd8f0520a9f21f612156847001368b2fc6f9609fe7aceb46aa619baed5612dd9565b6121609190612e0e565b92505b6001607f1b8516156121a7576f454aaa8efe072e7f6ddbab84b40a55c961219a846fbc5ab1b16779be3575bd8f0520a9f21e612dd9565b6121a49190612e0e565b92505b600160801b8516156121eb576f0960aadc109e7a3bf4578099615711ea6121de846f454aaa8efe072e7f6ddbab84b40a55c5612dd9565b6121e89190612e0e565b92505b600160811b85161561222e576e2bf84208204f5977f9a8cf01fdce3d612221846f0960aadc109e7a3bf4578099615711d7612dd9565b61222b9190612e0e565b92505b600160821b85161561226f576d03c6ab775dd0b95b4cbee7e65d11612262846e2bf84208204f5977f9a8cf01fdc307612dd9565b61226c9190612e0e565b92505b50909392505050565b60006020607f5b60ff811661228e836001612fde565b60ff1610156122e157600060026122a58385612fde565b6122af9190612ff7565b90508460068260ff16608081106122c8576122c8613019565b0154106122d7578092506122db565b8091505b5061227f565b8360068260ff16608081106122f8576122f8613019565b015410612306579392505050565b8360068360ff166080811061231d5761231d613019565b01541061232b575092915050565b612333612f7e565b5060009392505050565b6000828160ff841661234f8380612dd9565b901c915061236d826f03442c4e6074a82f1797f72ac0000000612dd9565b6123779082612f36565b905060ff84166123878684612dd9565b901c91506123a5826f0116b96f757c380fb287fd0e40000000612dd9565b6123af9082612f36565b905060ff84166123bf8684612dd9565b901c91506123dc826e45ae5bdd5f0e03eca1ff4390000000612dd9565b6123e69082612f36565b905060ff84166123f68684612dd9565b901c9150612413826e0defabf91302cd95b9ffda50000000612dd9565b61241d9082612f36565b905060ff841661242d8684612dd9565b901c915061244a826e02529ca9832b22439efff9b8000000612dd9565b6124549082612f36565b905060ff84166124648684612dd9565b901c9150612480826d54f1cf12bd04e516b6da88000000612dd9565b61248a9082612f36565b905060ff841661249a8684612dd9565b901c91506124b6826d0a9e39e257a09ca2d6db51000000612dd9565b6124c09082612f36565b905060ff84166124d08684612dd9565b901c91506124ec826d012e066e7b839fa050c309000000612dd9565b6124f69082612f36565b905060ff84166125068684612dd9565b901c9150612521826c1e33d7d926c329a1ad1a800000612dd9565b61252b9082612f36565b905060ff841661253b8684612dd9565b901c9150612556826c02bee513bdb4a6b19b5f800000612dd9565b6125609082612f36565b905060ff84166125708684612dd9565b901c915061258a826b3a9316fa79b88eccf2a00000612dd9565b6125949082612f36565b905060ff84166125a48684612dd9565b901c91506125be826b048177ebe1fa812375200000612dd9565b6125c89082612f36565b905060ff84166125d88684612dd9565b901c91506125f1826a5263fe90242dcbacf00000612dd9565b6125fb9082612f36565b905060ff841661260b8684612dd9565b901c9150612624826a057e22099c030d94100000612dd9565b61262e9082612f36565b905060ff841661263e8684612dd9565b901c9150612656826957e22099c030d9410000612dd9565b6126609082612f36565b905060ff84166126708684612dd9565b901c91506126888269052b6b54569976310000612dd9565b6126929082612f36565b905060ff84166126a28684612dd9565b901c91506126b982684985f67696bf748000612dd9565b6126c39082612f36565b905060ff84166126d38684612dd9565b901c91506126ea826803dea12ea99e498000612dd9565b6126f49082612f36565b905060ff84166127048684612dd9565b901c915061271a826731880f2214b6e000612dd9565b6127249082612f36565b905060ff84166127348684612dd9565b901c915061274a8267025bcff56eb36000612dd9565b6127549082612f36565b905060ff84166127648684612dd9565b901c915061277982661b722e10ab1000612dd9565b6127839082612f36565b905060ff84166127938684612dd9565b901c91506127a8826601317c70077000612dd9565b6127b29082612f36565b905060ff84166127c28684612dd9565b901c91506127d682650cba84aafa00612dd9565b6127e09082612f36565b905060ff84166127f08684612dd9565b901c9150612803826482573a0a00612dd9565b61280d9082612f36565b905060ff841661281d8684612dd9565b901c9150612830826405035ad900612dd9565b61283a9082612f36565b905060ff841661284a8684612dd9565b901c915061285c82632f881b00612dd9565b6128669082612f36565b905060ff84166128768684612dd9565b901c9150612888826301b29340612dd9565b6128929082612f36565b905060ff84166128a28684612dd9565b901c91506128b382620efc40612dd9565b6128bd9082612f36565b905060ff84166128cd8684612dd9565b901c91506128dd82617fe0612dd9565b6128e79082612f36565b905060ff84166128f78684612dd9565b901c915061290782610420612dd9565b6129119082612f36565b905060ff84166129218684612dd9565b901c9150612930826021612dd9565b61293a9082612f36565b905060ff841661294a8684612dd9565b901c9150612959826001612dd9565b6129639082612f36565b9050600160ff85161b856129876f0688589cc0e9505e2f2fee558000000084612e0e565b6129919190612f36565b61299b9190612f36565b95945050505050565b60006088543a11156129b8576129b8612f7e565b81600081116129c657600080fd5b60006129d184610e1e565b90506129dd8582611441565b604080516001600160a01b0387168152602081018390529081018590527f65ab8b57af027ad387b3f608b0745de61b7dc81d07be6ded03736db32fe46bd9906060016115d5565b6001600160a01b038216612a845760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104f8565b6001600160a01b03821660009081526001602052604090205481811015612af85760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104f8565b6001600160a01b0383166000908152600160205260408120838303905560038054849290612b27908490612e22565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60008082610100811015612ba6575b6001811115612ba157600190811c90612b9a9083612fde565b9150612b81565b612bda565b60805b60ff811615612bd857600160ff82161b8210612bcd579182179160ff81169190911c905b60011c607f16612ba9565b505b5092915050565b600060208083528351808285015260005b81811015612c0e57858101830151858201604001528201612bf2565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114612c4657600080fd5b919050565b60008060408385031215612c5e57600080fd5b612c6783612c2f565b946020939093013593505050565b60008060408385031215612c8857600080fd5b50508035926020909101359150565b600080600060608486031215612cac57600080fd5b612cb584612c2f565b9250612cc360208501612c2f565b9150604084013590509250925092565b60008060008060808587031215612ce957600080fd5b8435935060208501359250604085013563ffffffff81168114612d0b57600080fd5b9396929550929360600135925050565b600060208284031215612d2d57600080fd5b5035919050565b600060208284031215612d4657600080fd5b612d4f82612c2f565b9392505050565b60008060408385031215612d6957600080fd5b612d7283612c2f565b9150612d8060208401612c2f565b90509250929050565b600181811c90821680612d9d57607f821691505b602082108103612dbd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612df357612df3612dc3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e1d57612e1d612df8565b500490565b8181038181111561047e5761047e612dc3565b600060208284031215612e4757600080fd5b81518015158114612d4f57600080fd5b60208082526027908201527f42616e636f72466f726d756c613a20436f6e6e6563746f7242616c616e63652060408201526606e6f74203e20360cc1b606082015260800190565b60208082526027908201527f42616e636f72466f726d756c613a20436f6e6e6563746f72205765696768742060408201526606e6f74203e20360cc1b606082015260800190565b60208082526031908201527f42616e636f72466f726d756c613a20436f6e6e6563746f7220576569676874206040820152701b9bdd080f0f4813505617d5d15251d215607a1b606082015260800190565b8082018082111561047e5761047e612dc3565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052600160045260246000fd5b60ff828116828216039081111561047e5761047e612dc3565b600060ff821680612fc057612fc0612dc3565b6000190192915050565b600082612fd957612fd9612df8565b500690565b60ff818116838216019081111561047e5761047e612dc3565b600060ff83168061300a5761300a612df8565b8060ff84160491505092915050565b634e487b7160e01b600052603260045260246000fdfea26469706673582212204f389acbb44df69d33730c74e4da99a1c394fb935814af1071c77f68caaa957064736f6c63430008100033000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000002faf080

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de5780639a4f318b11610097578063bf1fe42011610071578063bf1fe42014610373578063dd62ed3e14610386578063f2fde38b146103bf578063fe173b97146103d257600080fd5b80639a4f318b1461033a578063a457c2d71461034d578063a9059cbb1461036057600080fd5b806370a08231146102d5578063715018a6146102fe5780638702d915146103065780638da5cb5b1461031957806395d89b411461032a57806396365d441461033257600080fd5b806329a00e7c1161014b57806349f9b0f71161012557806349f9b0f71461026857806354fd4d501461027b578063560a3cfe146102835780636d6f1e01146102c257600080fd5b806329a00e7c14610233578063313ce56714610246578063395093511461025557600080fd5b806306fdde0314610193578063095ea7b3146101b15780630c7d5cd8146101d457806318160ddd146101f9578063237a9b281461020b57806323b872dd14610220575b600080fd5b61019b6103db565b6040516101a89190612be1565b60405180910390f35b6101c46101bf366004612c4b565b61046d565b60405190151581526020016101a8565b6087546101e49063ffffffff1681565b60405163ffffffff90911681526020016101a8565b6003545b6040519081526020016101a8565b61021e610219366004612c75565b610484565b005b6101c461022e366004612c97565b610719565b6101fd610241366004612cd3565b6107c3565b604051601281526020016101a8565b6101c4610263366004612c4b565b610911565b6101fd610276366004612cd3565b61094d565b61019b610b04565b6102aa7f000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b81565b6040516001600160a01b0390911681526020016101a8565b6101fd6102d0366004612d1b565b610b92565b6101fd6102e3366004612d34565b6001600160a01b031660009081526001602052604090205490565b61021e610bb2565b61021e610314366004612c75565b610be8565b6000546001600160a01b03166102aa565b61019b610e0f565b6089546101fd565b6101fd610348366004612d1b565b610e1e565b6101c461035b366004612c4b565b610e3e565b6101c461036e366004612c4b565b610ed7565b61021e610381366004612d1b565b610ee4565b6101fd610394366004612d56565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61021e6103cd366004612d34565b610f1a565b6101fd60885481565b6060600480546103ea90612d89565b80601f016020809104026020016040519081016040528092919081815260200182805461041690612d89565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b5050505050905090565b600061047a338484610fb2565b5060015b92915050565b336000908152600160205260409020548211156105015760405162461bcd60e51b815260206004820152603060248201527f5068692e6275726e546f57697468647261773a204e6f7420656e6f756768206660448201526f756e647320746f20776974686472617760801b60648201526084015b60405180910390fd5b6000670de0b6b3a76400006105367f000000000000000000000000000000000000000000000000002386f26fc1000085612dd9565b6105409190612e0e565b905061054d3330836110d6565b600061056161055c8386612e22565b6112a5565b9050806089546105719190612e22565b608955828110156105ea5760405162461bcd60e51b815260206004820152603f60248201527f436f7264696e6174696f6e546f6b656e2e6275726e546f57697468647261773a60448201527f2053656e64206c65737320746f6b656e73207468656e2065787065637465640060648201526084016104f8565b60405163a9059cbb60e01b8152336004820152602481018290527f000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b6001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610657573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067b9190612e35565b6106d85760405162461bcd60e51b815260206004820152602860248201527f4661696c656420746f207472616e736665722044656c70686961506c6174666f604482015267726d546f6b656e7360c01b60648201526084016104f8565b604080518581526020810183905233917f77cf24a412b648329c970dcff7fff033de14957f9fc660d3f7fee3536d53b157910160405180910390a250505050565b60006107268484846110d6565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156107ab5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104f8565b6107b88533858403610fb2565b506001949350505050565b60008085116108145760405162461bcd60e51b815260206004820152601e60248201527f42616e636f72466f726d756c613a20537570706c79206e6f74203e20302e000060448201526064016104f8565b600084116108345760405162461bcd60e51b81526004016104f890612e57565b60008363ffffffff161161085a5760405162461bcd60e51b81526004016104f890612e9e565b620f424063ffffffff841611156108835760405162461bcd60e51b81526004016104f890612ee5565b8160000361089357506000610909565b620f423f1963ffffffff8416016108c057836108af8387612dd9565b6108b99190612e0e565b9050610909565b600080806108ce8786612f36565b90506108df818888620f42406112b1565b9093509150600060ff83166108f4858b612dd9565b901c90506109028982612e22565b9450505050505b949350505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161047a918590610948908690612f36565b610fb2565b600080851161099e5760405162461bcd60e51b815260206004820152601e60248201527f42616e636f72466f726d756c613a20537570706c79206e6f74203e20302e000060448201526064016104f8565b600084116109be5760405162461bcd60e51b81526004016104f890612e57565b60008363ffffffff16116109e45760405162461bcd60e51b81526004016104f890612e9e565b620f424063ffffffff84161115610a0d5760405162461bcd60e51b81526004016104f890612ee5565b84821115610a6e5760405162461bcd60e51b815260206004820152602860248201527f42616e636f72466f726d756c613a2053656c6c20416d6f756e74206e6f74203c6044820152673d20537570706c7960c01b60648201526084016104f8565b81600003610a7e57506000610909565b848203610a8c575082610909565b620f423f1963ffffffff841601610aa857846108af8386612dd9565b60008080610ab68589612e22565b9050610ac78882620f4240896112b1565b90935091506000610ad88489612dd9565b905060ff831688901b84610aec8284612e22565b610af69190612e0e565b9a9950505050505050505050565b60868054610b1190612d89565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90612d89565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b505050505081565b600061047e610ba060035490565b60895460875463ffffffff168561094d565b6000546001600160a01b03163314610bdc5760405162461bcd60e51b81526004016104f890612f49565b610be660006113f1565b565b6000610bf360035490565b600003610c46575081610c063382611441565b604080518481526020810185905233917f3eba6d39eec838247a06d74842feda6af0aa3622dc935c940431bf582052dc2e910160405180910390a2610c8e565b610c4f83611520565b604080518581526020810183905291925033917f3eba6d39eec838247a06d74842feda6af0aa3622dc935c940431bf582052dc2e910160405180910390a25b81811015610cf65760405162461bcd60e51b815260206004820152602f60248201527f5068692e626f6e64546f4d696e743a204d696e7473206c65737320746f6b656e60448201526e1cc81d1a195b88195e1c1958dd1959608a1b60648201526084016104f8565b8260896000828254610d089190612f36565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018490527f000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b6001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610d80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da49190612e35565b610e0a5760405162461bcd60e51b815260206004820152603160248201527f5068692e626f6e64546f4d696e743a20496d706f737369626c6520746f20626f6044820152706e6420736f206d75636820746f6b656e7360781b60648201526084016104f8565b505050565b6060600580546103ea90612d89565b600061047e610e2c60035490565b60895460875463ffffffff16856107c3565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610ec05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104f8565b610ecd3385858403610fb2565b5060019392505050565b600061047a3384846110d6565b6000546001600160a01b03163314610f0e5760405162461bcd60e51b81526004016104f890612f49565b610f178161152c565b50565b6000546001600160a01b03163314610f445760405162461bcd60e51b81526004016104f890612f49565b6001600160a01b038116610fa95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f8565b610f17816113f1565b6001600160a01b0383166110145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104f8565b6001600160a01b0382166110755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104f8565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661113a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104f8565b6001600160a01b03821661119c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104f8565b6001600160a01b038316600090815260016020526040902054818110156112145760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104f8565b6001600160a01b0380851660009081526001602052604080822085850390559185168152908120805484929061124b908490612f36565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129791815260200190565b60405180910390a350505050565b600061047e338361153e565b600080600160811b86106112c7576112c7612f7e565b848610156113175760405162461bcd60e51b815260206004820152601c60248201527f4261736573203c203120617265206e6f7420737570706f727465642e0000000060448201526064016104f8565b600080866113296001607f1b8a612dd9565b6113339190612e0e565b905070015bf0a8b1457695355fb8ac404e7a79e381101561135e57611357816115e5565b915061136a565b61136781611b5e565b91505b60008563ffffffff168763ffffffff16846113859190612dd9565b61138f9190612e0e565b9050600160831b8110156113b4576113a681611c4d565b607f945094505050506113e8565b60006113bf82612278565b90506113db6113cf82607f612f94565b60ff1683901c8261233d565b955093506113e892505050565b94509492505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166114975760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104f8565b80600360008282546114a99190612f36565b90915550506001600160a01b038216600090815260016020526040812080548392906114d6908490612f36565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600061047e33836129a4565b6000811161153957600080fd5b608855565b60006088543a111561155257611552612f7e565b816000811180156115725750336000908152600160205260409020548111155b61157b57600080fd5b600061158684610b92565b90506115928585612a24565b604080516001600160a01b0387168152602081018690529081018290527f14feb1b32dbb3ebf172a72bc6b201cb3ddcd8dd148da8b8ac41207f2d69bdd32906060015b60405180910390a1949350505050565b6000808080806fd3094c70f034de4b96ff7d5b6f99fcd8861061163e576116106001607e1b85612f36565b93506fd3094c70f034de4b96ff7d5b6f99fcd86116316001607f1b88612dd9565b61163b9190612e0e565b95505b6fa45af1e1f40c333b3de1db4dd55f29a78610611691576116636001607d1b85612f36565b93506fa45af1e1f40c333b3de1db4dd55f29a76116846001607f1b88612dd9565b61168e9190612e0e565b95505b6f910b022db7ae67ce76b441c27035c6a186106116e4576116b66001607c1b85612f36565b93506f910b022db7ae67ce76b441c27035c6a16116d76001607f1b88612dd9565b6116e19190612e0e565b95505b6f88415abbe9a76bead8d00cf112e4d4a88610611737576117096001607b1b85612f36565b93506f88415abbe9a76bead8d00cf112e4d4a861172a6001607f1b88612dd9565b6117349190612e0e565b95505b6f84102b00893f64c705e841d5d4064bd3861061178a5761175c6001607a1b85612f36565b93506f84102b00893f64c705e841d5d4064bd361177d6001607f1b88612dd9565b6117879190612e0e565b95505b6f8204055aaef1c8bd5c3259f4822735a286106117dd576117af600160791b85612f36565b93506f8204055aaef1c8bd5c3259f4822735a26117d06001607f1b88612dd9565b6117da9190612e0e565b95505b6f810100ab00222d861931c15e39b44e99861061183057611802600160781b85612f36565b93506f810100ab00222d861931c15e39b44e996118236001607f1b88612dd9565b61182d9190612e0e565b95505b6f808040155aabbbe9451521693554f733861061188357611855600160771b85612f36565b93506f808040155aabbbe9451521693554f7336118766001607f1b88612dd9565b6118809190612e0e565b95505b6118916001607f1b87612e22565b92508291506001607f1b6118a58380612dd9565b6118af9190612e0e565b9050600160801b6118c08482612e22565b6118ca9084612dd9565b6118d49190612e0e565b6118de9085612f36565b93506001607f1b6118ef8284612dd9565b6118f99190612e0e565b9150600160811b61191a846faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa612e22565b6119249084612dd9565b61192e9190612e0e565b6119389085612f36565b93506001607f1b6119498284612dd9565b6119539190612e0e565b9150600360801b611974846f99999999999999999999999999999999612e22565b61197e9084612dd9565b6119889190612e0e565b6119929085612f36565b93506001607f1b6119a38284612dd9565b6119ad9190612e0e565b9150600160821b6119ce846f92492492492492492492492492492492612e22565b6119d89084612dd9565b6119e29190612e0e565b6119ec9085612f36565b93506001607f1b6119fd8284612dd9565b611a079190612e0e565b9150600560801b611a28846f8e38e38e38e38e38e38e38e38e38e38e612e22565b611a329084612dd9565b611a3c9190612e0e565b611a469085612f36565b93506001607f1b611a578284612dd9565b611a619190612e0e565b9150600360811b611a82846f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b612e22565b611a8c9084612dd9565b611a969190612e0e565b611aa09085612f36565b93506001607f1b611ab18284612dd9565b611abb9190612e0e565b9150600760801b611adc846f89d89d89d89d89d89d89d89d89d89d89612e22565b611ae69084612dd9565b611af09190612e0e565b611afa9085612f36565b93506001607f1b611b0b8284612dd9565b611b159190612e0e565b9150600160831b611b36846f88888888888888888888888888888888612e22565b611b409084612dd9565b611b4a9190612e0e565b611b549085612f36565b9695505050505050565b60008082600160801b8110611ba3576000611b85611b806001607f1b84612e0e565b612b72565b60ff811692831c92909150611b9f906001607f1b90612dd9565b9250505b6001607f1b811115611c1857607f5b60ff811615611c16576001607f1b611bca8380612dd9565b611bd49190612e0e565b9150600160801b8210611c0657600191821c91611bf19082612f94565b60ff166001901b83611c039190612f36565b92505b611c0f81612fad565b9050611bb2565b505b6f05b9de1d10bf4103d647b0955897ba80611c436f03f80fe03f80fe03f80fe03f80fe03f884612dd9565b6109099190612e0e565b6000808080611c606001607c1b86612fca565b91508190506001607f1b611c748280612dd9565b611c7e9190612e0e565b9050611c92816710e1b3be415a0000612dd9565b611c9c9084612f36565b92506001607f1b611cad8383612dd9565b611cb79190612e0e565b9050611ccb816705a0913f6b1e0000612dd9565b611cd59084612f36565b92506001607f1b611ce68383612dd9565b611cf09190612e0e565b9050611d0481670168244fdac78000612dd9565b611d0e9084612f36565b92506001607f1b611d1f8383612dd9565b611d299190612e0e565b9050611d3c81664807432bc18000612dd9565b611d469084612f36565b92506001607f1b611d578383612dd9565b611d619190612e0e565b9050611d7481660c0135dca04000612dd9565b611d7e9084612f36565b92506001607f1b611d8f8383612dd9565b611d999190612e0e565b9050611dac816601b707b1cdc000612dd9565b611db69084612f36565b92506001607f1b611dc78383612dd9565b611dd19190612e0e565b9050611de3816536e0f639b800612dd9565b611ded9084612f36565b92506001607f1b611dfe8383612dd9565b611e089190612e0e565b9050611e1a81650618fee9f800612dd9565b611e249084612f36565b92506001607f1b611e358383612dd9565b611e3f9190612e0e565b9050611e5081649c197dcc00612dd9565b611e5a9084612f36565b92506001607f1b611e6b8383612dd9565b611e759190612e0e565b9050611e8681640e30dce400612dd9565b611e909084612f36565b92506001607f1b611ea18383612dd9565b611eab9190612e0e565b9050611ebc8164012ebd1300612dd9565b611ec69084612f36565b92506001607f1b611ed78383612dd9565b611ee19190612e0e565b9050611ef1816317499f00612dd9565b611efb9084612f36565b92506001607f1b611f0c8383612dd9565b611f169190612e0e565b9050611f26816301a9d480612dd9565b611f309084612f36565b92506001607f1b611f418383612dd9565b611f4b9190612e0e565b9050611f5a81621c6380612dd9565b611f649084612f36565b92506001607f1b611f758383612dd9565b611f7f9190612e0e565b9050611f8e816201c638612dd9565b611f989084612f36565b92506001607f1b611fa98383612dd9565b611fb39190612e0e565b9050611fc181611ab8612dd9565b611fcb9084612f36565b92506001607f1b611fdc8383612dd9565b611fe69190612e0e565b9050611ff48161017c612dd9565b611ffe9084612f36565b92506001607f1b61200f8383612dd9565b6120199190612e0e565b9050612026816014612dd9565b6120309084612f36565b92506001607f1b6120418383612dd9565b61204b9190612e0e565b9050612058816001612dd9565b6120629084612f36565b92506001607f1b8261207c6721c3677c82b4000086612e0e565b6120869190612f36565b6120909190612f36565b92506001607c1b8516156120d85770018ebef9eac820ae8682b9793ac6d1e7766120cb847001c3d6a24ed82218787d624d3e5eba95f9612dd9565b6120d59190612e0e565b92505b6001607d1b85161561211e577001368b2fc6f9609fe7aceb46aa619baed46121118470018ebef9eac820ae8682b9793ac6d1e778612dd9565b61211b9190612e0e565b92505b6001607e1b851615612163576fbc5ab1b16779be3575bd8f0520a9f21f612156847001368b2fc6f9609fe7aceb46aa619baed5612dd9565b6121609190612e0e565b92505b6001607f1b8516156121a7576f454aaa8efe072e7f6ddbab84b40a55c961219a846fbc5ab1b16779be3575bd8f0520a9f21e612dd9565b6121a49190612e0e565b92505b600160801b8516156121eb576f0960aadc109e7a3bf4578099615711ea6121de846f454aaa8efe072e7f6ddbab84b40a55c5612dd9565b6121e89190612e0e565b92505b600160811b85161561222e576e2bf84208204f5977f9a8cf01fdce3d612221846f0960aadc109e7a3bf4578099615711d7612dd9565b61222b9190612e0e565b92505b600160821b85161561226f576d03c6ab775dd0b95b4cbee7e65d11612262846e2bf84208204f5977f9a8cf01fdc307612dd9565b61226c9190612e0e565b92505b50909392505050565b60006020607f5b60ff811661228e836001612fde565b60ff1610156122e157600060026122a58385612fde565b6122af9190612ff7565b90508460068260ff16608081106122c8576122c8613019565b0154106122d7578092506122db565b8091505b5061227f565b8360068260ff16608081106122f8576122f8613019565b015410612306579392505050565b8360068360ff166080811061231d5761231d613019565b01541061232b575092915050565b612333612f7e565b5060009392505050565b6000828160ff841661234f8380612dd9565b901c915061236d826f03442c4e6074a82f1797f72ac0000000612dd9565b6123779082612f36565b905060ff84166123878684612dd9565b901c91506123a5826f0116b96f757c380fb287fd0e40000000612dd9565b6123af9082612f36565b905060ff84166123bf8684612dd9565b901c91506123dc826e45ae5bdd5f0e03eca1ff4390000000612dd9565b6123e69082612f36565b905060ff84166123f68684612dd9565b901c9150612413826e0defabf91302cd95b9ffda50000000612dd9565b61241d9082612f36565b905060ff841661242d8684612dd9565b901c915061244a826e02529ca9832b22439efff9b8000000612dd9565b6124549082612f36565b905060ff84166124648684612dd9565b901c9150612480826d54f1cf12bd04e516b6da88000000612dd9565b61248a9082612f36565b905060ff841661249a8684612dd9565b901c91506124b6826d0a9e39e257a09ca2d6db51000000612dd9565b6124c09082612f36565b905060ff84166124d08684612dd9565b901c91506124ec826d012e066e7b839fa050c309000000612dd9565b6124f69082612f36565b905060ff84166125068684612dd9565b901c9150612521826c1e33d7d926c329a1ad1a800000612dd9565b61252b9082612f36565b905060ff841661253b8684612dd9565b901c9150612556826c02bee513bdb4a6b19b5f800000612dd9565b6125609082612f36565b905060ff84166125708684612dd9565b901c915061258a826b3a9316fa79b88eccf2a00000612dd9565b6125949082612f36565b905060ff84166125a48684612dd9565b901c91506125be826b048177ebe1fa812375200000612dd9565b6125c89082612f36565b905060ff84166125d88684612dd9565b901c91506125f1826a5263fe90242dcbacf00000612dd9565b6125fb9082612f36565b905060ff841661260b8684612dd9565b901c9150612624826a057e22099c030d94100000612dd9565b61262e9082612f36565b905060ff841661263e8684612dd9565b901c9150612656826957e22099c030d9410000612dd9565b6126609082612f36565b905060ff84166126708684612dd9565b901c91506126888269052b6b54569976310000612dd9565b6126929082612f36565b905060ff84166126a28684612dd9565b901c91506126b982684985f67696bf748000612dd9565b6126c39082612f36565b905060ff84166126d38684612dd9565b901c91506126ea826803dea12ea99e498000612dd9565b6126f49082612f36565b905060ff84166127048684612dd9565b901c915061271a826731880f2214b6e000612dd9565b6127249082612f36565b905060ff84166127348684612dd9565b901c915061274a8267025bcff56eb36000612dd9565b6127549082612f36565b905060ff84166127648684612dd9565b901c915061277982661b722e10ab1000612dd9565b6127839082612f36565b905060ff84166127938684612dd9565b901c91506127a8826601317c70077000612dd9565b6127b29082612f36565b905060ff84166127c28684612dd9565b901c91506127d682650cba84aafa00612dd9565b6127e09082612f36565b905060ff84166127f08684612dd9565b901c9150612803826482573a0a00612dd9565b61280d9082612f36565b905060ff841661281d8684612dd9565b901c9150612830826405035ad900612dd9565b61283a9082612f36565b905060ff841661284a8684612dd9565b901c915061285c82632f881b00612dd9565b6128669082612f36565b905060ff84166128768684612dd9565b901c9150612888826301b29340612dd9565b6128929082612f36565b905060ff84166128a28684612dd9565b901c91506128b382620efc40612dd9565b6128bd9082612f36565b905060ff84166128cd8684612dd9565b901c91506128dd82617fe0612dd9565b6128e79082612f36565b905060ff84166128f78684612dd9565b901c915061290782610420612dd9565b6129119082612f36565b905060ff84166129218684612dd9565b901c9150612930826021612dd9565b61293a9082612f36565b905060ff841661294a8684612dd9565b901c9150612959826001612dd9565b6129639082612f36565b9050600160ff85161b856129876f0688589cc0e9505e2f2fee558000000084612e0e565b6129919190612f36565b61299b9190612f36565b95945050505050565b60006088543a11156129b8576129b8612f7e565b81600081116129c657600080fd5b60006129d184610e1e565b90506129dd8582611441565b604080516001600160a01b0387168152602081018390529081018590527f65ab8b57af027ad387b3f608b0745de61b7dc81d07be6ded03736db32fe46bd9906060016115d5565b6001600160a01b038216612a845760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104f8565b6001600160a01b03821660009081526001602052604090205481811015612af85760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104f8565b6001600160a01b0383166000908152600160205260408120838303905560038054849290612b27908490612e22565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60008082610100811015612ba6575b6001811115612ba157600190811c90612b9a9083612fde565b9150612b81565b612bda565b60805b60ff811615612bd857600160ff82161b8210612bcd579182179160ff81169190911c905b60011c607f16612ba9565b505b5092915050565b600060208083528351808285015260005b81811015612c0e57858101830151858201604001528201612bf2565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114612c4657600080fd5b919050565b60008060408385031215612c5e57600080fd5b612c6783612c2f565b946020939093013593505050565b60008060408385031215612c8857600080fd5b50508035926020909101359150565b600080600060608486031215612cac57600080fd5b612cb584612c2f565b9250612cc360208501612c2f565b9150604084013590509250925092565b60008060008060808587031215612ce957600080fd5b8435935060208501359250604085013563ffffffff81168114612d0b57600080fd5b9396929550929360600135925050565b600060208284031215612d2d57600080fd5b5035919050565b600060208284031215612d4657600080fd5b612d4f82612c2f565b9392505050565b60008060408385031215612d6957600080fd5b612d7283612c2f565b9150612d8060208401612c2f565b90509250929050565b600181811c90821680612d9d57607f821691505b602082108103612dbd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612df357612df3612dc3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e1d57612e1d612df8565b500490565b8181038181111561047e5761047e612dc3565b600060208284031215612e4757600080fd5b81518015158114612d4f57600080fd5b60208082526027908201527f42616e636f72466f726d756c613a20436f6e6e6563746f7242616c616e63652060408201526606e6f74203e20360cc1b606082015260800190565b60208082526027908201527f42616e636f72466f726d756c613a20436f6e6e6563746f72205765696768742060408201526606e6f74203e20360cc1b606082015260800190565b60208082526031908201527f42616e636f72466f726d756c613a20436f6e6e6563746f7220576569676874206040820152701b9bdd080f0f4813505617d5d15251d215607a1b606082015260800190565b8082018082111561047e5761047e612dc3565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052600160045260246000fd5b60ff828116828216039081111561047e5761047e612dc3565b600060ff821680612fc057612fc0612dc3565b6000190192915050565b600082612fd957612fd9612df8565b500690565b60ff818116838216019081111561047e5761047e612dc3565b600060ff83168061300a5761300a612df8565b8060ff84160491505092915050565b634e487b7160e01b600052603260045260246000fdfea26469706673582212204f389acbb44df69d33730c74e4da99a1c394fb935814af1071c77f68caaa957064736f6c63430008100033

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

000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000002faf080

-----Decoded View---------------
Arg [0] : token (address): 0xf735A6a08B6edE1B271Ae6F7f4e589E7fCBF369B
Arg [1] : fee (uint256): 10000000000000000
Arg [2] : gasPrice (uint256): 50000000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f735a6a08b6ede1b271ae6f7f4e589e7fcbf369b
Arg [1] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [2] : 0000000000000000000000000000000000000000000000000000000002faf080


Deployed Bytecode Sourcemap

204:3578:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2074:98:1;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4171:166;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:13;;1162:22;1144:41;;1132:2;1117:18;4171:166:1;1004:187:13;938:26:10;;;;;;;;;;;;1370:10:13;1358:23;;;1340:42;;1328:2;1313:18;938:26:10;1196:192:13;3162:106:1;3249:12;;3162:106;;;1539:25:13;;;1527:2;1512:18;3162:106:1;1393:177:13;2635:787:7;;;;;;:::i;:::-;;:::i;:::-;;4804:478:1;;;;;;:::i;:::-;;:::i;1244:1165:9:-;;;;;;:::i;:::-;;:::i;3011:91:1:-;;;3093:2;2789:36:13;;2777:2;2762:18;3011:91:1;2647:184:13;5677:212:1;;;;;;:::i;:::-;;:::i;3037:1415:9:-;;;;;;:::i;:::-;;:::i;530:29::-;;;:::i;483:58:7:-;;;;;;;;-1:-1:-1;;;;;3029:32:13;;;3011:51;;2999:2;2984:18;483:58:7;2836:232:13;1831:176:10;;;;;;:::i;:::-;;:::i;3326:125:1:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3426:18:1;3400:7;3426:18;;;:9;:18;;;;;;;3326:125;1605:92:0;;;:::i;1663:747:7:-;;;;;;:::i;:::-;;:::i;973:85:0:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:0;973:85;;2285:102:1;;;:::i;3582:98:7:-;3661:12;;3582:98;;1645:180:10;;;;;;:::i;:::-;;:::i;6376:405:1:-;;;;;;:::i;:::-;;:::i;3654:172::-;;;;;;:::i;:::-;;:::i;3686:94:7:-;;;;;;:::i;:::-;;:::i;3884:149:1:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3999:18:1;;;3973:7;3999:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3884:149;1846:189:0;;;;;;:::i;:::-;;:::i;1287:23:10:-;;;;;;2074:98:1;2128:13;2160:5;2153:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2074:98;:::o;4171:166::-;4254:4;4270:39;665:10:4;4293:7:1;4302:6;4270:8;:39::i;:::-;-1:-1:-1;4326:4:1;4171:166;;;;;:::o;2635:787:7:-;2750:10;3400:7:1;3426:18;;;:9;:18;;;;;;2765:12:7;-1:-1:-1;2740:37:7;2732:110;;;;-1:-1:-1;;;2732:110:7;;4509:2:13;2732:110:7;;;4491:21:13;4548:2;4528:18;;;4521:30;4587:34;4567:18;;;4560:62;-1:-1:-1;;;4638:18:13;;;4631:46;4694:19;;2732:110:7;;;;;;;;;2852:18;355:4;2874:19;2889:4;2874:12;:19;:::i;:::-;2873:39;;;;:::i;:::-;2852:60;;2922:48;2932:10;2952:4;2959:10;2922:9;:48::i;:::-;2980:17;3000:38;3012:25;3027:10;3012:12;:25;:::i;:::-;3000:11;:38::i;:::-;2980:58;;3078:9;3063:12;;:24;;;;:::i;:::-;3048:12;:39;3105:35;;;;3097:123;;;;-1:-1:-1;;;3097:123:7;;5621:2:13;3097:123:7;;;5603:21:13;5660:2;5640:18;;;5633:30;5699:34;5679:18;;;5672:62;5770:33;5750:18;;;5743:61;5821:19;;3097:123:7;5419:427:13;3097:123:7;3238:52;;-1:-1:-1;;;3238:52:7;;3268:10;3238:52;;;6025:51:13;6092:18;;;6085:34;;;3238:20:7;-1:-1:-1;;;;;3238:29:7;;;;5998:18:13;;3238:52:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3230:117;;;;-1:-1:-1;;;3230:117:7;;6614:2:13;3230:117:7;;;6596:21:13;6653:2;6633:18;;;6626:30;6692:34;6672:18;;;6665:62;-1:-1:-1;;;6743:18:13;;;6736:38;6791:19;;3230:117:7;6412:404:13;3230:117:7;3362:53;;;6995:25:13;;;7051:2;7036:18;;7029:34;;;3379:10:7;;3362:53;;6968:18:13;3362:53:7;;;;;;;2722:700;;2635:787;;:::o;4804:478:1:-;4940:4;4956:36;4966:6;4974:9;4985:6;4956:9;:36::i;:::-;-1:-1:-1;;;;;5030:19:1;;5003:24;5030:19;;;:11;:19;;;;;;;;665:10:4;5030:33:1;;;;;;;;5081:26;;;;5073:79;;;;-1:-1:-1;;;5073:79:1;;7276:2:13;5073:79:1;;;7258:21:13;7315:2;7295:18;;;7288:30;7354:34;7334:18;;;7327:62;-1:-1:-1;;;7405:18:13;;;7398:38;7453:19;;5073:79:1;7074:404:13;5073:79:1;5186:57;5195:6;665:10:4;5236:6:1;5217:16;:25;5186:8;:57::i;:::-;-1:-1:-1;5271:4:1;;4804:478;-1:-1:-1;;;;4804:478:1:o;1244:1165:9:-;1424:7;1491:1;1481:7;:11;1473:54;;;;-1:-1:-1;;;1473:54:9;;7685:2:13;1473:54:9;;;7667:21:13;7724:2;7704:18;;;7697:30;7763:32;7743:18;;;7736:60;7813:18;;1473:54:9;7483:354:13;1473:54:9;1565:1;1545:17;:21;1537:73;;;;-1:-1:-1;;;1537:73:9;;;;;;;:::i;:::-;1647:1;1628:16;:20;;;1620:72;;;;-1:-1:-1;;;1620:72:9;;;;;;;:::i;:::-;602:7;1710:30;;;;;1702:92;;;;-1:-1:-1;;;1702:92:9;;;;;;;:::i;:::-;1854:14;1872:1;1854:19;1850:58;;-1:-1:-1;1896:1:9;1889:8;;1850:58;-1:-1:-1;;1966:30:9;;;;1962:112;;2046:17;2019:24;2029:14;2019:7;:24;:::i;:::-;:44;;;;:::i;:::-;2012:51;;;;1962:112;2083:14;;;2148:34;2165:17;2148:14;:34;:::i;:::-;2132:50;;2214:83;2233:5;2240:17;2259:16;602:7;2214:5;:83::i;:::-;2192:105;;-1:-1:-1;2192:105:9;-1:-1:-1;2307:22:9;2332:29;;;:16;2192:105;2332:7;:16;:::i;:::-;:29;;;-1:-1:-1;2378:24:9;2395:7;2332:29;2378:24;:::i;:::-;2371:31;;;;;;1244:1165;;;;;;;:::o;5677:212:1:-;665:10:4;5765:4:1;5813:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;5813:34:1;;;;;;;;;;5765:4;;5781:80;;5804:7;;5813:47;;5850:10;;5813:47;:::i;:::-;5781:8;:80::i;3037:1415:9:-;3210:7;3277:1;3267:7;:11;3259:54;;;;-1:-1:-1;;;3259:54:9;;7685:2:13;3259:54:9;;;7667:21:13;7724:2;7704:18;;;7697:30;7763:32;7743:18;;;7736:60;7813:18;;3259:54:9;7483:354:13;3259:54:9;3351:1;3331:17;:21;3323:73;;;;-1:-1:-1;;;3323:73:9;;;;;;;:::i;:::-;3433:1;3414:16;:20;;;3406:72;;;;-1:-1:-1;;;3406:72:9;;;;;;;:::i;:::-;602:7;3496:30;;;;;3488:92;;;;-1:-1:-1;;;3488:92:9;;;;;;;:::i;:::-;3613:7;3598:11;:22;;3590:75;;;;-1:-1:-1;;;3590:75:9;;9408:2:13;3590:75:9;;;9390:21:13;9447:2;9427:18;;;9420:30;9486:34;9466:18;;;9459:62;-1:-1:-1;;;9537:18:13;;;9530:38;9585:19;;3590:75:9;9206:404:13;3590:75:9;3722:11;3737:1;3722:16;3718:55;;-1:-1:-1;3761:1:9;3754:8;;3718:55;3855:7;3840:11;:22;3836:77;;-1:-1:-1;3885:17:9;3878:24;;3836:77;-1:-1:-1;;3971:30:9;;;;3967:109;;4058:7;4024:31;4044:11;4024:17;:31;:::i;3967:109::-;4085:14;;;4150:21;4160:11;4150:7;:21;:::i;:::-;4134:37;;4203:73;4222:7;4231:5;602:7;4250:16;4203:5;:73::i;:::-;4181:95;;-1:-1:-1;4181:95:9;-1:-1:-1;4286:18:9;4307:26;4181:95;4307:17;:26;:::i;:::-;4286:47;-1:-1:-1;4364:30:9;;;;;;4439:6;4412:23;4364:30;4286:47;4412:23;:::i;:::-;4411:34;;;;:::i;:::-;4404:41;3037:1415;-1:-1:-1;;;;;;;;;;3037:1415:9:o;530:29::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1831:176:10:-;1903:7;1929:71;1949:13;3249:12:1;;;3162:106;1949:13:10;3661:12:7;;1979::10;;;;1993:6;1929:19;:71::i;1605:92:0:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:0;665:10:4;1185:23:0;1177:68;;;;-1:-1:-1;;;1177:68:0;;;;;;;:::i;:::-;1669:21:::1;1687:1;1669:9;:21::i;:::-;1605:92::o:0;1663:747:7:-;1756:14;1783:13;3249:12:1;;;3162:106;1783:13:7;1800:1;1783:18;1780:314;;-1:-1:-1;1825:12:7;1851:31;1857:10;1825:12;1851:5;:31::i;:::-;1901:52;;;6995:25:13;;;7051:2;7036:18;;7029:34;;;1914:10:7;;1901:52;;6968:18:13;1901:52:7;;;;;;;1780:314;;;1993:25;2005:12;1993:11;:25::i;:::-;2037:46;;;6995:25:13;;;7051:2;7036:18;;7029:34;;;1984::7;;-1:-1:-1;2050:10:7;;2037:46;;6968:18:13;2037:46:7;;;;;;;1780:314;2121:22;2111:6;:32;;2103:104;;;;-1:-1:-1;;;2103:104:7;;10178:2:13;2103:104:7;;;10160:21:13;10217:2;10197:18;;;10190:30;10256:34;10236:18;;;10229:62;-1:-1:-1;;;10307:18:13;;;10300:45;10362:19;;2103:104:7;9976:411:13;2103:104:7;2233:12;2217;;:28;;;;;;;:::i;:::-;;;;-1:-1:-1;;2263:74:7;;-1:-1:-1;;;2263:74:7;;2297:10;2263:74;;;10632:34:13;2317:4:7;10682:18:13;;;10675:43;10734:18;;;10727:34;;;2263:20:7;-1:-1:-1;;;;;2263:33:7;;;;10567:18:13;;2263:74:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2255:148;;;;-1:-1:-1;;;2255:148:7;;10974:2:13;2255:148:7;;;10956:21:13;11013:2;10993:18;;;10986:30;11052:34;11032:18;;;11025:62;-1:-1:-1;;;11103:18:13;;;11096:47;11160:19;;2255:148:7;10772:413:13;2255:148:7;1746:664;1663:747;;:::o;2285:102:1:-;2341:13;2373:7;2366:14;;;;;:::i;1645:180:10:-;1717:7;1743:75;1767:13;3249:12:1;;;3162:106;1767:13:10;3661:12:7;;1797::10;;;;1811:6;1743:23;:75::i;6376:405:1:-;665:10:4;6469:4:1;6512:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;6512:34:1;;;;;;;;;;6564:35;;;;6556:85;;;;-1:-1:-1;;;6556:85:1;;11392:2:13;6556:85:1;;;11374:21:13;11431:2;11411:18;;;11404:30;11470:34;11450:18;;;11443:62;-1:-1:-1;;;11521:18:13;;;11514:35;11566:19;;6556:85:1;11190:401:13;6556:85:1;6675:67;665:10:4;6698:7:1;6726:15;6707:16;:34;6675:8;:67::i;:::-;-1:-1:-1;6770:4:1;;6376:405;-1:-1:-1;;;6376:405:1:o;3654:172::-;3740:4;3756:42;665:10:4;3780:9:1;3791:6;3756:9;:42::i;3686:94:7:-;1019:7:0;1045:6;-1:-1:-1;;;;;1045:6:0;665:10:4;1185:23:0;1177:68;;;;-1:-1:-1;;;1177:68:0;;;;;;;:::i;:::-;3751:22:7::1;3764:8;3751:12;:22::i;:::-;3686:94:::0;:::o;1846:189:0:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:0;665:10:4;1185:23:0;1177:68;;;;-1:-1:-1;;;1177:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1934:22:0;::::1;1926:73;;;::::0;-1:-1:-1;;;1926:73:0;;11798:2:13;1926:73:0::1;::::0;::::1;11780:21:13::0;11837:2;11817:18;;;11810:30;11876:34;11856:18;;;11849:62;-1:-1:-1;;;11927:18:13;;;11920:36;11973:19;;1926:73:0::1;11596:402:13::0;1926:73:0::1;2009:19;2019:8;2009:9;:19::i;9952:370:1:-:0;-1:-1:-1;;;;;10083:19:1;;10075:68;;;;-1:-1:-1;;;10075:68:1;;12205:2:13;10075:68:1;;;12187:21:13;12244:2;12224:18;;;12217:30;12283:34;12263:18;;;12256:62;-1:-1:-1;;;12334:18:13;;;12327:34;12378:19;;10075:68:1;12003:400:13;10075:68:1;-1:-1:-1;;;;;10161:21:1;;10153:68;;;;-1:-1:-1;;;10153:68:1;;12610:2:13;10153:68:1;;;12592:21:13;12649:2;12629:18;;;12622:30;12688:34;12668:18;;;12661:62;-1:-1:-1;;;12739:18:13;;;12732:32;12781:19;;10153:68:1;12408:398:13;10153:68:1;-1:-1:-1;;;;;10232:18:1;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10283:32;;1539:25:13;;;10283:32:1;;1512:18:13;10283:32:1;;;;;;;9952:370;;;:::o;7255:713::-;-1:-1:-1;;;;;7390:20:1;;7382:70;;;;-1:-1:-1;;;7382:70:1;;13013:2:13;7382:70:1;;;12995:21:13;13052:2;13032:18;;;13025:30;13091:34;13071:18;;;13064:62;-1:-1:-1;;;13142:18:13;;;13135:35;13187:19;;7382:70:1;12811:401:13;7382:70:1;-1:-1:-1;;;;;7470:23:1;;7462:71;;;;-1:-1:-1;;;7462:71:1;;13419:2:13;7462:71:1;;;13401:21:13;13458:2;13438:18;;;13431:30;13497:34;13477:18;;;13470:62;-1:-1:-1;;;13548:18:13;;;13541:33;13591:19;;7462:71:1;13217:399:13;7462:71:1;-1:-1:-1;;;;;7626:17:1;;7602:21;7626:17;;;:9;:17;;;;;;7661:23;;;;7653:74;;;;-1:-1:-1;;;7653:74:1;;13823:2:13;7653:74:1;;;13805:21:13;13862:2;13842:18;;;13835:30;13901:34;13881:18;;;13874:62;-1:-1:-1;;;13952:18:13;;;13945:36;13998:19;;7653:74:1;13621:402:13;7653:74:1;-1:-1:-1;;;;;7761:17:1;;;;;;;:9;:17;;;;;;7781:22;;;7761:42;;7823:20;;;;;;;;:30;;7797:6;;7761:17;7823:30;;7797:6;;7823:30;:::i;:::-;;;;;;;;7886:9;-1:-1:-1;;;;;7869:35:1;7878:6;-1:-1:-1;;;;;7869:35:1;;7897:6;7869:35;;;;1539:25:13;;1527:2;1512:18;;1393:177;7869:35:1;;;;;;;;7372:596;7255:713;;;:::o;2582:122:10:-;2637:7;2663:34;2678:10;2690:6;2663:14;:34::i;21610:863:12:-;21746:7;21755:5;-1:-1:-1;;;21783:6:12;:16;21776:24;;;;:::i;:::-;21828:6;21818;:16;;21810:57;;;;-1:-1:-1;;;21810:57:12;;14362:2:13;21810:57:12;;;14344:21:13;14401:2;14381:18;;;14374:30;14440;14420:18;;;14413:58;14488:18;;21810:57:12;14160:352:13;21810:57:12;21878:15;;21937:6;21918:16;-1:-1:-1;;;21918:6:12;:16;:::i;:::-;:25;;;;:::i;:::-;21903:40;;11466:35;21957:4;:22;21953:136;;;22005:16;22016:4;22005:10;:16::i;:::-;21995:26;;21953:136;;;22062:16;22073:4;22062:10;:16::i;:::-;22052:26;;21953:136;22099:23;22143:5;22125:23;;22135:5;22125:15;;:7;:15;;;;:::i;:::-;:23;;;;:::i;:::-;22099:49;;-1:-1:-1;;;22162:15:12;:33;22158:309;;;22219:27;22230:15;22219:10;:27::i;:::-;10649:3;22211:51;;;;;;;;;22158:309;22293:15;22311:42;22337:15;22311:25;:42::i;:::-;22293:60;-1:-1:-1;22375:69:12;22406:25;22293:60;10649:3;22406:25;:::i;:::-;22386:46;;:15;:46;;22434:9;22375:10;:69::i;:::-;22367:89;-1:-1:-1;22446:9:12;-1:-1:-1;22367:89:12;;-1:-1:-1;;;22367:89:12;21610:863;;;;;;;;:::o;2041:169:0:-;2096:16;2115:6;;-1:-1:-1;;;;;2131:17:0;;;-1:-1:-1;;;;;;2131:17:0;;;;;;2163:40;;2115:6;;;;;;;2163:40;;2096:16;2163:40;2086:124;2041:169;:::o;8244:389:1:-;-1:-1:-1;;;;;8327:21:1;;8319:65;;;;-1:-1:-1;;;8319:65:1;;14875:2:13;8319:65:1;;;14857:21:13;14914:2;14894:18;;;14887:30;14953:33;14933:18;;;14926:61;15004:18;;8319:65:1;14673:355:13;8319:65:1;8471:6;8455:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8487:18:1;;;;;;:9;:18;;;;;:28;;8509:6;;8487:18;:28;;8509:6;;8487:28;:::i;:::-;;;;-1:-1:-1;;8530:37:1;;1539:25:13;;;-1:-1:-1;;;;;8530:37:1;;;8547:1;;8530:37;;1527:2:13;1512:18;8530:37:1;;;;;;;8244:389;;:::o;2053:124:10:-;2109:7;2135:35;2150:10;2162:7;2135:14;:35::i;3136:119::-;3216:1;3204:9;:13;3196:22;;;;;;3228:8;:20;3136:119::o;2710:300::-;2814:7;3524:8;;3509:11;:23;;3502:31;;;;:::i;:::-;2788:6:::1;3619:1;3610:6;:10;:45;;;;-1:-1:-1::0;3634:10:10::1;3400:7:1::0;3426:18;;;:9;:18;;;;;;3649:6:10;-1:-1:-1;3624:31:10::1;3610:45;3602:54;;;::::0;::::1;;2833:21:::2;2857:33;2883:6;2857:25;:33::i;:::-;2833:57;;2900:19;2906:4;2912:6;2900:5;:19::i;:::-;2934:39;::::0;;-1:-1:-1;;;;;15253:32:13;;15235:51;;15317:2;15302:18;;15295:34;;;15345:18;;;15338:34;;;2934:39:10::2;::::0;15223:2:13;15208:18;2934:39:10::2;;;;;;;;2990:13:::0;2710:300;-1:-1:-1;;;;2710:300:10:o;29571:2397:12:-;29625:7;;;;;29737:34;29732:39;;29728:143;;29774:41;-1:-1:-1;;;29774:41:12;;:::i;:::-;;-1:-1:-1;29835:34:12;29821:11;-1:-1:-1;;;29821:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;29817:52;;29728:143;29889:34;29884:1;:39;29880:143;;29926:41;-1:-1:-1;;;29926:41:12;;:::i;:::-;;-1:-1:-1;29987:34:12;29973:11;-1:-1:-1;;;29973:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;29969:52;;29880:143;30041:34;30036:1;:39;30032:143;;30078:41;-1:-1:-1;;;30078:41:12;;:::i;:::-;;-1:-1:-1;30139:34:12;30125:11;-1:-1:-1;;;30125:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30121:52;;30032:143;30193:34;30188:1;:39;30184:143;;30230:41;-1:-1:-1;;;30230:41:12;;:::i;:::-;;-1:-1:-1;30291:34:12;30277:11;-1:-1:-1;;;30277:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30273:52;;30184:143;30345:34;30340:1;:39;30336:143;;30382:41;-1:-1:-1;;;30382:41:12;;:::i;:::-;;-1:-1:-1;30443:34:12;30429:11;-1:-1:-1;;;30429:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30425:52;;30336:143;30497:34;30492:1;:39;30488:143;;30534:41;-1:-1:-1;;;30534:41:12;;:::i;:::-;;-1:-1:-1;30595:34:12;30581:11;-1:-1:-1;;;30581:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30577:52;;30488:143;30649:34;30644:1;:39;30640:143;;30686:41;-1:-1:-1;;;30686:41:12;;:::i;:::-;;-1:-1:-1;30747:34:12;30733:11;-1:-1:-1;;;30733:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30729:52;;30640:143;30801:34;30796:1;:39;30792:143;;30838:41;-1:-1:-1;;;30838:41:12;;:::i;:::-;;-1:-1:-1;30899:34:12;30885:11;-1:-1:-1;;;30885:1:12;:11;:::i;:::-;:48;;;;:::i;:::-;30881:52;;30792:143;30953:11;-1:-1:-1;;;30953:1:12;:11;:::i;:::-;30949:15;-1:-1:-1;30949:15:12;;-1:-1:-1;;;;30978:5:12;30949:15;;30978:5;:::i;:::-;:15;;;;:::i;:::-;30974:19;-1:-1:-1;;;;31015:39:12;31053:1;31058:35;31015:39;:::i;:::-;31010:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31003:90;;;;:::i;:::-;;-1:-1:-1;;;;31099:5:12;31103:1;31099;:5;:::i;:::-;:15;;;;:::i;:::-;31095:19;-1:-1:-1;;;;31136:39:12;31174:1;31136:35;:39;:::i;:::-;31131:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31124:90;;;;:::i;:::-;;-1:-1:-1;;;;31220:5:12;31224:1;31220;:5;:::i;:::-;:15;;;;:::i;:::-;31216:19;-1:-1:-1;;;;31257:39:12;31295:1;31257:35;:39;:::i;:::-;31252:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31245:90;;;;:::i;:::-;;-1:-1:-1;;;;31341:5:12;31345:1;31341;:5;:::i;:::-;:15;;;;:::i;:::-;31337:19;-1:-1:-1;;;;31378:39:12;31416:1;31378:35;:39;:::i;:::-;31373:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31366:90;;;;:::i;:::-;;-1:-1:-1;;;;31462:5:12;31466:1;31462;:5;:::i;:::-;:15;;;;:::i;:::-;31458:19;-1:-1:-1;;;;31499:39:12;31537:1;31499:35;:39;:::i;:::-;31494:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31487:90;;;;:::i;:::-;;-1:-1:-1;;;;31583:5:12;31587:1;31583;:5;:::i;:::-;:15;;;;:::i;:::-;31579:19;-1:-1:-1;;;;31620:39:12;31658:1;31620:35;:39;:::i;:::-;31615:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31608:90;;;;:::i;:::-;;-1:-1:-1;;;;31704:5:12;31708:1;31704;:5;:::i;:::-;:15;;;;:::i;:::-;31700:19;-1:-1:-1;;;;31741:39:12;31779:1;31741:35;:39;:::i;:::-;31736:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31729:90;;;;:::i;:::-;;-1:-1:-1;;;;31825:5:12;31829:1;31825;:5;:::i;:::-;:15;;;;:::i;:::-;31821:19;-1:-1:-1;;;;31862:39:12;31900:1;31862:35;:39;:::i;:::-;31857:45;;:1;:45;:::i;:::-;:83;;;;:::i;:::-;31850:90;;;;:::i;:::-;;29571:2397;-1:-1:-1;;;;;;29571:2397:12:o;22638:826::-;22693:7;;22749:2;-1:-1:-1;;;22857:12:12;;22853:152;;22885:11;22899:22;22909:11;-1:-1:-1;;;22909:1:12;:11;:::i;:::-;22899:9;:22::i;:::-;22935:11;;;;;;;22885:36;;-1:-1:-1;22979:15:12;;-1:-1:-1;;;10886:35:12;22979:15;:::i;:::-;22973:21;;22871:134;22853:152;-1:-1:-1;;;23110:1:12;:11;23106:297;;;10649:3;23137:256;23167:5;;;;23137:256;;-1:-1:-1;;;23202:5:12;23206:1;;23202:5;:::i;:::-;23201:17;;;;:::i;:::-;23197:21;;-1:-1:-1;;;23257:1:12;:12;23253:126;;23299:1;23293:7;;;;23354:5;;:1;:5;:::i;:::-;23346:14;;10556:1;23346:14;;23339:21;;;;;:::i;:::-;;;23253:126;23174:3;;;:::i;:::-;;;23137:256;;;;23106:297;11275:33;23420:19;11193:33;23420:3;:19;:::i;:::-;:37;;;;:::i;32139:2980::-;32193:7;;;;32285:38;-1:-1:-1;;;32285:1:12;:38;:::i;:::-;32281:42;-1:-1:-1;32281:42:12;;-1:-1:-1;;;;32337:5:12;32281:42;;32337:5;:::i;:::-;:15;;;;:::i;:::-;32333:19;-1:-1:-1;32361:22:12;32333:19;32365:18;32361:22;:::i;:::-;32354:29;;;;:::i;:::-;;-1:-1:-1;;;;32423:5:12;32427:1;32423;:5;:::i;:::-;:15;;;;:::i;:::-;32419:19;-1:-1:-1;32447:22:12;32419:19;32451:18;32447:22;:::i;:::-;32440:29;;;;:::i;:::-;;-1:-1:-1;;;;32509:5:12;32513:1;32509;:5;:::i;:::-;:15;;;;:::i;:::-;32505:19;-1:-1:-1;32533:22:12;32505:19;32537:18;32533:22;:::i;:::-;32526:29;;;;:::i;:::-;;-1:-1:-1;;;;32595:5:12;32599:1;32595;:5;:::i;:::-;:15;;;;:::i;:::-;32591:19;-1:-1:-1;32619:22:12;32591:19;32623:18;32619:22;:::i;:::-;32612:29;;;;:::i;:::-;;-1:-1:-1;;;;32681:5:12;32685:1;32681;:5;:::i;:::-;:15;;;;:::i;:::-;32677:19;-1:-1:-1;32705:22:12;32677:19;32709:18;32705:22;:::i;:::-;32698:29;;;;:::i;:::-;;-1:-1:-1;;;;32767:5:12;32771:1;32767;:5;:::i;:::-;:15;;;;:::i;:::-;32763:19;-1:-1:-1;32791:22:12;32763:19;32795:18;32791:22;:::i;:::-;32784:29;;;;:::i;:::-;;-1:-1:-1;;;;32853:5:12;32857:1;32853;:5;:::i;:::-;:15;;;;:::i;:::-;32849:19;-1:-1:-1;32877:22:12;32849:19;32881:18;32877:22;:::i;:::-;32870:29;;;;:::i;:::-;;-1:-1:-1;;;;32939:5:12;32943:1;32939;:5;:::i;:::-;:15;;;;:::i;:::-;32935:19;-1:-1:-1;32963:22:12;32935:19;32967:18;32963:22;:::i;:::-;32956:29;;;;:::i;:::-;;-1:-1:-1;;;;33025:5:12;33029:1;33025;:5;:::i;:::-;:15;;;;:::i;:::-;33021:19;-1:-1:-1;33049:22:12;33021:19;33053:18;33049:22;:::i;:::-;33042:29;;;;:::i;:::-;;-1:-1:-1;;;;33111:5:12;33115:1;33111;:5;:::i;:::-;:15;;;;:::i;:::-;33107:19;-1:-1:-1;33135:22:12;33107:19;33139:18;33135:22;:::i;:::-;33128:29;;;;:::i;:::-;;-1:-1:-1;;;;33197:5:12;33201:1;33197;:5;:::i;:::-;:15;;;;:::i;:::-;33193:19;-1:-1:-1;33221:22:12;33193:19;33225:18;33221:22;:::i;:::-;33214:29;;;;:::i;:::-;;-1:-1:-1;;;;33283:5:12;33287:1;33283;:5;:::i;:::-;:15;;;;:::i;:::-;33279:19;-1:-1:-1;33307:22:12;33279:19;33311:18;33307:22;:::i;:::-;33300:29;;;;:::i;:::-;;-1:-1:-1;;;;33369:5:12;33373:1;33369;:5;:::i;:::-;:15;;;;:::i;:::-;33365:19;-1:-1:-1;33393:22:12;33365:19;33397:18;33393:22;:::i;:::-;33386:29;;;;:::i;:::-;;-1:-1:-1;;;;33455:5:12;33459:1;33455;:5;:::i;:::-;:15;;;;:::i;:::-;33451:19;-1:-1:-1;33479:22:12;33451:19;33483:18;33479:22;:::i;:::-;33472:29;;;;:::i;:::-;;-1:-1:-1;;;;33541:5:12;33545:1;33541;:5;:::i;:::-;:15;;;;:::i;:::-;33537:19;-1:-1:-1;33565:22:12;33537:19;33569:18;33565:22;:::i;:::-;33558:29;;;;:::i;:::-;;-1:-1:-1;;;;33627:5:12;33631:1;33627;:5;:::i;:::-;:15;;;;:::i;:::-;33623:19;-1:-1:-1;33651:22:12;33623:19;33655:18;33651:22;:::i;:::-;33644:29;;;;:::i;:::-;;-1:-1:-1;;;;33713:5:12;33717:1;33713;:5;:::i;:::-;:15;;;;:::i;:::-;33709:19;-1:-1:-1;33737:22:12;33709:19;33741:18;33737:22;:::i;:::-;33730:29;;;;:::i;:::-;;-1:-1:-1;;;;33799:5:12;33803:1;33799;:5;:::i;:::-;:15;;;;:::i;:::-;33795:19;-1:-1:-1;33823:22:12;33795:19;33827:18;33823:22;:::i;:::-;33816:29;;;;:::i;:::-;;-1:-1:-1;;;;33885:5:12;33889:1;33885;:5;:::i;:::-;:15;;;;:::i;:::-;33881:19;-1:-1:-1;33909:22:12;33881:19;33913:18;33909:22;:::i;:::-;33902:29;;;;:::i;:::-;;-1:-1:-1;;;;34000:1:12;33973:24;33979:18;33902:29;33973:24;:::i;:::-;:28;;;;:::i;:::-;:38;;;;:::i;:::-;33967:44;-1:-1:-1;;;;34077:39:12;;34076:46;34072:137;;34174:35;34130:41;:3;34136:35;34130:41;:::i;:::-;:79;;;;:::i;:::-;34124:85;;34072:137;-1:-1:-1;;;34224:39:12;;34223:46;34219:137;;34321:35;34277:41;:3;34283:35;34277:41;:::i;:::-;:79;;;;:::i;:::-;34271:85;;34219:137;-1:-1:-1;;;34371:39:12;;34370:46;34366:137;;34468:35;34424:41;:3;34430:35;34424:41;:::i;:::-;:79;;;;:::i;:::-;34418:85;;34366:137;-1:-1:-1;;;34518:39:12;;34517:46;34513:137;;34615:35;34571:41;:3;34577:35;34571:41;:::i;:::-;:79;;;;:::i;:::-;34565:85;;34513:137;-1:-1:-1;;;34665:39:12;;34664:46;34660:137;;34762:35;34718:41;:3;34724:35;34718:41;:::i;:::-;:79;;;;:::i;:::-;34712:85;;34660:137;-1:-1:-1;;;34812:39:12;;34811:46;34807:137;;34909:35;34865:41;:3;34871:35;34865:41;:::i;:::-;:79;;;;:::i;:::-;34859:85;;34807:137;-1:-1:-1;;;34959:39:12;;34958:46;34954:137;;35056:35;35012:41;:3;35018:35;35012:41;:::i;:::-;:79;;;;:::i;:::-;35006:85;;34954:137;-1:-1:-1;35109:3:12;;32139:2980;-1:-1:-1;;;32139:2980:12:o;24472:508::-;24546:5;10602:2;10649:3;24636:179;24643:11;;;:6;:2;24648:1;24643:6;:::i;:::-;:11;;;24636:179;;;24670:9;24694:1;24683:7;24688:2;24683;:7;:::i;:::-;24682:13;;;;:::i;:::-;24670:25;;24733:2;24713:11;24725:3;24713:16;;;;;;;;;:::i;:::-;;;:22;24709:95;;24758:3;24753:8;;24709:95;;;24801:3;24796:8;;24709:95;24656:159;24636:179;;;24848:2;24829:11;24841:2;24829:15;;;;;;;;;:::i;:::-;;;:21;24825:48;;24871:2;24472:508;-1:-1:-1;;;24472:508:12:o;24825:48::-;24906:2;24887:11;24899:2;24887:15;;;;;;;;;:::i;:::-;;;:21;24883:48;;-1:-1:-1;24929:2:12;24472:508;-1:-1:-1;;24472:508:12:o;24883:48::-;24942:13;;:::i;:::-;-1:-1:-1;24972:1:12;;24472:508;-1:-1:-1;;;24472:508:12:o;25569:3826::-;25642:7;25674:2;25642:7;25717:23;;;25718:7;25674:2;;25718:7;:::i;:::-;25717:23;;;-1:-1:-1;25749:38:12;25717:23;25754:33;25749:38;:::i;:::-;25742:45;;;;:::i;:::-;;-1:-1:-1;25828:23:12;;;25829:7;25834:2;25829;:7;:::i;:::-;25828:23;;;-1:-1:-1;25860:38:12;25828:23;25865:33;25860:38;:::i;:::-;25853:45;;;;:::i;:::-;;-1:-1:-1;25939:23:12;;;25940:7;25945:2;25940;:7;:::i;:::-;25939:23;;;-1:-1:-1;25971:38:12;25939:23;25976:33;25971:38;:::i;:::-;25964:45;;;;:::i;:::-;;-1:-1:-1;26050:23:12;;;26051:7;26056:2;26051;:7;:::i;:::-;26050:23;;;-1:-1:-1;26082:38:12;26050:23;26087:33;26082:38;:::i;:::-;26075:45;;;;:::i;:::-;;-1:-1:-1;26161:23:12;;;26162:7;26167:2;26162;:7;:::i;:::-;26161:23;;;-1:-1:-1;26193:38:12;26161:23;26198:33;26193:38;:::i;:::-;26186:45;;;;:::i;:::-;;-1:-1:-1;26272:23:12;;;26273:7;26278:2;26273;:7;:::i;:::-;26272:23;;;-1:-1:-1;26304:38:12;26272:23;26309:33;26304:38;:::i;:::-;26297:45;;;;:::i;:::-;;-1:-1:-1;26383:23:12;;;26384:7;26389:2;26384;:7;:::i;:::-;26383:23;;;-1:-1:-1;26415:38:12;26383:23;26420:33;26415:38;:::i;:::-;26408:45;;;;:::i;:::-;;-1:-1:-1;26494:23:12;;;26495:7;26500:2;26495;:7;:::i;:::-;26494:23;;;-1:-1:-1;26526:38:12;26494:23;26531:33;26526:38;:::i;:::-;26519:45;;;;:::i;:::-;;-1:-1:-1;26605:23:12;;;26606:7;26611:2;26606;:7;:::i;:::-;26605:23;;;-1:-1:-1;26637:38:12;26605:23;26642:33;26637:38;:::i;:::-;26630:45;;;;:::i;:::-;;-1:-1:-1;26716:23:12;;;26717:7;26722:2;26717;:7;:::i;:::-;26716:23;;;-1:-1:-1;26748:38:12;26716:23;26753:33;26748:38;:::i;:::-;26741:45;;;;:::i;:::-;;-1:-1:-1;26827:23:12;;;26828:7;26833:2;26828;:7;:::i;:::-;26827:23;;;-1:-1:-1;26859:38:12;26827:23;26864:33;26859:38;:::i;:::-;26852:45;;;;:::i;:::-;;-1:-1:-1;26938:23:12;;;26939:7;26944:2;26939;:7;:::i;:::-;26938:23;;;-1:-1:-1;26970:38:12;26938:23;26975:33;26970:38;:::i;:::-;26963:45;;;;:::i;:::-;;-1:-1:-1;27049:23:12;;;27050:7;27055:2;27050;:7;:::i;:::-;27049:23;;;-1:-1:-1;27081:38:12;27049:23;27086:33;27081:38;:::i;:::-;27074:45;;;;:::i;:::-;;-1:-1:-1;27160:23:12;;;27161:7;27166:2;27161;:7;:::i;:::-;27160:23;;;-1:-1:-1;27192:38:12;27160:23;27197:33;27192:38;:::i;:::-;27185:45;;;;:::i;:::-;;-1:-1:-1;27271:23:12;;;27272:7;27277:2;27272;:7;:::i;:::-;27271:23;;;-1:-1:-1;27303:38:12;27271:23;27308:33;27303:38;:::i;:::-;27296:45;;;;:::i;:::-;;-1:-1:-1;27382:23:12;;;27383:7;27388:2;27383;:7;:::i;:::-;27382:23;;;-1:-1:-1;27414:38:12;27382:23;27419:33;27414:38;:::i;:::-;27407:45;;;;:::i;:::-;;-1:-1:-1;27493:23:12;;;27494:7;27499:2;27494;:7;:::i;:::-;27493:23;;;-1:-1:-1;27525:38:12;27493:23;27530:33;27525:38;:::i;:::-;27518:45;;;;:::i;:::-;;-1:-1:-1;27604:23:12;;;27605:7;27610:2;27605;:7;:::i;:::-;27604:23;;;-1:-1:-1;27636:38:12;27604:23;27641:33;27636:38;:::i;:::-;27629:45;;;;:::i;:::-;;-1:-1:-1;27715:23:12;;;27716:7;27721:2;27716;:7;:::i;:::-;27715:23;;;-1:-1:-1;27747:38:12;27715:23;27752:33;27747:38;:::i;:::-;27740:45;;;;:::i;:::-;;-1:-1:-1;27826:23:12;;;27827:7;27832:2;27827;:7;:::i;:::-;27826:23;;;-1:-1:-1;27858:38:12;27826:23;27863:33;27858:38;:::i;:::-;27851:45;;;;:::i;:::-;;-1:-1:-1;27937:23:12;;;27938:7;27943:2;27938;:7;:::i;:::-;27937:23;;;-1:-1:-1;27969:38:12;27937:23;27974:33;27969:38;:::i;:::-;27962:45;;;;:::i;:::-;;-1:-1:-1;28048:23:12;;;28049:7;28054:2;28049;:7;:::i;:::-;28048:23;;;-1:-1:-1;28080:38:12;28048:23;28085:33;28080:38;:::i;:::-;28073:45;;;;:::i;:::-;;-1:-1:-1;28159:23:12;;;28160:7;28165:2;28160;:7;:::i;:::-;28159:23;;;-1:-1:-1;28191:38:12;28159:23;28196:33;28191:38;:::i;:::-;28184:45;;;;:::i;:::-;;-1:-1:-1;28270:23:12;;;28271:7;28276:2;28271;:7;:::i;:::-;28270:23;;;-1:-1:-1;28302:38:12;28270:23;28307:33;28302:38;:::i;:::-;28295:45;;;;:::i;:::-;;-1:-1:-1;28381:23:12;;;28382:7;28387:2;28382;:7;:::i;:::-;28381:23;;;-1:-1:-1;28413:38:12;28381:23;28418:33;28413:38;:::i;:::-;28406:45;;;;:::i;:::-;;-1:-1:-1;28492:23:12;;;28493:7;28498:2;28493;:7;:::i;:::-;28492:23;;;-1:-1:-1;28524:38:12;28492:23;28529:33;28524:38;:::i;:::-;28517:45;;;;:::i;:::-;;-1:-1:-1;28603:23:12;;;28604:7;28609:2;28604;:7;:::i;:::-;28603:23;;;-1:-1:-1;28635:38:12;28603:23;28640:33;28635:38;:::i;:::-;28628:45;;;;:::i;:::-;;-1:-1:-1;28714:23:12;;;28715:7;28720:2;28715;:7;:::i;:::-;28714:23;;;-1:-1:-1;28746:38:12;28714:23;28751:33;28746:38;:::i;:::-;28739:45;;;;:::i;:::-;;-1:-1:-1;28825:23:12;;;28826:7;28831:2;28826;:7;:::i;:::-;28825:23;;;-1:-1:-1;28857:38:12;28825:23;28862:33;28857:38;:::i;:::-;28850:45;;;;:::i;:::-;;-1:-1:-1;28936:23:12;;;28937:7;28942:2;28937;:7;:::i;:::-;28936:23;;;-1:-1:-1;28968:38:12;28936:23;28973:33;28968:38;:::i;:::-;28961:45;;;;:::i;:::-;;-1:-1:-1;29047:23:12;;;29048:7;29053:2;29048;:7;:::i;:::-;29047:23;;;-1:-1:-1;29079:38:12;29047:23;29084:33;29079:38;:::i;:::-;29072:45;;;;:::i;:::-;;-1:-1:-1;29158:23:12;;;29159:7;29164:2;29159;:7;:::i;:::-;29158:23;;;-1:-1:-1;29190:38:12;29158:23;29195:33;29190:38;:::i;:::-;29183:45;;;;:::i;:::-;;-1:-1:-1;10556:1:12;29320:17;;;;29314:2;29272:39;29278:33;29183:45;29272:39;:::i;:::-;:44;;;;:::i;:::-;:66;;;;:::i;:::-;29265:73;25569:3826;-1:-1:-1;;;;;25569:3826:12:o;2183:303:10:-;2305:7;3524:8;;3509:11;:23;;3502:31;;;;:::i;:::-;2270:7:::1;3742:1;3733:6;:10;3725:19;;;::::0;::::1;;2328:14:::2;2345:34;2371:7;2345:25;:34::i;:::-;2328:51;;2389:19;2395:4;2401:6;2389:5;:19::i;:::-;2423:33;::::0;;-1:-1:-1;;;;;15253:32:13;;15235:51;;15317:2;15302:18;;15295:34;;;15345:18;;;15338:34;;;2423:33:10::2;::::0;15223:2:13;15208:18;2423:33:10::2;15033:345:13::0;8953:576:1;-1:-1:-1;;;;;9036:21:1;;9028:67;;;;-1:-1:-1;;;9028:67:1;;16340:2:13;9028:67:1;;;16322:21:13;16379:2;16359:18;;;16352:30;16418:34;16398:18;;;16391:62;-1:-1:-1;;;16469:18:13;;;16462:31;16510:19;;9028:67:1;16138:397:13;9028:67:1;-1:-1:-1;;;;;9191:18:1;;9166:22;9191:18;;;:9;:18;;;;;;9227:24;;;;9219:71;;;;-1:-1:-1;;;9219:71:1;;16742:2:13;9219:71:1;;;16724:21:13;16781:2;16761:18;;;16754:30;16820:34;16800:18;;;16793:62;-1:-1:-1;;;16871:18:13;;;16864:32;16913:19;;9219:71:1;16540:398:13;9219:71:1;-1:-1:-1;;;;;9324:18:1;;;;;;:9;:18;;;;;9345:23;;;9324:44;;9388:12;:22;;9362:6;;9324:18;9388:22;;9362:6;;9388:22;:::i;:::-;;;;-1:-1:-1;;9426:37:1;;1539:25:13;;;9452:1:1;;-1:-1:-1;;;;;9426:37:1;;;;;1527:2:13;1512:18;9426:37:1;;;;;;;1746:664:7;1663:747;;:::o;23579:532:12:-;23633:5;;23685:2;23706:3;23702:7;;23698:386;;;23761:80;23772:1;23768;:5;23761:80;;;23799:1;23793:7;;;;23818:8;;;;:::i;:::-;;;23761:80;;;23698:386;;;23922:3;23907:167;23927:5;;;;23907:167;;10556:1;23971:8;;;;23965:15;;23961:99;;24033:8;;;;24004:7;;;;;;;;23961:99;23940:1;23934:7;;;23907:167;;;;23698:386;-1:-1:-1;24101:3:12;23579:532;-1:-1:-1;;23579:532:12:o;14:548:13:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:13;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:13:o;1575:248::-;1643:6;1651;1704:2;1692:9;1683:7;1679:23;1675:32;1672:52;;;1720:1;1717;1710:12;1672:52;-1:-1:-1;;1743:23:13;;;1813:2;1798:18;;;1785:32;;-1:-1:-1;1575:248:13:o;1828:328::-;1905:6;1913;1921;1974:2;1962:9;1953:7;1949:23;1945:32;1942:52;;;1990:1;1987;1980:12;1942:52;2013:29;2032:9;2013:29;:::i;:::-;2003:39;;2061:38;2095:2;2084:9;2080:18;2061:38;:::i;:::-;2051:48;;2146:2;2135:9;2131:18;2118:32;2108:42;;1828:328;;;;;:::o;2161:481::-;2246:6;2254;2262;2270;2323:3;2311:9;2302:7;2298:23;2294:33;2291:53;;;2340:1;2337;2330:12;2291:53;2376:9;2363:23;2353:33;;2433:2;2422:9;2418:18;2405:32;2395:42;;2487:2;2476:9;2472:18;2459:32;2531:10;2524:5;2520:22;2513:5;2510:33;2500:61;;2557:1;2554;2547:12;2500:61;2161:481;;;;-1:-1:-1;2580:5:13;;2632:2;2617:18;2604:32;;-1:-1:-1;;2161:481:13:o;3073:180::-;3132:6;3185:2;3173:9;3164:7;3160:23;3156:32;3153:52;;;3201:1;3198;3191:12;3153:52;-1:-1:-1;3224:23:13;;3073:180;-1:-1:-1;3073:180:13:o;3258:186::-;3317:6;3370:2;3358:9;3349:7;3345:23;3341:32;3338:52;;;3386:1;3383;3376:12;3338:52;3409:29;3428:9;3409:29;:::i;:::-;3399:39;3258:186;-1:-1:-1;;;3258:186:13:o;3657:260::-;3725:6;3733;3786:2;3774:9;3765:7;3761:23;3757:32;3754:52;;;3802:1;3799;3792:12;3754:52;3825:29;3844:9;3825:29;:::i;:::-;3815:39;;3873:38;3907:2;3896:9;3892:18;3873:38;:::i;:::-;3863:48;;3657:260;;;;;:::o;3922:380::-;4001:1;3997:12;;;;4044;;;4065:61;;4119:4;4111:6;4107:17;4097:27;;4065:61;4172:2;4164:6;4161:14;4141:18;4138:38;4135:161;;4218:10;4213:3;4209:20;4206:1;4199:31;4253:4;4250:1;4243:15;4281:4;4278:1;4271:15;4135:161;;3922:380;;;:::o;4724:127::-;4785:10;4780:3;4776:20;4773:1;4766:31;4816:4;4813:1;4806:15;4840:4;4837:1;4830:15;4856:168;4896:7;4962:1;4958;4954:6;4950:14;4947:1;4944:21;4939:1;4932:9;4925:17;4921:45;4918:71;;;4969:18;;:::i;:::-;-1:-1:-1;5009:9:13;;4856:168::o;5029:127::-;5090:10;5085:3;5081:20;5078:1;5071:31;5121:4;5118:1;5111:15;5145:4;5142:1;5135:15;5161:120;5201:1;5227;5217:35;;5232:18;;:::i;:::-;-1:-1:-1;5266:9:13;;5161:120::o;5286:128::-;5353:9;;;5374:11;;;5371:37;;;5388:18;;:::i;6130:277::-;6197:6;6250:2;6238:9;6229:7;6225:23;6221:32;6218:52;;;6266:1;6263;6256:12;6218:52;6298:9;6292:16;6351:5;6344:13;6337:21;6330:5;6327:32;6317:60;;6373:1;6370;6363:12;7842:403;8044:2;8026:21;;;8083:2;8063:18;;;8056:30;8122:34;8117:2;8102:18;;8095:62;-1:-1:-1;;;8188:2:13;8173:18;;8166:37;8235:3;8220:19;;7842:403::o;8250:::-;8452:2;8434:21;;;8491:2;8471:18;;;8464:30;8530:34;8525:2;8510:18;;8503:62;-1:-1:-1;;;8596:2:13;8581:18;;8574:37;8643:3;8628:19;;8250:403::o;8658:413::-;8860:2;8842:21;;;8899:2;8879:18;;;8872:30;8938:34;8933:2;8918:18;;8911:62;-1:-1:-1;;;9004:2:13;8989:18;;8982:47;9061:3;9046:19;;8658:413::o;9076:125::-;9141:9;;;9162:10;;;9159:36;;;9175:18;;:::i;9615:356::-;9817:2;9799:21;;;9836:18;;;9829:30;9895:34;9890:2;9875:18;;9868:62;9962:2;9947:18;;9615:356::o;14028:127::-;14089:10;14084:3;14080:20;14077:1;14070:31;14120:4;14117:1;14110:15;14144:4;14141:1;14134:15;14517:151;14607:4;14600:12;;;14586;;;14582:31;;14625:14;;14622:40;;;14642:18;;:::i;15383:178::-;15420:3;15464:4;15457:5;15453:16;15488:7;15478:41;;15499:18;;:::i;:::-;-1:-1:-1;;15535:20:13;;15383:178;-1:-1:-1;;15383:178:13:o;15566:112::-;15598:1;15624;15614:35;;15629:18;;:::i;:::-;-1:-1:-1;15663:9:13;;15566:112::o;15683:148::-;15771:4;15750:12;;;15764;;;15746:31;;15789:13;;15786:39;;;15805:18;;:::i;15836:165::-;15874:1;15908:4;15905:1;15901:12;15932:3;15922:37;;15939:18;;:::i;:::-;15991:3;15984:4;15981:1;15977:12;15973:22;15968:27;;;15836:165;;;;:::o;16006:127::-;16067:10;16062:3;16058:20;16055:1;16048:31;16098:4;16095:1;16088:15;16122:4;16119:1;16112:15

Swarm Source

ipfs://4f389acbb44df69d33730c74e4da99a1c394fb935814af1071c77f68caaa9570
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.