ETH Price: $2,153.37 (+0.93%)

Contract

0x2b0F2E58a4f00a617312C2B745A23dc677Fc6a9c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Process247044852026-03-21 7:47:597 hrs ago1774079279IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000008350.04730091
Process247042832026-03-21 7:07:358 hrs ago1774076855IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000010470.05083798
Process247041152026-03-21 6:33:478 hrs ago1774074827IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000008840.05161813
Process247041132026-03-21 6:33:238 hrs ago1774074803IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000009230.05394339
Process247041112026-03-21 6:32:598 hrs ago1774074779IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000010660.05660764
Process247041012026-03-21 6:30:598 hrs ago1774074659IN
0x2b0F2E58...677Fc6a9c
0 ETH0.00000990.04707904
Process246969262026-03-20 6:30:1132 hrs ago1773988211IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000014020.07239782
Process246789912026-03-17 18:26:473 days ago1773772007IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000012220.06309841
Process245257672026-02-24 9:09:1125 days ago1771924151IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000011290.06579921
Process245257502026-02-24 9:05:4725 days ago1771923947IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000011560.06738267
Process244942472026-02-19 23:42:2329 days ago1771544543IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000008730.05089118
Process244845642026-02-18 15:17:4730 days ago1771427867IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000035620.18910826
Process244713932026-02-16 19:12:1132 days ago1771269131IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000010150.04944828
Process244531072026-02-14 6:02:3535 days ago1771048955IN
0x2b0F2E58...677Fc6a9c
0 ETH0.000010060.04516465

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60e06040244340352026-02-11 14:09:5938 days ago1770818999  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x530Ac6E9...131536B6d
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SecondaryMarket

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
prague EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import "../ERC20/IERC20.sol";
import "../utils/Ownable.sol";
import {IReactor} from "./IReactor.sol";
import {Intent, IntentHash} from "./IntentHash.sol";

/**
 * @title SecondaryMarket
 * 
 * @author Luzius Meisser, luzius@aktionariat.com
 * @author Murat Ögat, murat@aktionariat.com
 * 
 * @notice This contract handles the secondary market transactions and is controlled by the issuer.
 * @notice It works together with a TradeReactor contract to verify and process trade intents.
 * @notice If a filler is specified when creating and signing an intent, only this contract can forward it to the reactor for processing.
 * @notice If a router is specified in this contract, only that address can call the process function to execute trades.
 * @notice This contract also collects and distributes trading fees, if any. 
*/

contract SecondaryMarket is Ownable {
    using IntentHash for Intent;

    // Version
    // 1: initial version
    uint16 public constant VERSION = 1;

    uint16 public constant ALL = 10000;
    address public constant LICENSE_FEE_RECIPIENT = 0x29Fe8914e76da5cE2d90De98a64d0055f199d06D;
    uint256 public constant CANCELLED = type(uint256).max;

    address public immutable CURRENCY;
    address public immutable TOKEN;
    address public immutable REACTOR; 

    event TradingFeeCollected(address currency, uint256 actualFee, address spreadRecipient, uint256 returnedSpread);
    event TradingFeeWithdrawn(address currency, address target, uint256 amount);
    event LicenseFeePaid(address currency, address target, uint256 amount);
    event MarketStatusChanged(bool isOpen, uint256 timestamp);
    event Trade(address indexed seller, address indexed buyer, bytes32 sellIntentHash, bytes32 buyIntentHash, address token, uint256 tokenAmount, address currency, uint256 currencyAmount, uint256 fees);

    error LargerSpreadNeeded(uint256 feesCollected, uint256 requiredMinimum);
    error WrongFiller();
    error WrongTokens();
    error WrongRouter(address expected, address actual);
    error InvalidConfiguration();
    error MarketClosed();
    error AlreadyFilled();
    error UserCancelled();


    address public router; // null for any, 20B
    uint16 public tradingFeeBips; // 2B
    uint16 public licenseShare; // Share of the trading fee that goes to the router in bips
    bool public isOpen;

    constructor(address owner, address currency, address token, address _reactor, address _router) Ownable(owner) {
        CURRENCY = currency;
        TOKEN = token;
        REACTOR = _reactor;
        tradingFeeBips = 190; // default trading fee is 1.9%
        licenseShare = 5000; // default license share is 50% of trading fee
        router = _router;
        isOpen = true;
    }

    //// ADMINISTRATION ////

    /**
     * Opens the market.
     */
    function open() onlyOwner external {
        isOpen = true;
        emit MarketStatusChanged(true, block.timestamp);
    }

    /**
     * Closes the market.
     */
    function close() onlyOwner external {
        isOpen = false;
        emit MarketStatusChanged(false, block.timestamp);
    }

    /**
     * Configures the permissible router or the null address for any.
     * 
     * Having a trusted router helps with the prevention of front-running attacks as no
     * one else can front the router with a different matching of the submitted orders.
     */
    function setRouter(address router_) onlyOwner external {
        router = router_;
    }

    /**
     * Configures the software license fee as agreed with the copyright owners.
     */
    function setLicenseFee(uint16 licenseShare_) onlyOwner external {
        if (uint256(licenseShare_) > ALL) revert InvalidConfiguration();
        licenseShare = licenseShare_;
    }

    function setTradingFee(uint16 tradingFeeBips_) onlyOwner external {
        if (tradingFeeBips_ > 500) revert InvalidConfiguration(); // commit to never set it above 5%
        tradingFeeBips = tradingFeeBips_;
    }

    //// TRADING ////

    /**
     * Create an order intent that can be signed by the owner.
     */
    function createBuyOrder(address owner, uint256 amountOut, uint256 amountIn, uint24 validitySeconds) public view returns (Intent memory) {
        return Intent(owner, address(this), CURRENCY, amountOut, TOKEN, amountIn, block.timestamp, block.timestamp + validitySeconds, new bytes(0));
    }

    /**
     * Create an order intent that can be signed by the owner.
     * The tokenIn amount is reduced by the trading fee, which is always charged to the seller.
     */
    function createSellOrder(address owner, uint256 amountOut, uint256 amountIn, uint24 validitySeconds) public view returns (Intent memory) {
        return Intent(owner, address(this), TOKEN, amountOut, CURRENCY, amountIn, block.timestamp, block.timestamp + validitySeconds, new bytes(0));
    }

    function getIntentHash(Intent calldata intent) external pure returns (bytes32) {
        return intent.hash();
    }

    /**
     * Stores an order in the Ethereum blockchain as a publicly readable event, so any allowed router
     * can pick it up and execute it against another valid order.
     * 
     * In case the owner configured a specific router to be used, it is usually better to send the
     * order to the configured router directly through a suitable API. Note that all partially filled
     * orders and all filled orders are publicly recorded on-chain anyway, so taking the direct
     * transmission shortcut does not effectively preserve privacy.
     * 
     * To invalidate an order, the owner must call the invalidateNonce function on the SignatureTransfer
     * 
     * contract found in this.ROUTER().TRANSFER().
     */
    function placeOrder(Intent calldata intent, bytes calldata signature) external {
        verifySignature(intent, signature);
        IReactor(REACTOR).signalIntent(intent, signature);
    }

    /**
     * Verify the signature of an order.
     */
    function verifySignature(Intent calldata intent, bytes calldata sig) public view {
        if (intent.filler != address(this)) revert WrongFiller();
        IReactor(REACTOR).verify(intent, sig);
    }

    /**
     * Check if an order can be executed and if yes, returns the maximum amount of the tokenOut.
     */
    function validateOrder(Intent calldata intent, bytes calldata sig) external view returns (uint256 unfilled, uint256 balance, uint256 allowance) {
        verifySignature(intent, sig);
        require((intent.tokenOut == TOKEN && intent.tokenIn == CURRENCY) || (intent.tokenOut == CURRENCY && intent.tokenIn == TOKEN), WrongTokens());

        balance = IERC20(intent.tokenOut).balanceOf(intent.owner);
        allowance = IERC20(intent.tokenOut).allowance(intent.owner, REACTOR);

        uint256 amountTokens = (intent.tokenOut == TOKEN) ? intent.amountOut : intent.amountIn;
        uint256 alreadyFilled = IReactor(REACTOR).getFilledAmount(intent);
        if (alreadyFilled == CANCELLED) revert UserCancelled();
        if (amountTokens <= alreadyFilled) revert AlreadyFilled();
        uint256 remaining = amountTokens - alreadyFilled;

        return (remaining, balance, allowance);
    }

    /**
     * Returns multiple order book entries for an array of intents, avoiding multiple calls.
     * The returned numbers are to be used directly in the order book.
     * Therefore, this function doesn't revert, it returns 0 for unexecutable entries instead.
     */
    function executableAmounts(Intent[] calldata intents) public view returns (uint256[] memory) {
        uint256[] memory available = new uint256[](intents.length);
        for (uint256 i = 0; i < intents.length; i++) {
            available[i] = executableAmount(intents[i]);
        }
        return available;
    }

    /**
     * Check if an order can be executed and if yes, returns the maximum amount in TOKENS that can be executed immediately.
     * Considers the unfilled amount, and also the actual balance and allowance of the intent owner.
     * This is useful for user interfaces to show how much can be traded right now.
     * This function should never return zero. It should either revert or return a non-zero value.
     */
    function executableAmount(Intent calldata intent) public view returns (uint256) {
        if (intent.tokenOut == TOKEN && intent.tokenIn == CURRENCY) {
            return executableSellAmount(intent);
        } else if (intent.tokenOut == CURRENCY && intent.tokenIn == TOKEN) {
            return executableBuyAmount(intent);
        } else {
            revert WrongTokens();
        }
    }

    /**
     * Internal counterpart of getAvailableForExecution for selling.
     * This is straightforward as we can directly check the token balance and allowance.
     */
    function executableSellAmount(Intent calldata intent) internal view returns (uint256) {
        uint256 alreadyFilled = IReactor(REACTOR).getFilledAmount(intent);
        uint256 balance = IERC20(intent.tokenOut).balanceOf(intent.owner);
        uint256 allowance = IERC20(intent.tokenOut).allowance(intent.owner, REACTOR);

        if (intent.amountOut <= alreadyFilled) return 0;

        uint256 unfilled = intent.amountOut - alreadyFilled;
        uint256 availableInWallet = (balance < allowance) ? balance : allowance;
        uint256 finalAvailable = (unfilled < availableInWallet) ? unfilled : availableInWallet;

        return finalAvailable;
    }

    /**
     * Internal counterpart of getAvailableForExecution for buying.
     * This is slightly more tricky, as we need to check balance/allowance in CURRENCY 
     * but return available amount in TOKENS, so getBid() is used to get the conversion rate.
     */
    function executableBuyAmount(Intent calldata intent) internal view returns (uint256) {
        uint256 alreadyFilled = IReactor(REACTOR).getFilledAmount(intent);
        uint256 bid = IReactor(REACTOR).getBid(intent, 1);
        uint256 balanceInShares = IERC20(intent.tokenOut).balanceOf(intent.owner) / bid;
        uint256 allowanceInShares = IERC20(intent.tokenOut).allowance(intent.owner, REACTOR) / bid;

        if (intent.amountIn <= alreadyFilled) return 0;

        uint256 unfilled = intent.amountIn - alreadyFilled;
        uint256 availableInShares = (balanceInShares < allowanceInShares) ? balanceInShares : allowanceInShares;
        uint256 finalAvailable = (unfilled < availableInShares) ? unfilled : availableInShares;

        return finalAvailable;
    }

    /**
     * Convenience method to check with 2 intents to get what can be executed right now.
     * Takes into account unfilled amounts, balances and allowances of both sides.
     * Also reverts if price is not matching, with OfferTooLow().
     */
    function executableTrade(Intent calldata sellerIntent, Intent calldata buyerIntent) external view returns (uint256) {
        IReactor(REACTOR).verifyPriceMatch(buyerIntent, sellerIntent);
        uint256 executableSell = executableSellAmount(sellerIntent);
        uint256 executableBuy = executableBuyAmount(buyerIntent);
        return (executableSell < executableBuy) ? executableSell : executableBuy;
    }

    function process(Intent calldata seller, bytes calldata sellerSig, Intent calldata buyer, bytes calldata buyerSig, uint256 tradedAmount) external {
        if (!isOpen) revert MarketClosed();
        if (router != address(0) && msg.sender != router) revert WrongRouter(msg.sender, router);

        uint256 totalExecutionPrice = IReactor(REACTOR).getTotalExecutionPrice(buyer, seller, tradedAmount);
        uint256 totalFee = totalExecutionPrice * tradingFeeBips / 10000;

        IReactor(REACTOR).process(seller, sellerSig, buyer, buyerSig, tradedAmount, totalFee);
        emit Trade(seller.owner, buyer.owner, seller.hash(), buyer.hash(), seller.tokenOut, tradedAmount, seller.tokenIn, totalExecutionPrice, totalFee);
    }

    function cancelIntent(Intent calldata intent) external {
        if (msg.sender != router && msg.sender != owner) revert WrongRouter(msg.sender, router);
        IReactor(REACTOR).cancelIntent(intent);
    }

    /**
     * Withdraw the accumulated fees applying a 50/50 split between the two addresses.
     * 
     * The assumption is that this can be used to collect accumulated trading fees and to pay license fees
     * to Aktionariat in the same transaction for convenience.
     */
    function withdrawFees() external {
        withdrawFees(CURRENCY, IERC20(CURRENCY).balanceOf(address(this)));
    }

    function withdrawFees(address currency, uint256 amount) public onlyOwner {
        uint256 split = amount * licenseShare / 10000;
        IERC20(currency).transfer(owner, amount - split); // rounded up
        IERC20(currency).transfer(LICENSE_FEE_RECIPIENT, split); // rounded down
        emit LicenseFeePaid(currency, LICENSE_FEE_RECIPIENT, split);
    }

}

/**
* SPDX-License-Identifier: MIT
*
* Copyright (c) 2016-2019 zOS Global Limited
*
*/
pragma solidity >=0.8.0 <0.9.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see `ERC20Detailed`.
 */

interface IERC20 {

    // Optional functions
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    /**
     * @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.
     *
     * > 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);

}

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import {IERC20} from "../ERC20/IERC20.sol";

/**
 * @title Intent
 * @author Luzius Meisser, luzius@aktionariat.com
 * @author Murat Ögat, murat@aktionariat.com
 *
 * The struct to be signed for submitting orders to the TradeReactor contract and its hashing per EIP-712.
 */

struct Intent {
	address owner;
	address filler;
	address tokenOut; // The ERC20 token sent out
	uint256 amountOut; // The maximum amount
	address tokenIn; // The ERC20 token received
	uint256 amountIn; // The amount received in exchange for the maximum of the sent token
	uint256 creation; // timestamp at which the intent was created
	uint256 expiration; // timestamp at which the intent expires
	bytes data;
}

library IntentHash {
	bytes32 internal constant INTENT_TYPE_HASH = keccak256("Intent(address owner,address filler,address tokenOut,uint256 amountOut,address tokenIn,uint256 amountIn,uint256 creation,uint256 expiration,bytes data)");

	function hash(Intent calldata intent) internal pure returns (bytes32) {
		return
			keccak256(
				abi.encode(
					INTENT_TYPE_HASH,
					intent.owner,
					intent.filler,
					intent.tokenOut,
					intent.amountOut,
					intent.tokenIn,
					intent.amountIn,
					intent.creation,
					intent.expiration,
					keccak256(intent.data)
				)
			);
	}
}

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;

import {Intent} from "./IntentHash.sol";

interface IReactor {

    function verify(Intent calldata intent, bytes calldata sig) external view;
    function signalIntent(Intent calldata intent, bytes calldata signature) external;
    function getFilledAmount(Intent calldata intent) external view returns (uint256);
    function verifyPriceMatch(Intent calldata buyerIntent, Intent calldata sellerIntent) external pure;
    function getTotalExecutionPrice(Intent calldata buyerIntent, Intent calldata sellerIntent, uint256 tradedAmount) external pure returns (uint256);
    function getBid(Intent calldata intent, uint256 amount) external pure returns (uint256);
    function process(Intent calldata sellerIntent, bytes calldata sellerSig, Intent calldata buyerIntent, bytes calldata buyerSig, uint256 tradedAmount, uint256 totalFee) external;
    function cancelIntent(Intent calldata intent) external;

}

// SPDX-License-Identifier: MIT
//
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
//
// Modifications:
// - Replaced Context._msgSender() with msg.sender
// - Made leaner
// - Extracted interface

pragma solidity >=0.8.0 <0.9.0;

/**
 * @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.
 */
contract Ownable {

    address public owner;

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

    error Ownable_NotOwner(address sender);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor (address initialOwner) {
        owner = initialOwner;
        emit OwnershipTransferred(address(0), owner);
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) external onlyOwner {
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

    function _checkOwner() internal view {
        if (msg.sender != owner) {
            revert Ownable_NotOwner(msg.sender);
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"_reactor","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyFilled","type":"error"},{"inputs":[],"name":"InvalidConfiguration","type":"error"},{"inputs":[{"internalType":"uint256","name":"feesCollected","type":"uint256"},{"internalType":"uint256","name":"requiredMinimum","type":"uint256"}],"name":"LargerSpreadNeeded","type":"error"},{"inputs":[],"name":"MarketClosed","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"Ownable_NotOwner","type":"error"},{"inputs":[],"name":"UserCancelled","type":"error"},{"inputs":[],"name":"WrongFiller","type":"error"},{"inputs":[{"internalType":"address","name":"expected","type":"address"},{"internalType":"address","name":"actual","type":"address"}],"name":"WrongRouter","type":"error"},{"inputs":[],"name":"WrongTokens","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LicenseFeePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isOpen","type":"bool"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MarketStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"bytes32","name":"sellIntentHash","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"buyIntentHash","type":"bytes32"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"currencyAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fees","type":"uint256"}],"name":"Trade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"actualFee","type":"uint256"},{"indexed":false,"internalType":"address","name":"spreadRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"returnedSpread","type":"uint256"}],"name":"TradingFeeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TradingFeeWithdrawn","type":"event"},{"inputs":[],"name":"ALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CANCELLED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURRENCY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LICENSE_FEE_RECIPIENT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REACTOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"}],"name":"cancelIntent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint24","name":"validitySeconds","type":"uint24"}],"name":"createBuyOrder","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint24","name":"validitySeconds","type":"uint24"}],"name":"createSellOrder","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"}],"name":"executableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent[]","name":"intents","type":"tuple[]"}],"name":"executableAmounts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"sellerIntent","type":"tuple"},{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"buyerIntent","type":"tuple"}],"name":"executableTrade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"}],"name":"getIntentHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"licenseShare","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"placeOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"seller","type":"tuple"},{"internalType":"bytes","name":"sellerSig","type":"bytes"},{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"buyer","type":"tuple"},{"internalType":"bytes","name":"buyerSig","type":"bytes"},{"internalType":"uint256","name":"tradedAmount","type":"uint256"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"licenseShare_","type":"uint16"}],"name":"setLicenseFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router_","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tradingFeeBips_","type":"uint16"}],"name":"setTradingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradingFeeBips","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"validateOrder","outputs":[{"internalType":"uint256","name":"unfilled","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"filler","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"creation","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Intent","name":"intent","type":"tuple"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"verifySignature","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60e060405234801561000f575f5ffd5b506040516126a13803806126a183398101604081905261002e916100e0565b5f80546001600160a01b0319166001600160a01b03871690811782556040518792907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0393841660805291831660a052821660c0526001805460ff60c01b19929093166001600160c01b0319909316929092176309c4005f60a11b1716600160c01b17905550610141565b80516001600160a01b03811681146100db575f5ffd5b919050565b5f5f5f5f5f60a086880312156100f4575f5ffd5b6100fd866100c5565b945061010b602087016100c5565b9350610119604087016100c5565b9250610127606087016100c5565b9150610135608087016100c5565b90509295509295909350565b60805160a05160c0516124796102285f395f81816103fd0152818161078d0152818161084a01528181610a8801528181610bdb01528181610d8501528181610ec40152818161115b015281816112240152818161159601528181611707015281816117ca0152818161185801526119d801525f818161035001528181610526015281816105980152818161068701528181610e2301528181610f3e0152818161101f01526111d101525f8181610478015281816104f1015281816105e30152818161063c015281816109fa01528181610e5801528181610f890152610fd401526124795ff3fe608060405234801561000f575f5ffd5b50600436106101dc575f3560e01c80638277dad411610109578063c0d786551161009e578063f53612191161006e578063f536121914610473578063f887ea401461049a578063fcfff16f146104ad578063ffa1ad74146104b5575f5ffd5b8063c0d786551461041f578063ce8f046714610432578063f22c1f7214610445578063f2fde38b14610460575f5ffd5b8063a1d13d05116100d9578063a1d13d05146103af578063ad3b1b47146103dd578063ae71dcdf146103f0578063b9603570146103f8575f5ffd5b80638277dad41461033857806382bfefc81461034b5780638da5cb5b1461038a5780639bc5e3bc1461039c575f5ffd5b8063476343ee1161017f57806360b778f51161014f57806360b778f5146102dd57806360ddae98146102f0578063716af2221461031057806374694f9214610325575f5ffd5b8063476343ee1461029c57806350b45ad8146102a45780635d84fbff146102b757806360325914146102ca575f5ffd5b806342d4c340116101ba57806342d4c34014610252578063435f0d411461026757806343d726d61461027057806347535d7b14610278575f5ffd5b8063225b34ac146101e05780632893c86a146102095780632c33df5414610231575b5f5ffd5b6101f36101ee366004611c60565b6104bd565b6040516102009190611cda565b60405180910390f35b60015461021e90600160b01b900461ffff1681565b60405161ffff9091168152602001610200565b61024461023f366004611da3565b61058d565b604051908152602001610200565b610265610260366004611e18565b6106ee565b005b61021e61271081565b610265610991565b60015461028c90600160c01b900460ff1681565b6040519015158152602001610200565b6102656109e1565b6102446102b2366004611ee0565b610a6f565b6102656102c5366004611f43565b610b1b565b6102656102d8366004611da3565b610b6c565b6102656102eb366004611f43565b610c40565b6103036102fe366004611f6b565b610c91565b6040516102009190611fda565b60015461021e90600160a01b900461ffff1681565b61026561033336600461201c565b610d36565b6101f3610346366004611c60565b610def565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610200565b5f54610372906001600160a01b031681565b6102656103aa36600461201c565b610ea2565b6103c26103bd36600461201c565b610f26565b60408051938452602084019290925290820152606001610200565b6102656103eb366004612083565b611309565b6102445f1981565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b61026561042d3660046120ab565b6114ad565b610244610440366004611da3565b6114d7565b6103727329fe8914e76da5ce2d90de98a64d0055f199d06d81565b61026561046e3660046120ab565b6114e1565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b600154610372906001600160a01b031681565b610265611542565b61021e600181565b6104c5611be2565b604051806101200160405280866001600160a01b03168152602001306001600160a01b031681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020018581526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020018481526020014281526020018362ffffff164261057091906120d8565b8152604080515f8152602080820190925291015295945050505050565b5f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166105c860608401604085016120ab565b6001600160a01b031614801561061e57506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661061360a08401608085016120ab565b6001600160a01b0316145b156106325761062c82611592565b92915050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661066c60608401604085016120ab565b6001600160a01b03161480156106c257506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166106b760a08401608085016120ab565b6001600160a01b0316145b156106d05761062c826117c6565b604051631d37a6fd60e11b815260040160405180910390fd5b919050565b600154600160c01b900460ff166107175760405162b5f6bf60e41b815260040160405180910390fd5b6001546001600160a01b03161580159061073c57506001546001600160a01b03163314155b1561077457600154604051631f7dfcfb60e01b81523360048201526001600160a01b0390911660248201526044015b60405180910390fd5b604051631768e34b60e31b81525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bb471a58906107c69088908c90879060040161221f565b602060405180830381865afa1580156107e1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108059190612254565b6001549091505f906127109061082690600160a01b900461ffff168461226b565b6108309190612282565b604051636c490a8b60e11b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d89215169061088d908c908c908c908c908c908c908c908b906004016122a1565b5f604051808303815f87803b1580156108a4575f5ffd5b505af11580156108b6573d5f5f3e3d5ffd5b506108c89250505060208701876120ab565b6001600160a01b03166108de60208b018b6120ab565b6001600160a01b03167f5cacf0ac1f39b8df3d2e2bf11715db21af48833caa8819eaf4277e6b2e1b54d46109118c611aa3565b61091a8a611aa3565b8d604001602081019061092d91906120ab565b888f608001602081019061094191906120ab565b6040805195865260208601949094526001600160a01b0392831693850193909352606084015216608082015260a0810186905260c0810185905260e00160405180910390a3505050505050505050565b610999611bb6565b6001805460ff60c01b19169055604080515f81524260208201527fb89f558b3a2238cd6e750c4d3e29359faf8999130df57275857b0f526c34a42091015b60405180910390a1565b6040516370a0823160e01b8152306004820152610a6d907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038216906370a0823190602401602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103eb9190612254565b565b6040516316e1a9cf60e31b81525f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b70d4e7890610abf9085908790600401612307565b5f6040518083038186803b158015610ad5575f5ffd5b505afa158015610ae7573d5f5f3e3d5ffd5b505050505f610af584611592565b90505f610b01846117c6565b9050808210610b105780610b12565b815b95945050505050565b610b23611bb6565b61271061ffff82161115610b4a5760405163c52a9bd360e01b815260040160405180910390fd5b6001805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6001546001600160a01b03163314801590610b9157505f546001600160a01b03163314155b15610bc457600154604051631f7dfcfb60e01b81523360048201526001600160a01b03909116602482015260440161076b565b60405163180c964560e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636032591490610c1090849060040161232b565b5f604051808303815f87803b158015610c27575f5ffd5b505af1158015610c39573d5f5f3e3d5ffd5b5050505050565b610c48611bb6565b6101f48161ffff161115610c6f5760405163c52a9bd360e01b815260040160405180910390fd5b6001805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b60605f826001600160401b03811115610cac57610cac6120eb565b604051908082528060200260200182016040528015610cd5578160200160208202803683370190505b5090505f5b83811015610d2e57610d09858583818110610cf757610cf761233d565b905060200281019061023f9190612351565b828281518110610d1b57610d1b61233d565b6020908102919091010152600101610cda565b509392505050565b30610d4760408501602086016120ab565b6001600160a01b031614610d6e5760405163a0c7abcf60e01b815260040160405180910390fd5b604051631d7969ef60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633af2d3de90610dbe90869086908690600401612370565b5f6040518083038186803b158015610dd4575f5ffd5b505afa158015610de6573d5f5f3e3d5ffd5b50505050505050565b610df7611be2565b604051806101200160405280866001600160a01b03168152602001306001600160a01b031681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020018581526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020018481526020014281526020018362ffffff164261057091906120d8565b610ead838383610d36565b604051630fb490f760e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630fb490f790610efd90869086908690600401612370565b5f604051808303815f87803b158015610f14575f5ffd5b505af1158015610de6573d5f5f3e3d5ffd5b5f5f5f610f34868686610d36565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016610f6e60608801604089016120ab565b6001600160a01b0316148015610fc457506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016610fb960a08801608089016120ab565b6001600160a01b0316145b8061105a57506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661100460608801604089016120ab565b6001600160a01b031614801561105a57506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661104f60a08801608089016120ab565b6001600160a01b0316145b61107757604051631d37a6fd60e11b815260040160405180910390fd5b61108760608701604088016120ab565b6001600160a01b03166370a082316110a260208901896120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110e4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111089190612254565b915061111a60608701604088016120ab565b6001600160a01b031663dd62ed3e61113560208901896120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091166024820152604401602060405180830381865afa1580156111a0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111c49190612254565b90505f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166112016060890160408a016120ab565b6001600160a01b031614611219578660a0013561121f565b86606001355b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ff77980c896040518263ffffffff1660e01b815260040161126e919061232b565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad9190612254565b90505f1981036112d05760405163dabe493f60e01b815260040160405180910390fd5b8082116112f0576040516341a26a6360e01b815260040160405180910390fd5b5f6112fb828461239f565b955050505093509350939050565b611311611bb6565b6001545f906127109061132f90600160b01b900461ffff168461226b565b6113399190612282565b5f549091506001600160a01b038085169163a9059cbb911661135b848661239f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156113a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113c791906123b2565b5060405163a9059cbb60e01b81527329fe8914e76da5ce2d90de98a64d0055f199d06d6004820152602481018290526001600160a01b0384169063a9059cbb906044016020604051808303815f875af1158015611426573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144a91906123b2565b50604080516001600160a01b03851681527329fe8914e76da5ce2d90de98a64d0055f199d06d60208201529081018290527f7ed2a187ded43c3b5cac8cdea91ca4f539f41b0876fa4da818d8751153fcc1829060600160405180910390a1505050565b6114b5611bb6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f61062c82611aa3565b6114e9611bb6565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b61154a611bb6565b6001805460ff60c01b1916600160c01b178155604080519182524260208301527fb89f558b3a2238cd6e750c4d3e29359faf8999130df57275857b0f526c34a42091016109d7565b5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ff77980c846040518263ffffffff1660e01b81526004016115e0919061232b565b602060405180830381865afa1580156115fb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061161f9190612254565b90505f61163260608501604086016120ab565b6001600160a01b03166370a0823161164d60208701876120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561168f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b39190612254565b90505f6116c660608601604087016120ab565b6001600160a01b031663dd62ed3e6116e160208801886120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091166024820152604401602060405180830381865afa15801561174c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117709190612254565b90508285606001351161178757505f949350505050565b5f61179684606088013561239f565b90505f8284106117a657826117a8565b835b90505f8183106117b857816117ba565b825b98975050505050505050565b5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ff77980c846040518263ffffffff1660e01b8152600401611814919061232b565b602060405180830381865afa15801561182f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118539190612254565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b1e45f248560016040518363ffffffff1660e01b81526004016118a59291906123d1565b602060405180830381865afa1580156118c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118e49190612254565b90505f816118f860608701604088016120ab565b6001600160a01b03166370a0823161191360208901896120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611955573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119799190612254565b6119839190612282565b90505f8261199760608801604089016120ab565b6001600160a01b031663dd62ed3e6119b260208a018a6120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091166024820152604401602060405180830381865afa158015611a1d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a419190612254565b611a4b9190612282565b9050838660a0013511611a6357505f95945050505050565b5f611a728560a089013561239f565b90505f828410611a825782611a84565b835b90505f818310611a945781611a96565b825b9998505050505050505050565b5f7f034c5b389d8a563abef85c21c2424d5cff6b0c3b7b0e19c7f9a7a671cec7a347611ad260208401846120ab565b611ae260408501602086016120ab565b611af260608601604087016120ab565b6060860135611b0760a08801608089016120ab565b60a088013560c089013560e08a0135611b246101008c018c6123f2565b604051611b32929190612434565b60408051918290038220602083019b909b526001600160a01b03998a16908201529688166060880152948716608087015260a0860193909352941660c084015260e083019390935261010082019290925261012081019190915261014081019190915261016001604051602081830303815290604052805190602001209050919050565b5f546001600160a01b03163314610a6d576040516396a19be960e01b815233600482015260240161076b565b6040518061012001604052805f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f6001600160a01b031681526020015f81526020015f81526020015f8152602001606081525090565b80356001600160a01b03811681146106e9575f5ffd5b5f5f5f5f60808587031215611c73575f5ffd5b611c7c85611c4a565b93506020850135925060408501359150606085013562ffffff81168114611ca1575f5ffd5b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60208152611cf46020820183516001600160a01b03169052565b5f6020830151611d0f60408401826001600160a01b03169052565b5060408301516001600160a01b038116606084015250606083015160808301526080830151611d4960a08401826001600160a01b03169052565b5060a083015160c083015260c083015160e083015260e083015161010083015261010083015161012080840152611d84610140840182611cac565b949350505050565b5f6101208284031215611d9d575f5ffd5b50919050565b5f60208284031215611db3575f5ffd5b81356001600160401b03811115611dc8575f5ffd5b611d8484828501611d8c565b5f5f83601f840112611de4575f5ffd5b5081356001600160401b03811115611dfa575f5ffd5b602083019150836020828501011115611e11575f5ffd5b9250929050565b5f5f5f5f5f5f5f60a0888a031215611e2e575f5ffd5b87356001600160401b03811115611e43575f5ffd5b611e4f8a828b01611d8c565b97505060208801356001600160401b03811115611e6a575f5ffd5b611e768a828b01611dd4565b90975095505060408801356001600160401b03811115611e94575f5ffd5b611ea08a828b01611d8c565b94505060608801356001600160401b03811115611ebb575f5ffd5b611ec78a828b01611dd4565b989b979a50959894979596608090950135949350505050565b5f5f60408385031215611ef1575f5ffd5b82356001600160401b03811115611f06575f5ffd5b611f1285828601611d8c565b92505060208301356001600160401b03811115611f2d575f5ffd5b611f3985828601611d8c565b9150509250929050565b5f60208284031215611f53575f5ffd5b813561ffff81168114611f64575f5ffd5b9392505050565b5f5f60208385031215611f7c575f5ffd5b82356001600160401b03811115611f91575f5ffd5b8301601f81018513611fa1575f5ffd5b80356001600160401b03811115611fb6575f5ffd5b8560208260051b8401011115611fca575f5ffd5b6020919091019590945092505050565b602080825282518282018190525f918401906040840190835b81811015612011578351835260209384019390920191600101611ff3565b509095945050505050565b5f5f5f6040848603121561202e575f5ffd5b83356001600160401b03811115612043575f5ffd5b61204f86828701611d8c565b93505060208401356001600160401b0381111561206a575f5ffd5b61207686828701611dd4565b9497909650939450505050565b5f5f60408385031215612094575f5ffd5b61209d83611c4a565b946020939093013593505050565b5f602082840312156120bb575f5ffd5b611f6482611c4a565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561062c5761062c6120c4565b634e487b7160e01b5f52604160045260245ffd5b5f5f8335601e19843603018112612114575f5ffd5b83016020810192503590506001600160401b03811115612132575f5ffd5b803603821315611e11575f5ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6121828261217583611c4a565b6001600160a01b03169052565b5f61218f60208301611c4a565b6001600160a01b031660208401526121a960408301611c4a565b6001600160a01b03166040840152606082810135908401526121cd60808301611c4a565b6001600160a01b0316608084015260a0828101359084015260c0808301359084015260e080830135908401526122076101008301836120ff565b610120610100860152610b1261012086018284612140565b606081525f6122316060830186612168565b82810360208401526122438186612168565b915050826040830152949350505050565b5f60208284031215612264575f5ffd5b5051919050565b808202811582820484141761062c5761062c6120c4565b5f8261229c57634e487b7160e01b5f52601260045260245ffd5b500490565b60c081525f6122b360c083018b612168565b82810360208401526122c6818a8c612140565b905082810360408401526122da8189612168565b905082810360608401526122ef818789612140565b6080840195909552505060a001529695505050505050565b604081525f6123196040830185612168565b8281036020840152610b128185612168565b602081525f611f646020830184612168565b634e487b7160e01b5f52603260045260245ffd5b5f823561011e19833603018112612366575f5ffd5b9190910192915050565b604081525f6123826040830186612168565b8281036020840152612395818587612140565b9695505050505050565b8181038181111561062c5761062c6120c4565b5f602082840312156123c2575f5ffd5b81518015158114611f64575f5ffd5b604081525f6123e36040830185612168565b90508260208301529392505050565b5f5f8335601e19843603018112612407575f5ffd5b8301803591506001600160401b03821115612420575f5ffd5b602001915036819003821315611e11575f5ffd5b818382375f910190815291905056fea2646970667358221220770d56c5468219c56f1b0a89f2568388d25516ecb217de05f2aea980380b970e64736f6c634300081e00330000000000000000000000004fd9dba1d53b7e6cc933a2fdd12b1c012a0654f6000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb200000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad8100000000000000000000000059f0941e75f2f77ca4577e48c3c5333a3f8d277b

Deployed Bytecode

0x608060405234801561000f575f5ffd5b50600436106101dc575f3560e01c80638277dad411610109578063c0d786551161009e578063f53612191161006e578063f536121914610473578063f887ea401461049a578063fcfff16f146104ad578063ffa1ad74146104b5575f5ffd5b8063c0d786551461041f578063ce8f046714610432578063f22c1f7214610445578063f2fde38b14610460575f5ffd5b8063a1d13d05116100d9578063a1d13d05146103af578063ad3b1b47146103dd578063ae71dcdf146103f0578063b9603570146103f8575f5ffd5b80638277dad41461033857806382bfefc81461034b5780638da5cb5b1461038a5780639bc5e3bc1461039c575f5ffd5b8063476343ee1161017f57806360b778f51161014f57806360b778f5146102dd57806360ddae98146102f0578063716af2221461031057806374694f9214610325575f5ffd5b8063476343ee1461029c57806350b45ad8146102a45780635d84fbff146102b757806360325914146102ca575f5ffd5b806342d4c340116101ba57806342d4c34014610252578063435f0d411461026757806343d726d61461027057806347535d7b14610278575f5ffd5b8063225b34ac146101e05780632893c86a146102095780632c33df5414610231575b5f5ffd5b6101f36101ee366004611c60565b6104bd565b6040516102009190611cda565b60405180910390f35b60015461021e90600160b01b900461ffff1681565b60405161ffff9091168152602001610200565b61024461023f366004611da3565b61058d565b604051908152602001610200565b610265610260366004611e18565b6106ee565b005b61021e61271081565b610265610991565b60015461028c90600160c01b900460ff1681565b6040519015158152602001610200565b6102656109e1565b6102446102b2366004611ee0565b610a6f565b6102656102c5366004611f43565b610b1b565b6102656102d8366004611da3565b610b6c565b6102656102eb366004611f43565b610c40565b6103036102fe366004611f6b565b610c91565b6040516102009190611fda565b60015461021e90600160a01b900461ffff1681565b61026561033336600461201c565b610d36565b6101f3610346366004611c60565b610def565b6103727f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb20081565b6040516001600160a01b039091168152602001610200565b5f54610372906001600160a01b031681565b6102656103aa36600461201c565b610ea2565b6103c26103bd36600461201c565b610f26565b60408051938452602084019290925290820152606001610200565b6102656103eb366004612083565b611309565b6102445f1981565b6103727f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad8181565b61026561042d3660046120ab565b6114ad565b610244610440366004611da3565b6114d7565b6103727329fe8914e76da5ce2d90de98a64d0055f199d06d81565b61026561046e3660046120ab565b6114e1565b6103727f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb81565b600154610372906001600160a01b031681565b610265611542565b61021e600181565b6104c5611be2565b604051806101200160405280866001600160a01b03168152602001306001600160a01b031681526020017f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb6001600160a01b031681526020018581526020017f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb2006001600160a01b031681526020018481526020014281526020018362ffffff164261057091906120d8565b8152604080515f8152602080820190925291015295945050505050565b5f6001600160a01b037f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb200166105c860608401604085016120ab565b6001600160a01b031614801561061e57506001600160a01b037f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb1661061360a08401608085016120ab565b6001600160a01b0316145b156106325761062c82611592565b92915050565b6001600160a01b037f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb1661066c60608401604085016120ab565b6001600160a01b03161480156106c257506001600160a01b037f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb200166106b760a08401608085016120ab565b6001600160a01b0316145b156106d05761062c826117c6565b604051631d37a6fd60e11b815260040160405180910390fd5b919050565b600154600160c01b900460ff166107175760405162b5f6bf60e41b815260040160405180910390fd5b6001546001600160a01b03161580159061073c57506001546001600160a01b03163314155b1561077457600154604051631f7dfcfb60e01b81523360048201526001600160a01b0390911660248201526044015b60405180910390fd5b604051631768e34b60e31b81525f906001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad81169063bb471a58906107c69088908c90879060040161221f565b602060405180830381865afa1580156107e1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108059190612254565b6001549091505f906127109061082690600160a01b900461ffff168461226b565b6108309190612282565b604051636c490a8b60e11b81529091506001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad81169063d89215169061088d908c908c908c908c908c908c908c908b906004016122a1565b5f604051808303815f87803b1580156108a4575f5ffd5b505af11580156108b6573d5f5f3e3d5ffd5b506108c89250505060208701876120ab565b6001600160a01b03166108de60208b018b6120ab565b6001600160a01b03167f5cacf0ac1f39b8df3d2e2bf11715db21af48833caa8819eaf4277e6b2e1b54d46109118c611aa3565b61091a8a611aa3565b8d604001602081019061092d91906120ab565b888f608001602081019061094191906120ab565b6040805195865260208601949094526001600160a01b0392831693850193909352606084015216608082015260a0810186905260c0810185905260e00160405180910390a3505050505050505050565b610999611bb6565b6001805460ff60c01b19169055604080515f81524260208201527fb89f558b3a2238cd6e750c4d3e29359faf8999130df57275857b0f526c34a42091015b60405180910390a1565b6040516370a0823160e01b8152306004820152610a6d907f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb906001600160a01b038216906370a0823190602401602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103eb9190612254565b565b6040516316e1a9cf60e31b81525f906001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad81169063b70d4e7890610abf9085908790600401612307565b5f6040518083038186803b158015610ad5575f5ffd5b505afa158015610ae7573d5f5f3e3d5ffd5b505050505f610af584611592565b90505f610b01846117c6565b9050808210610b105780610b12565b815b95945050505050565b610b23611bb6565b61271061ffff82161115610b4a5760405163c52a9bd360e01b815260040160405180910390fd5b6001805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6001546001600160a01b03163314801590610b9157505f546001600160a01b03163314155b15610bc457600154604051631f7dfcfb60e01b81523360048201526001600160a01b03909116602482015260440161076b565b60405163180c964560e21b81526001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad811690636032591490610c1090849060040161232b565b5f604051808303815f87803b158015610c27575f5ffd5b505af1158015610c39573d5f5f3e3d5ffd5b5050505050565b610c48611bb6565b6101f48161ffff161115610c6f5760405163c52a9bd360e01b815260040160405180910390fd5b6001805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b60605f826001600160401b03811115610cac57610cac6120eb565b604051908082528060200260200182016040528015610cd5578160200160208202803683370190505b5090505f5b83811015610d2e57610d09858583818110610cf757610cf761233d565b905060200281019061023f9190612351565b828281518110610d1b57610d1b61233d565b6020908102919091010152600101610cda565b509392505050565b30610d4760408501602086016120ab565b6001600160a01b031614610d6e5760405163a0c7abcf60e01b815260040160405180910390fd5b604051631d7969ef60e11b81526001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad811690633af2d3de90610dbe90869086908690600401612370565b5f6040518083038186803b158015610dd4575f5ffd5b505afa158015610de6573d5f5f3e3d5ffd5b50505050505050565b610df7611be2565b604051806101200160405280866001600160a01b03168152602001306001600160a01b031681526020017f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb2006001600160a01b031681526020018581526020017f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb6001600160a01b031681526020018481526020014281526020018362ffffff164261057091906120d8565b610ead838383610d36565b604051630fb490f760e01b81526001600160a01b037f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad811690630fb490f790610efd90869086908690600401612370565b5f604051808303815f87803b158015610f14575f5ffd5b505af1158015610de6573d5f5f3e3d5ffd5b5f5f5f610f34868686610d36565b6001600160a01b037f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb20016610f6e60608801604089016120ab565b6001600160a01b0316148015610fc457506001600160a01b037f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb16610fb960a08801608089016120ab565b6001600160a01b0316145b8061105a57506001600160a01b037f000000000000000000000000b58e61c3098d85632df34eecfb899a1ed80921cb1661100460608801604089016120ab565b6001600160a01b031614801561105a57506001600160a01b037f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb2001661104f60a08801608089016120ab565b6001600160a01b0316145b61107757604051631d37a6fd60e11b815260040160405180910390fd5b61108760608701604088016120ab565b6001600160a01b03166370a082316110a260208901896120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110e4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111089190612254565b915061111a60608701604088016120ab565b6001600160a01b031663dd62ed3e61113560208901896120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad819091166024820152604401602060405180830381865afa1580156111a0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111c49190612254565b90505f6001600160a01b037f0000000000000000000000006f38e0f1a73c96cb3f42598613ea3474f09cb200166112016060890160408a016120ab565b6001600160a01b031614611219578660a0013561121f565b86606001355b90505f7f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad816001600160a01b031663ff77980c896040518263ffffffff1660e01b815260040161126e919061232b565b602060405180830381865afa158015611289573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112ad9190612254565b90505f1981036112d05760405163dabe493f60e01b815260040160405180910390fd5b8082116112f0576040516341a26a6360e01b815260040160405180910390fd5b5f6112fb828461239f565b955050505093509350939050565b611311611bb6565b6001545f906127109061132f90600160b01b900461ffff168461226b565b6113399190612282565b5f549091506001600160a01b038085169163a9059cbb911661135b848661239f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af11580156113a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113c791906123b2565b5060405163a9059cbb60e01b81527329fe8914e76da5ce2d90de98a64d0055f199d06d6004820152602481018290526001600160a01b0384169063a9059cbb906044016020604051808303815f875af1158015611426573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144a91906123b2565b50604080516001600160a01b03851681527329fe8914e76da5ce2d90de98a64d0055f199d06d60208201529081018290527f7ed2a187ded43c3b5cac8cdea91ca4f539f41b0876fa4da818d8751153fcc1829060600160405180910390a1505050565b6114b5611bb6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f61062c82611aa3565b6114e9611bb6565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b61154a611bb6565b6001805460ff60c01b1916600160c01b178155604080519182524260208301527fb89f558b3a2238cd6e750c4d3e29359faf8999130df57275857b0f526c34a42091016109d7565b5f5f7f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad816001600160a01b031663ff77980c846040518263ffffffff1660e01b81526004016115e0919061232b565b602060405180830381865afa1580156115fb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061161f9190612254565b90505f61163260608501604086016120ab565b6001600160a01b03166370a0823161164d60208701876120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561168f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b39190612254565b90505f6116c660608601604087016120ab565b6001600160a01b031663dd62ed3e6116e160208801886120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad819091166024820152604401602060405180830381865afa15801561174c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117709190612254565b90508285606001351161178757505f949350505050565b5f61179684606088013561239f565b90505f8284106117a657826117a8565b835b90505f8183106117b857816117ba565b825b98975050505050505050565b5f5f7f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad816001600160a01b031663ff77980c846040518263ffffffff1660e01b8152600401611814919061232b565b602060405180830381865afa15801561182f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118539190612254565b90505f7f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad816001600160a01b031663b1e45f248560016040518363ffffffff1660e01b81526004016118a59291906123d1565b602060405180830381865afa1580156118c0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118e49190612254565b90505f816118f860608701604088016120ab565b6001600160a01b03166370a0823161191360208901896120ab565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611955573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119799190612254565b6119839190612282565b90505f8261199760608801604089016120ab565b6001600160a01b031663dd62ed3e6119b260208a018a6120ab565b60405160e083901b6001600160e01b03191681526001600160a01b0391821660048201527f000000000000000000000000699b77b40bef9eba25c39b480c20c38cf7abad819091166024820152604401602060405180830381865afa158015611a1d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a419190612254565b611a4b9190612282565b9050838660a0013511611a6357505f95945050505050565b5f611a728560a089013561239f565b90505f828410611a825782611a84565b835b90505f818310611a945781611a96565b825b9998505050505050505050565b5f7f034c5b389d8a563abef85c21c2424d5cff6b0c3b7b0e19c7f9a7a671cec7a347611ad260208401846120ab565b611ae260408501602086016120ab565b611af260608601604087016120ab565b6060860135611b0760a08801608089016120ab565b60a088013560c089013560e08a0135611b246101008c018c6123f2565b604051611b32929190612434565b60408051918290038220602083019b909b526001600160a01b03998a16908201529688166060880152948716608087015260a0860193909352941660c084015260e083019390935261010082019290925261012081019190915261014081019190915261016001604051602081830303815290604052805190602001209050919050565b5f546001600160a01b03163314610a6d576040516396a19be960e01b815233600482015260240161076b565b6040518061012001604052805f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f6001600160a01b031681526020015f81526020015f81526020015f8152602001606081525090565b80356001600160a01b03811681146106e9575f5ffd5b5f5f5f5f60808587031215611c73575f5ffd5b611c7c85611c4a565b93506020850135925060408501359150606085013562ffffff81168114611ca1575f5ffd5b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60208152611cf46020820183516001600160a01b03169052565b5f6020830151611d0f60408401826001600160a01b03169052565b5060408301516001600160a01b038116606084015250606083015160808301526080830151611d4960a08401826001600160a01b03169052565b5060a083015160c083015260c083015160e083015260e083015161010083015261010083015161012080840152611d84610140840182611cac565b949350505050565b5f6101208284031215611d9d575f5ffd5b50919050565b5f60208284031215611db3575f5ffd5b81356001600160401b03811115611dc8575f5ffd5b611d8484828501611d8c565b5f5f83601f840112611de4575f5ffd5b5081356001600160401b03811115611dfa575f5ffd5b602083019150836020828501011115611e11575f5ffd5b9250929050565b5f5f5f5f5f5f5f60a0888a031215611e2e575f5ffd5b87356001600160401b03811115611e43575f5ffd5b611e4f8a828b01611d8c565b97505060208801356001600160401b03811115611e6a575f5ffd5b611e768a828b01611dd4565b90975095505060408801356001600160401b03811115611e94575f5ffd5b611ea08a828b01611d8c565b94505060608801356001600160401b03811115611ebb575f5ffd5b611ec78a828b01611dd4565b989b979a50959894979596608090950135949350505050565b5f5f60408385031215611ef1575f5ffd5b82356001600160401b03811115611f06575f5ffd5b611f1285828601611d8c565b92505060208301356001600160401b03811115611f2d575f5ffd5b611f3985828601611d8c565b9150509250929050565b5f60208284031215611f53575f5ffd5b813561ffff81168114611f64575f5ffd5b9392505050565b5f5f60208385031215611f7c575f5ffd5b82356001600160401b03811115611f91575f5ffd5b8301601f81018513611fa1575f5ffd5b80356001600160401b03811115611fb6575f5ffd5b8560208260051b8401011115611fca575f5ffd5b6020919091019590945092505050565b602080825282518282018190525f918401906040840190835b81811015612011578351835260209384019390920191600101611ff3565b509095945050505050565b5f5f5f6040848603121561202e575f5ffd5b83356001600160401b03811115612043575f5ffd5b61204f86828701611d8c565b93505060208401356001600160401b0381111561206a575f5ffd5b61207686828701611dd4565b9497909650939450505050565b5f5f60408385031215612094575f5ffd5b61209d83611c4a565b946020939093013593505050565b5f602082840312156120bb575f5ffd5b611f6482611c4a565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561062c5761062c6120c4565b634e487b7160e01b5f52604160045260245ffd5b5f5f8335601e19843603018112612114575f5ffd5b83016020810192503590506001600160401b03811115612132575f5ffd5b803603821315611e11575f5ffd5b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6121828261217583611c4a565b6001600160a01b03169052565b5f61218f60208301611c4a565b6001600160a01b031660208401526121a960408301611c4a565b6001600160a01b03166040840152606082810135908401526121cd60808301611c4a565b6001600160a01b0316608084015260a0828101359084015260c0808301359084015260e080830135908401526122076101008301836120ff565b610120610100860152610b1261012086018284612140565b606081525f6122316060830186612168565b82810360208401526122438186612168565b915050826040830152949350505050565b5f60208284031215612264575f5ffd5b5051919050565b808202811582820484141761062c5761062c6120c4565b5f8261229c57634e487b7160e01b5f52601260045260245ffd5b500490565b60c081525f6122b360c083018b612168565b82810360208401526122c6818a8c612140565b905082810360408401526122da8189612168565b905082810360608401526122ef818789612140565b6080840195909552505060a001529695505050505050565b604081525f6123196040830185612168565b8281036020840152610b128185612168565b602081525f611f646020830184612168565b634e487b7160e01b5f52603260045260245ffd5b5f823561011e19833603018112612366575f5ffd5b9190910192915050565b604081525f6123826040830186612168565b8281036020840152612395818587612140565b9695505050505050565b8181038181111561062c5761062c6120c4565b5f602082840312156123c2575f5ffd5b81518015158114611f64575f5ffd5b604081525f6123e36040830185612168565b90508260208301529392505050565b5f5f8335601e19843603018112612407575f5ffd5b8301803591506001600160401b03821115612420575f5ffd5b602001915036819003821315611e11575f5ffd5b818382375f910190815291905056fea2646970667358221220770d56c5468219c56f1b0a89f2568388d25516ecb217de05f2aea980380b970e64736f6c634300081e0033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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