ETH Price: $3,433.64 (-1.51%)

Token

Burn (ASH)
 

Overview

Max Total Supply

3,518,238.004546095964793063 ASH

Holders

9,646 (0.00%)

Market

Price

$1.76 @ 0.000513 ETH (-3.64%)

Onchain Market Cap

$6,192,728.19

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
drdefi.eth
Balance
25 ASH

Value
$44.00 ( ~0.0128143889211337 Eth) [0.0007%]
0x8c9ec6a671c6819e84fb325604f73e321af0b5e3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Burn is a token of creation through destruction. For every NFT you burn, you get ashes in return. Burn art to get ashes to get art to burn art.

Market

Volume (24H):$1,480.56
Market Capitalization:$0.00
Circulating Supply:0.00 ASH
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
1
Uniswap V3 (Ethereum)
0X64D91F12ECE7362F91A6F8E7940CD55F05060B92-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.73
0.0005030 Eth
$1,465.88
834.503 0X64D91F12ECE7362F91A6F8E7940CD55F05060B92
94.3471%
2
Uniswap V2 (Ethereum)
0X64D91F12ECE7362F91A6F8E7940CD55F05060B92-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2$1.87
0.0005394 Eth
$93.70
50.000 0X64D91F12ECE7362F91A6F8E7940CD55F05060B92
5.6529%

Contract Source Code Verified (Exact Match)

Contract Name:
ASH

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : ASH.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/// @author: manifold.xyz

//////////////////////////////////////////////////////////
//                                                      //
//                                                      //
//               XX                  XX                 //
//              XXXXXX              XXXXXX              //
//           XXXXXXXXXXXX        XXXXXXXXXXXX           //
//         XXXXXXXXXXXXXXXX    XXXXXXXXXXXXXXXX         //
//        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX        //
//          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          //
//            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX            //
//               XXXXXXXXXXXXXXXXXXXXXXXX               //
//                XXXXXXXXXXXXXXXXXXXXXX                //
//               XXXXXXXXXXXXXXXXXXXXXXXX               //
//            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX            //
//          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          //
//        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX        //
//         XXXXXXXXXXXXXXXX    XXXXXXXXXXXXXXXX         //
//           XXXXXXXXXXXX        XXXXXXXXXXXX           //
//              XXXXXX              XXXXXX              //
//                XX                  XX                //
//                                                      //
//                                                      //
//////////////////////////////////////////////////////////


import "./NFT2ERC20.sol";

contract ASH is NFT2ERC20 {

    constructor() NFT2ERC20("Burn", "ASH") {}

}

File 2 of 18 : NFT2ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/// @author: manifold.xyz

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/utils/Address.sol";

import "./INFT2ERC20.sol";
import "./access/AdminControl.sol";
import "./rates/INFT2ERC20RateEngine.sol";

contract NFT2ERC20 is ReentrancyGuard, ERC20Burnable, AdminControl, INFT2ERC20 {
    using Address for address;

    address private _rateEngine;
    address private _treasury;
    uint128 private _treasuryBasisPoints;
    
    mapping (string => bytes4) private _specTransferFunction;

    constructor (string memory _name, string memory _symbol) ERC20(_name, _symbol) {
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AdminControl) returns (bool) {
        return interfaceId == type(INFT2ERC20).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {INFT2ERC20-setRateEngine}.
     */
    function setRateEngine(address rateEngine) external override adminRequired {
        require(ERC165Checker.supportsInterface(rateEngine, type(INFT2ERC20RateEngine).interfaceId), "NFT2ERC20: Must implement INFT2ERC20RateEngine");
        _rateEngine = rateEngine;
        emit RateEngineUpdated(msg.sender, rateEngine);
    }

    /*
     * @dev See {INFT2ERC20-setTreasury}
     */
    function setTreasury(address treasury, uint128 basisPoints) external override adminRequired {
        require(basisPoints < 10000, "NFT2ERC20: basisPoints must be less than 10000 (100%)");
        _treasury = treasury;
        _treasuryBasisPoints = basisPoints;
        emit TreasuryUpdated(msg.sender, treasury, basisPoints);
    }

    /*
     * @dev See {INFT2ERC20-getTreasury}
     */
    function getTreasury() external view override returns (address, uint128) {
        return (_treasury, _treasuryBasisPoints);
    }

    /**
     * @dev See {INFT2ERC20-getRateEngine}.
     */
    function getRateEngine() external view override returns (address) {
        return _rateEngine;
    }

    /**
     * @dev See {INFT2ERC20-setTransferFunction}.
     */
    function setTransferFunction(string calldata spec, bytes4 transferFunction) external override adminRequired {
        _specTransferFunction[spec] = transferFunction;
        emit TransferSpecUpdated(msg.sender, spec, transferFunction);
    }

    /**
     * @dev See {INFT2ERC20-burnToken}.
     */
    function burnToken(address tokenContract, uint256[] calldata args, string calldata spec) public override nonReentrant {
        _burnToken(tokenContract, args, spec, address(0x0));
    }

    /**
     * @dev See {INFT2ERC20-burnToken}.
     */
    function burnToken(address tokenContract, uint256[] calldata args, string calldata spec, address receiver) public override nonReentrant {
        _burnToken(tokenContract, args, spec, receiver);
    }

    function _burnToken(address tokenContract, uint256[] calldata args, string calldata spec, address receiver) private {
        require(args.length > 0, "NFT2ERC20: Must provide at least one argument");
        require(_rateEngine != address(0), "NFT2ERC20: Rate Engine not configured");
        require(_specTransferFunction[spec] != bytes4(0x0), "NFT2ERC20: Transfer function not defined for spec");
        require(tokenContract.isContract(), "NFT2ERC20: Token address must be contract");

        uint256 rate = INFT2ERC20RateEngine(_rateEngine).getRate(totalSupply(), tokenContract, args, spec);

        if (args.length > 1) {
            // Encode value params and burn token
            (bool success,) = tokenContract.call(abi.encodePacked(_specTransferFunction[spec], uint256(uint160(msg.sender)), uint256(0xdEaD), abi.encodePacked(args)));
            require(success, "NFT2ERC20: Burn failure");
        } else {
            // Burn the token
            (bool success,) = tokenContract.call(abi.encodeWithSelector(_specTransferFunction[spec], msg.sender, address(0xdEaD), args[0]));
            require(success, "NFT2ERC20: Burn failure");
        }

        if (receiver == address(0x0)) {        
            _mint(msg.sender, rate);
            emit Swapped(msg.sender, tokenContract, args, spec, rate);
        } else {
            _mint(receiver, rate);
            emit Swapped(receiver, tokenContract, args, spec, rate);
        }

        // Treasury gets additional minted ash
        if (_treasuryBasisPoints > 0 && _treasury != address(0x0)) {
            uint256 treasuryRate = (rate*_treasuryBasisPoints)/10000;
            if (treasuryRate > 0) {
                _mint(_treasury, treasuryRate);
            }
        }

    }

    
}

File 3 of 18 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 18 : ERC165Checker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) &&
            _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165(account).supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}

File 6 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

File 7 of 18 : INFT2ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/// @author: manifold.xyz
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./access/IAdminControl.sol";

interface INFT2ERC20 is IAdminControl, IERC20 {

    event Swapped(address indexed account, address indexed tokenContract, uint256[] args, string spec, uint256 rate);
    event RateEngineUpdated(address sender, address rateEngine);
    event TreasuryUpdated(address sender, address treasury, uint128 basisPoints);
    event TransferSpecUpdated(address sender, string spec, bytes4 transferFunction);
    
    /*
     * @dev sets the contract used to get NFT to ERC20 conversion rate values
     */
    function setRateEngine(address rateEngine) external;

    /*
     * @dev sets the amount of tokens the treasury gets on every burn
     */
    function setTreasury(address treasury, uint128 basisPoints) external;

    /*
     * @dev gets the treasury configuration
     */
    function getTreasury() external view returns(address, uint128);

    /*
     * @dev gets the rate engine
     */
    function getRateEngine() external view returns(address);

    /*
     * @dev sets the transfer function of a given spec
     */
    function setTransferFunction(string calldata spec, bytes4 transferFunction) external;

    /*
     * @dev burns an NFT token and gives the caller ERC20
     */
    function burnToken(address tokenContract, uint256[] calldata args, string calldata spec) external;

    /*
     * @dev burns an NFT token and gives the caller ERC20
     */
    function burnToken(address tokenContract, uint256[] calldata args, string calldata spec, address receiver) external;

    
}

File 8 of 18 : AdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAdminControl.sol";

abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IAdminControl).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
        _;
    }   

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (!_admins.contains(admin)) {
            emit AdminApproved(admin, msg.sender);
            _admins.add(admin);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.contains(admin)) {
            emit AdminRevoked(admin, msg.sender);
            _admins.remove(admin);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public override view returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

}

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

pragma solidity 0.8.3;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an INFT2ERC20 compliant converter contracts.
 */
interface INFT2ERC20RateEngine is IERC165 {
    /*
     * @dev get the conversion rate for a given NFT
     */
    function getRate(uint256 totalSupply, address tokenContract, uint256[] calldata args, string calldata spec) external view returns (uint256);

}

File 10 of 18 : 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 defaut 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");
        _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");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

File 11 of 18 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 12 of 18 : 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 13 of 18 : 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 14 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 18 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Admin control interface
 */
interface IAdminControl is IERC165 {

    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);

}

File 16 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 17 of 18 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 18 of 18 : 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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"rateEngine","type":"address"}],"name":"RateEngineUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"tokenContract","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"args","type":"uint256[]"},{"indexed":false,"internalType":"string","name":"spec","type":"string"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"string","name":"spec","type":"string"},{"indexed":false,"internalType":"bytes4","name":"transferFunction","type":"bytes4"}],"name":"TransferSpecUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"uint128","name":"basisPoints","type":"uint128"}],"name":"TreasuryUpdated","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":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256[]","name":"args","type":"uint256[]"},{"internalType":"string","name":"spec","type":"string"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"},{"internalType":"uint256[]","name":"args","type":"uint256[]"},{"internalType":"string","name":"spec","type":"string"},{"internalType":"address","name":"receiver","type":"address"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRateEngine","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint128","name":"","type":"uint128"}],"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":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rateEngine","type":"address"}],"name":"setRateEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"spec","type":"string"},{"internalType":"bytes4","name":"transferFunction","type":"bytes4"}],"name":"setTransferFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury","type":"address"},{"internalType":"uint128","name":"basisPoints","type":"uint128"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}]

60806040523480156200001157600080fd5b5060405180604001604052806004815260200163213ab93760e11b81525060405180604001604052806003815260200162082a6960eb1b81525081816001600081905550600062000067620000eb60201b60201c565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000ca906005906020850190620000ef565b508051620000e0906006906020840190620000ef565b5050505050620001d2565b3390565b828054620000fd9062000195565b90600052602060002090601f0160209004810192826200012157600085556200016c565b82601f106200013c57805160ff19168380011785556200016c565b828001600101855582156200016c579182015b828111156200016c5782518255916020019190600101906200014f565b506200017a9291506200017e565b5090565b5b808211156200017a57600081556001016200017f565b600181811c90821680620001aa57607f821691505b60208210811415620001cc57634e487b7160e01b600052602260045260246000fd5b50919050565b6128d880620001e26000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80636de09116116100f9578063a9059cbb11610097578063d4e8521b11610071578063d4e8521b146103da578063dd62ed3e146103ed578063ede6662b14610426578063f2fde38b14610439576101c4565b8063a9059cbb146103a3578063b9b9e408146103b6578063c132749c146103c9576101c4565b806379cc6790116100d357806379cc6790146103505780638da5cb5b1461036357806395d89b4114610388578063a457c2d714610390576101c4565b80636de091161461030c57806370a082311461031f578063715018a614610348576101c4565b80632d345670116101665780633950935111610140578063395093511461029d5780633b19e84a146102b057806342966c68146102e65780636d73e669146102f9576101c4565b80632d34567014610266578063313ce5671461027957806331ae450b14610288576101c4565b806318160ddd116101a257806318160ddd14610219578063185d95bb1461022b57806323b872dd1461024057806324d7806c14610253576101c4565b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004612497565b61044c565b60405190151581526020015b60405180910390f35b6101f9610492565b6040516101e8919061271c565b6101dc61021436600461244e565b610524565b6004545b6040519081526020016101e8565b61023e6102393660046124b1565b61053b565b005b6101dc61024e3660046122be565b610640565b6101dc610261366004612272565b610706565b61023e610274366004612272565b61073f565b604051601281526020016101e8565b6102906107ef565b6040516101e89190612695565b6101dc6102ab36600461244e565b6108ba565b600a54600b54604080516001600160a01b0390931683526fffffffffffffffffffffffffffffffff9091166020830152016101e8565b61023e6102f4366004612503565b6108f1565b61023e610307366004612272565b6108fb565b61023e61031a3660046122f9565b6109a5565b61021d61032d366004612272565b6001600160a01b031660009081526002602052604090205490565b61023e610a1b565b61023e61035e36600461244e565b610acc565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101e8565b6101f9610b6d565b6101dc61039e36600461244e565b610b7c565b6101dc6103b136600461244e565b610c2f565b61023e6103c4366004612377565b610c3c565b6009546001600160a01b0316610370565b61023e6103e8366004612272565b610caf565b61021d6103fb36600461228c565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61023e610434366004612404565b610e39565b61023e610447366004612272565b610ff5565b60006001600160e01b031982167f0f21484300000000000000000000000000000000000000000000000000000000148061048a575061048a82611134565b90505b919050565b6060600580546104a190612836565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd90612836565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b5050505050905090565b6000610531338484611182565b5060015b92915050565b3361054e6001546001600160a01b031690565b6001600160a01b0316148061056957506105696007336112db565b6105c65760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084015b60405180910390fd5b80600c84846040516105d9929190612647565b908152604051908190036020018120805460e09390931c63ffffffff19909316929092179091557fac03ca21e1a01cd6a9b17e613cd0483faf6b274fdae6c7f6e20ab1ffab443b9e90610633903390869086908690612657565b60405180910390a1505050565b600061064d848484611300565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156106e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016105bd565b6106fb85336106f686856127ef565b611182565b506001949350505050565b6000816001600160a01b03166107246001546001600160a01b031690565b6001600160a01b0316148061048a575061048a6007836112db565b6001546001600160a01b031633146107995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6107a46007826112db565b156107ec5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a36107ea600782611521565b505b50565b60606107fb6007611536565b67ffffffffffffffff81111561082157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561084a578160200160208202803683370190505b50905060005b61085a6007611536565b8110156108b65761086c600782611540565b82828151811061088c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806108ae81612871565b915050610850565b5090565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105319185906106f6908690612798565b6107ec338261154c565b6001546001600160a01b031633146109555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6109606007826112db565b6107ec5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a36107ea6007826116d2565b600260005414156109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105bd565b6002600081905550610a0f858585858560006116e7565b50506001600055505050565b6001546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36001805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000610ad883336103fb565b905081811015610b4f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105bd565b610b5e83336106f685856127ef565b610b68838361154c565b505050565b6060600680546104a190612836565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610c165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105bd565b610c2533856106f686856127ef565b5060019392505050565b6000610531338484611300565b60026000541415610c8f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105bd565b6002600055610ca28686868686866116e7565b5050600160005550505050565b33610cc26001546001600160a01b031690565b6001600160a01b03161480610cdd5750610cdd6007336112db565b610d355760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016105bd565b610d5f817f63d15a6000000000000000000000000000000000000000000000000000000000611d78565b610dd15760405162461bcd60e51b815260206004820152602e60248201527f4e46543245524332303a204d75737420696d706c656d656e7420494e4654324560448201527f5243323052617465456e67696e6500000000000000000000000000000000000060648201526084016105bd565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805133815260208101929092527f5d670467ec72133bc6e7e671b46a473aec85b91264a3c8ab10131c62a3fdb3ee910160405180910390a150565b33610e4c6001546001600160a01b031690565b6001600160a01b03161480610e675750610e676007336112db565b610ebf5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016105bd565b612710816fffffffffffffffffffffffffffffffff1610610f485760405162461bcd60e51b815260206004820152603560248201527f4e46543245524332303a206261736973506f696e7473206d757374206265206c60448201527f657373207468616e20313030303020283130302529000000000000000000000060648201526084016105bd565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155600b80547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff84169081179091556040805133815260208101939093528201527fbb7426550d303f915457b68d8bf519232f246fa31d5279202ee484dc58def9299060600160405180910390a15050565b6001546001600160a01b0316331461104f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6001600160a01b0381166110cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160e01b031982167f553e757e00000000000000000000000000000000000000000000000000000000148061048a57506301ffc9a760e01b6001600160e01b031983161461048a565b6001600160a01b0383166111fd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0382166112795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6001600160a01b03831661137c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0382166113f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038316600090815260026020526040902054818110156114875760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105bd565b61149182826127ef565b6001600160a01b0380861660009081526002602052604080822093909355908516815290812080548492906114c7908490612798565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161151391815260200190565b60405180910390a350505050565b60006112f9836001600160a01b038416611d94565b600061048a825490565b60006112f98383611eab565b6001600160a01b0382166115c85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038216600090815260026020526040902054818110156116575760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b61166182826127ef565b6001600160a01b0384166000908152600260205260408120919091556004805484929061168f9084906127ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016112ce565b60006112f9836001600160a01b038416611f5a565b8361175a5760405162461bcd60e51b815260206004820152602d60248201527f4e46543245524332303a204d7573742070726f76696465206174206c6561737460448201527f206f6e6520617267756d656e740000000000000000000000000000000000000060648201526084016105bd565b6009546001600160a01b03166117d85760405162461bcd60e51b815260206004820152602560248201527f4e46543245524332303a205261746520456e67696e65206e6f7420636f6e666960448201527f677572656400000000000000000000000000000000000000000000000000000060648201526084016105bd565b604051600090600c906117ee9086908690612647565b908152604051908190036020019020546001600160e01b031960e09190911b1614156118825760405162461bcd60e51b815260206004820152603160248201527f4e46543245524332303a205472616e736665722066756e6374696f6e206e6f7460448201527f20646566696e656420666f72207370656300000000000000000000000000000060648201526084016105bd565b6001600160a01b0386163b6118ff5760405162461bcd60e51b815260206004820152602960248201527f4e46543245524332303a20546f6b656e2061646472657373206d75737420626560448201527f20636f6e7472616374000000000000000000000000000000000000000000000060648201526084016105bd565b6009546000906001600160a01b03166363d15a6061191c60045490565b89898989896040518763ffffffff1660e01b81526004016119429695949392919061274f565b60206040518083038186803b15801561195a57600080fd5b505afa15801561196e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611992919061251b565b90506001851115611ab7576000876001600160a01b0316600c86866040516119bb929190612647565b908152604051602091819003820181205460e01b91339161dead916119e4918d918d91016125aa565b60408051601f1981840301815290829052611a04949392916020016125ed565b60408051601f1981840301815290829052611a1e9161262b565b6000604051808303816000865af19150503d8060008114611a5b576040519150601f19603f3d011682016040523d82523d6000602084013e611a60565b606091505b5050905080611ab15760405162461bcd60e51b815260206004820152601760248201527f4e46543245524332303a204275726e206661696c75726500000000000000000060448201526064016105bd565b50611c1f565b6000876001600160a01b0316600c8686604051611ad5929190612647565b9081526040519081900360200190205460e01b3361dead8a8a600081611b0b57634e487b7160e01b600052603260045260246000fd5b6040516001600160a01b0395861660248201529490931660448501525060209091020135606482015260840160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051611b8a919061262b565b6000604051808303816000865af19150503d8060008114611bc7576040519150601f19603f3d011682016040523d82523d6000602084013e611bcc565b606091505b5050905080611c1d5760405162461bcd60e51b815260206004820152601760248201527f4e46543245524332303a204275726e206661696c75726500000000000000000060448201526064016105bd565b505b6001600160a01b038216611c8f57611c373382611fa9565b866001600160a01b0316336001600160a01b03167f439c74b7b04753dbf9f7344797e72012cc78fca6cd987a67bf19cad1c138aa858888888887604051611c829594939291906126e2565b60405180910390a3611ced565b611c998282611fa9565b866001600160a01b0316826001600160a01b03167f439c74b7b04753dbf9f7344797e72012cc78fca6cd987a67bf19cad1c138aa858888888887604051611ce49594939291906126e2565b60405180910390a35b600b546fffffffffffffffffffffffffffffffff1615801590611d1a5750600a546001600160a01b031615155b15611d6f57600b5460009061271090611d45906fffffffffffffffffffffffffffffffff16846127d0565b611d4f91906127b0565b90508015611d6d57600a54611d6d906001600160a01b031682611fa9565b505b50505050505050565b6000611d8383612088565b80156112f957506112f983836120bb565b60008181526001830160205260408120548015611ea1576000611db86001836127ef565b8554909150600090611dcc906001906127ef565b90506000866000018281548110611df357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611e2457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080611e6557634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610535565b6000915050610535565b81546000908210611f245760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b826000018281548110611f4757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054611fa157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610535565b506000610535565b6001600160a01b038216611fff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105bd565b80600460008282546120119190612798565b90915550506001600160a01b0382166000908152600260205260408120805483929061203e908490612798565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600061209b826301ffc9a760e01b6120bb565b801561048a57506120b4826001600160e01b03196120bb565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b179052905160009190829081906001600160a01b038716906175309061213790869061262b565b6000604051808303818686fa925050503d8060008114612173576040519150601f19603f3d011682016040523d82523d6000602084013e612178565b606091505b50915091506020815110156121935760009350505050610535565b8180156121af5750808060200190518101906121af9190612477565b9695505050505050565b80356001600160a01b038116811461048d57600080fd5b60008083601f8401126121e1578182fd5b50813567ffffffffffffffff8111156121f8578182fd5b6020830191508360208260051b850101111561221357600080fd5b9250929050565b80356001600160e01b03198116811461048d57600080fd5b60008083601f840112612243578182fd5b50813567ffffffffffffffff81111561225a578182fd5b60208301915083602082850101111561221357600080fd5b600060208284031215612283578081fd5b6112f9826121b9565b6000806040838503121561229e578081fd5b6122a7836121b9565b91506122b5602084016121b9565b90509250929050565b6000806000606084860312156122d2578081fd5b6122db846121b9565b92506122e9602085016121b9565b9150604084013590509250925092565b600080600080600060608688031215612310578081fd5b612319866121b9565b9450602086013567ffffffffffffffff80821115612335578283fd5b61234189838a016121d0565b90965094506040880135915080821115612359578283fd5b5061236688828901612232565b969995985093965092949392505050565b6000806000806000806080878903121561238f578081fd5b612398876121b9565b9550602087013567ffffffffffffffff808211156123b4578283fd5b6123c08a838b016121d0565b909750955060408901359150808211156123d8578283fd5b506123e589828a01612232565b90945092506123f89050606088016121b9565b90509295509295509295565b60008060408385031215612416578182fd5b61241f836121b9565b915060208301356fffffffffffffffffffffffffffffffff81168114612443578182fd5b809150509250929050565b60008060408385031215612460578182fd5b612469836121b9565b946020939093013593505050565b600060208284031215612488578081fd5b815180151581146112f9578182fd5b6000602082840312156124a8578081fd5b6112f98261221a565b6000806000604084860312156124c5578283fd5b833567ffffffffffffffff8111156124db578384fd5b6124e786828701612232565b90945092506124fa90506020850161221a565b90509250925092565b600060208284031215612514578081fd5b5035919050565b60006020828403121561252c578081fd5b5051919050565b60008284527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612564578081fd5b8260051b80836020870137939093016020019283525090919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156125d8578081fd5b8260051b808584379190910190815292915050565b60006001600160e01b031986168252846004830152836024830152825161261b816044850160208701612806565b9190910160440195945050505050565b6000825161263d818460208701612806565b9190910192915050565b6000828483379101908152919050565b60006001600160a01b03861682526060602083015261267a606083018587612580565b90506001600160e01b03198316604083015295945050505050565b6020808252825182820181905260009190848201906040850190845b818110156126d65783516001600160a01b0316835292840192918401916001016126b1565b50909695505050505050565b6000606082526126f6606083018789612533565b8281036020840152612709818688612580565b9150508260408301529695505050505050565b600060208252825180602084015261273b816040850160208701612806565b601f01601f19169190910160400192915050565b60008782526001600160a01b038716602083015260806040830152612778608083018688612533565b828103606084015261278b818587612580565b9998505050505050505050565b600082198211156127ab576127ab61288c565b500190565b6000826127cb57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156127ea576127ea61288c565b500290565b6000828210156128015761280161288c565b500390565b60005b83811015612821578181015183820152602001612809565b83811115612830576000848401525b50505050565b600181811c9082168061284a57607f821691505b6020821081141561286b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128855761288561288c565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220522e471b1b5d5c21d5355090190f7d6495763e00f113747351161d1fee306e6764736f6c63430008030033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80636de09116116100f9578063a9059cbb11610097578063d4e8521b11610071578063d4e8521b146103da578063dd62ed3e146103ed578063ede6662b14610426578063f2fde38b14610439576101c4565b8063a9059cbb146103a3578063b9b9e408146103b6578063c132749c146103c9576101c4565b806379cc6790116100d357806379cc6790146103505780638da5cb5b1461036357806395d89b4114610388578063a457c2d714610390576101c4565b80636de091161461030c57806370a082311461031f578063715018a614610348576101c4565b80632d345670116101665780633950935111610140578063395093511461029d5780633b19e84a146102b057806342966c68146102e65780636d73e669146102f9576101c4565b80632d34567014610266578063313ce5671461027957806331ae450b14610288576101c4565b806318160ddd116101a257806318160ddd14610219578063185d95bb1461022b57806323b872dd1461024057806324d7806c14610253576101c4565b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004612497565b61044c565b60405190151581526020015b60405180910390f35b6101f9610492565b6040516101e8919061271c565b6101dc61021436600461244e565b610524565b6004545b6040519081526020016101e8565b61023e6102393660046124b1565b61053b565b005b6101dc61024e3660046122be565b610640565b6101dc610261366004612272565b610706565b61023e610274366004612272565b61073f565b604051601281526020016101e8565b6102906107ef565b6040516101e89190612695565b6101dc6102ab36600461244e565b6108ba565b600a54600b54604080516001600160a01b0390931683526fffffffffffffffffffffffffffffffff9091166020830152016101e8565b61023e6102f4366004612503565b6108f1565b61023e610307366004612272565b6108fb565b61023e61031a3660046122f9565b6109a5565b61021d61032d366004612272565b6001600160a01b031660009081526002602052604090205490565b61023e610a1b565b61023e61035e36600461244e565b610acc565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101e8565b6101f9610b6d565b6101dc61039e36600461244e565b610b7c565b6101dc6103b136600461244e565b610c2f565b61023e6103c4366004612377565b610c3c565b6009546001600160a01b0316610370565b61023e6103e8366004612272565b610caf565b61021d6103fb36600461228c565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61023e610434366004612404565b610e39565b61023e610447366004612272565b610ff5565b60006001600160e01b031982167f0f21484300000000000000000000000000000000000000000000000000000000148061048a575061048a82611134565b90505b919050565b6060600580546104a190612836565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd90612836565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b5050505050905090565b6000610531338484611182565b5060015b92915050565b3361054e6001546001600160a01b031690565b6001600160a01b0316148061056957506105696007336112db565b6105c65760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084015b60405180910390fd5b80600c84846040516105d9929190612647565b908152604051908190036020018120805460e09390931c63ffffffff19909316929092179091557fac03ca21e1a01cd6a9b17e613cd0483faf6b274fdae6c7f6e20ab1ffab443b9e90610633903390869086908690612657565b60405180910390a1505050565b600061064d848484611300565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156106e75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016105bd565b6106fb85336106f686856127ef565b611182565b506001949350505050565b6000816001600160a01b03166107246001546001600160a01b031690565b6001600160a01b0316148061048a575061048a6007836112db565b6001546001600160a01b031633146107995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6107a46007826112db565b156107ec5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a36107ea600782611521565b505b50565b60606107fb6007611536565b67ffffffffffffffff81111561082157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561084a578160200160208202803683370190505b50905060005b61085a6007611536565b8110156108b65761086c600782611540565b82828151811061088c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152806108ae81612871565b915050610850565b5090565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105319185906106f6908690612798565b6107ec338261154c565b6001546001600160a01b031633146109555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6109606007826112db565b6107ec5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a36107ea6007826116d2565b600260005414156109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105bd565b6002600081905550610a0f858585858560006116e7565b50506001600055505050565b6001546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36001805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000610ad883336103fb565b905081811015610b4f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016105bd565b610b5e83336106f685856127ef565b610b68838361154c565b505050565b6060600680546104a190612836565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610c165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105bd565b610c2533856106f686856127ef565b5060019392505050565b6000610531338484611300565b60026000541415610c8f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105bd565b6002600055610ca28686868686866116e7565b5050600160005550505050565b33610cc26001546001600160a01b031690565b6001600160a01b03161480610cdd5750610cdd6007336112db565b610d355760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016105bd565b610d5f817f63d15a6000000000000000000000000000000000000000000000000000000000611d78565b610dd15760405162461bcd60e51b815260206004820152602e60248201527f4e46543245524332303a204d75737420696d706c656d656e7420494e4654324560448201527f5243323052617465456e67696e6500000000000000000000000000000000000060648201526084016105bd565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805133815260208101929092527f5d670467ec72133bc6e7e671b46a473aec85b91264a3c8ab10131c62a3fdb3ee910160405180910390a150565b33610e4c6001546001600160a01b031690565b6001600160a01b03161480610e675750610e676007336112db565b610ebf5760405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616044820152633236b4b760e11b60648201526084016105bd565b612710816fffffffffffffffffffffffffffffffff1610610f485760405162461bcd60e51b815260206004820152603560248201527f4e46543245524332303a206261736973506f696e7473206d757374206265206c60448201527f657373207468616e20313030303020283130302529000000000000000000000060648201526084016105bd565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155600b80547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff84169081179091556040805133815260208101939093528201527fbb7426550d303f915457b68d8bf519232f246fa31d5279202ee484dc58def9299060600160405180910390a15050565b6001546001600160a01b0316331461104f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105bd565b6001600160a01b0381166110cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160e01b031982167f553e757e00000000000000000000000000000000000000000000000000000000148061048a57506301ffc9a760e01b6001600160e01b031983161461048a565b6001600160a01b0383166111fd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0382166112795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6001600160a01b03831661137c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0382166113f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038316600090815260026020526040902054818110156114875760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105bd565b61149182826127ef565b6001600160a01b0380861660009081526002602052604080822093909355908516815290812080548492906114c7908490612798565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161151391815260200190565b60405180910390a350505050565b60006112f9836001600160a01b038416611d94565b600061048a825490565b60006112f98383611eab565b6001600160a01b0382166115c85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038216600090815260026020526040902054818110156116575760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b61166182826127ef565b6001600160a01b0384166000908152600260205260408120919091556004805484929061168f9084906127ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016112ce565b60006112f9836001600160a01b038416611f5a565b8361175a5760405162461bcd60e51b815260206004820152602d60248201527f4e46543245524332303a204d7573742070726f76696465206174206c6561737460448201527f206f6e6520617267756d656e740000000000000000000000000000000000000060648201526084016105bd565b6009546001600160a01b03166117d85760405162461bcd60e51b815260206004820152602560248201527f4e46543245524332303a205261746520456e67696e65206e6f7420636f6e666960448201527f677572656400000000000000000000000000000000000000000000000000000060648201526084016105bd565b604051600090600c906117ee9086908690612647565b908152604051908190036020019020546001600160e01b031960e09190911b1614156118825760405162461bcd60e51b815260206004820152603160248201527f4e46543245524332303a205472616e736665722066756e6374696f6e206e6f7460448201527f20646566696e656420666f72207370656300000000000000000000000000000060648201526084016105bd565b6001600160a01b0386163b6118ff5760405162461bcd60e51b815260206004820152602960248201527f4e46543245524332303a20546f6b656e2061646472657373206d75737420626560448201527f20636f6e7472616374000000000000000000000000000000000000000000000060648201526084016105bd565b6009546000906001600160a01b03166363d15a6061191c60045490565b89898989896040518763ffffffff1660e01b81526004016119429695949392919061274f565b60206040518083038186803b15801561195a57600080fd5b505afa15801561196e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611992919061251b565b90506001851115611ab7576000876001600160a01b0316600c86866040516119bb929190612647565b908152604051602091819003820181205460e01b91339161dead916119e4918d918d91016125aa565b60408051601f1981840301815290829052611a04949392916020016125ed565b60408051601f1981840301815290829052611a1e9161262b565b6000604051808303816000865af19150503d8060008114611a5b576040519150601f19603f3d011682016040523d82523d6000602084013e611a60565b606091505b5050905080611ab15760405162461bcd60e51b815260206004820152601760248201527f4e46543245524332303a204275726e206661696c75726500000000000000000060448201526064016105bd565b50611c1f565b6000876001600160a01b0316600c8686604051611ad5929190612647565b9081526040519081900360200190205460e01b3361dead8a8a600081611b0b57634e487b7160e01b600052603260045260246000fd5b6040516001600160a01b0395861660248201529490931660448501525060209091020135606482015260840160408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051611b8a919061262b565b6000604051808303816000865af19150503d8060008114611bc7576040519150601f19603f3d011682016040523d82523d6000602084013e611bcc565b606091505b5050905080611c1d5760405162461bcd60e51b815260206004820152601760248201527f4e46543245524332303a204275726e206661696c75726500000000000000000060448201526064016105bd565b505b6001600160a01b038216611c8f57611c373382611fa9565b866001600160a01b0316336001600160a01b03167f439c74b7b04753dbf9f7344797e72012cc78fca6cd987a67bf19cad1c138aa858888888887604051611c829594939291906126e2565b60405180910390a3611ced565b611c998282611fa9565b866001600160a01b0316826001600160a01b03167f439c74b7b04753dbf9f7344797e72012cc78fca6cd987a67bf19cad1c138aa858888888887604051611ce49594939291906126e2565b60405180910390a35b600b546fffffffffffffffffffffffffffffffff1615801590611d1a5750600a546001600160a01b031615155b15611d6f57600b5460009061271090611d45906fffffffffffffffffffffffffffffffff16846127d0565b611d4f91906127b0565b90508015611d6d57600a54611d6d906001600160a01b031682611fa9565b505b50505050505050565b6000611d8383612088565b80156112f957506112f983836120bb565b60008181526001830160205260408120548015611ea1576000611db86001836127ef565b8554909150600090611dcc906001906127ef565b90506000866000018281548110611df357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110611e2457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080611e6557634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610535565b6000915050610535565b81546000908210611f245760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b826000018281548110611f4757634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054611fa157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610535565b506000610535565b6001600160a01b038216611fff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105bd565b80600460008282546120119190612798565b90915550506001600160a01b0382166000908152600260205260408120805483929061203e908490612798565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600061209b826301ffc9a760e01b6120bb565b801561048a57506120b4826001600160e01b03196120bb565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b179052905160009190829081906001600160a01b038716906175309061213790869061262b565b6000604051808303818686fa925050503d8060008114612173576040519150601f19603f3d011682016040523d82523d6000602084013e612178565b606091505b50915091506020815110156121935760009350505050610535565b8180156121af5750808060200190518101906121af9190612477565b9695505050505050565b80356001600160a01b038116811461048d57600080fd5b60008083601f8401126121e1578182fd5b50813567ffffffffffffffff8111156121f8578182fd5b6020830191508360208260051b850101111561221357600080fd5b9250929050565b80356001600160e01b03198116811461048d57600080fd5b60008083601f840112612243578182fd5b50813567ffffffffffffffff81111561225a578182fd5b60208301915083602082850101111561221357600080fd5b600060208284031215612283578081fd5b6112f9826121b9565b6000806040838503121561229e578081fd5b6122a7836121b9565b91506122b5602084016121b9565b90509250929050565b6000806000606084860312156122d2578081fd5b6122db846121b9565b92506122e9602085016121b9565b9150604084013590509250925092565b600080600080600060608688031215612310578081fd5b612319866121b9565b9450602086013567ffffffffffffffff80821115612335578283fd5b61234189838a016121d0565b90965094506040880135915080821115612359578283fd5b5061236688828901612232565b969995985093965092949392505050565b6000806000806000806080878903121561238f578081fd5b612398876121b9565b9550602087013567ffffffffffffffff808211156123b4578283fd5b6123c08a838b016121d0565b909750955060408901359150808211156123d8578283fd5b506123e589828a01612232565b90945092506123f89050606088016121b9565b90509295509295509295565b60008060408385031215612416578182fd5b61241f836121b9565b915060208301356fffffffffffffffffffffffffffffffff81168114612443578182fd5b809150509250929050565b60008060408385031215612460578182fd5b612469836121b9565b946020939093013593505050565b600060208284031215612488578081fd5b815180151581146112f9578182fd5b6000602082840312156124a8578081fd5b6112f98261221a565b6000806000604084860312156124c5578283fd5b833567ffffffffffffffff8111156124db578384fd5b6124e786828701612232565b90945092506124fa90506020850161221a565b90509250925092565b600060208284031215612514578081fd5b5035919050565b60006020828403121561252c578081fd5b5051919050565b60008284527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612564578081fd5b8260051b80836020870137939093016020019283525090919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156125d8578081fd5b8260051b808584379190910190815292915050565b60006001600160e01b031986168252846004830152836024830152825161261b816044850160208701612806565b9190910160440195945050505050565b6000825161263d818460208701612806565b9190910192915050565b6000828483379101908152919050565b60006001600160a01b03861682526060602083015261267a606083018587612580565b90506001600160e01b03198316604083015295945050505050565b6020808252825182820181905260009190848201906040850190845b818110156126d65783516001600160a01b0316835292840192918401916001016126b1565b50909695505050505050565b6000606082526126f6606083018789612533565b8281036020840152612709818688612580565b9150508260408301529695505050505050565b600060208252825180602084015261273b816040850160208701612806565b601f01601f19169190910160400192915050565b60008782526001600160a01b038716602083015260806040830152612778608083018688612533565b828103606084015261278b818587612580565b9998505050505050505050565b600082198211156127ab576127ab61288c565b500190565b6000826127cb57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156127ea576127ea61288c565b500290565b6000828210156128015761280161288c565b500390565b60005b83811015612821578181015183820152602001612809565b83811115612830576000848401525b50505050565b600181811c9082168061284a57607f821691505b6020821081141561286b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128855761288561288c565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220522e471b1b5d5c21d5355090190f7d6495763e00f113747351161d1fee306e6764736f6c63430008030033

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.