Contract Address Details

0x0dA10f097d64571a4d08B44125c972A8a625F3d6

Contract Name
TaxOracle
Creator
0xec251b–784eea at 0x738fc8–886f3f
Balance
0 REI ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
20183038
Contract name:
TaxOracle




Optimization enabled
true
Compiler version
v0.6.12+commit.27d51765




Optimization runs
200
Verified at
2022-12-01T07:30:18.231366Z

Constructor Arguments

00000000000000000000000046d741b89102815710efea3051291e64ff49c2280000000000000000000000002545af3d8b11e295bb7aedd5826021ab54f71630000000000000000000000000a698c6f3352e18519ef53172d492cef805d99afa

Arg [0] (address) : 0x46d741b89102815710efea3051291e64ff49c228
Arg [1] (address) : 0x2545af3d8b11e295bb7aedd5826021ab54f71630
Arg [2] (address) : 0xa698c6f3352e18519ef53172d492cef805d99afa

              

Contract source code

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


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

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

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

/**
 * @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 () internal {
        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;
    }
}


contract TaxOracle is Ownable {
    using SafeMath for uint256;

    IERC20 public nava;
    IERC20 public wrei;
    address public pair;

    constructor(
        address _nava,
        address _wrei,
        address _pair
    ) public {
        require(_nava != address(0), "nava address cannot be 0");
        require(_wrei != address(0), "wrei address cannot be 0");
        require(_pair != address(0), "pair address cannot be 0");
        nava = IERC20(_nava);
        wrei = IERC20(_wrei);
        pair = _pair;
    }

    function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut) {
        require(_token == address(nava), "token needs to be nava");
        uint256 navaBalance = nava.balanceOf(pair);
        uint256 wreiBalance = wrei.balanceOf(pair);
        return uint144(wreiBalance.mul(_amountIn).div(navaBalance));
    }

    function getNavaBalance() external view returns (uint256) {
	return nava.balanceOf(pair);
    }

    function getWreiBalance() external view returns (uint256) {
	return wrei.balanceOf(pair);
    }

    function getPrice() external view returns (uint256) {
        uint256 navaBalance = nava.balanceOf(pair);
        uint256 wreiBalance = wrei.balanceOf(pair);
        return wreiBalance.mul(1e18).div(navaBalance);
    }


    function setNava(address _nava) external onlyOwner {
        require(_nava != address(0), "nava address cannot be 0");
        nava = IERC20(_nava);
    }

    function setWrei(address _wrei) external onlyOwner {
        require(_wrei != address(0), "wrei address cannot be 0");
        wrei = IERC20(_wrei);
    }

    function setPair(address _pair) external onlyOwner {
        require(_pair != address(0), "pair address cannot be 0");
        pair = _pair;
    }
}
        
>

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_nava","internalType":"address"},{"type":"address","name":"_wrei","internalType":"address"},{"type":"address","name":"_pair","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint144","name":"amountOut","internalType":"uint144"}],"name":"consult","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_amountIn","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNavaBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getPrice","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getWreiBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"nava","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pair","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNava","inputs":[{"type":"address","name":"_nava","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPair","inputs":[{"type":"address","name":"_pair","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setWrei","inputs":[{"type":"address","name":"_wrei","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"wrei","inputs":[]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b50604051610d95380380610d958339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6101eb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0383166100f3576040805162461bcd60e51b815260206004820152601860248201527f6e61766120616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b6001600160a01b03821661014e576040805162461bcd60e51b815260206004820152601860248201527f7772656920616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b6001600160a01b0381166101a9576040805162461bcd60e51b815260206004820152601860248201527f7061697220616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600180546001600160a01b039485166001600160a01b0319918216179091556002805493851693821693909317909255600380549190931691161790556101ef565b3390565b610b97806101fe6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638187f5161161008c57806398d5fdca1161006657806398d5fdca146101f1578063a245af00146101f9578063a8aa1b3114610201578063f2fde38b14610209576100cf565b80638187f5161461019f57806384ce0cd4146101c55780638da5cb5b146101e9576100cf565b80633ddac953146100d457806343c4fe88146101275780635137cfc214610141578063715018a6146101495780637bd8afa7146101535780637c086a3814610179575b600080fd5b610100600480360360408110156100ea57600080fd5b506001600160a01b03813516906020013561022f565b6040805171ffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61012f6103b0565b60408051918252519081900360200190f35b61012f610435565b610151610489565b005b6101516004803603602081101561016957600080fd5b50356001600160a01b0316610535565b6101516004803603602081101561018f57600080fd5b50356001600160a01b0316610614565b610151600480360360208110156101b557600080fd5b50356001600160a01b03166106f3565b6101cd6107d2565b604080516001600160a01b039092168252519081900360200190f35b6101cd6107e1565b61012f6107f0565b6101cd61090f565b6101cd61091e565b6101516004803603602081101561021f57600080fd5b50356001600160a01b031661092d565b6001546000906001600160a01b0384811691161461028d576040805162461bcd60e51b8152602060048201526016602482015275746f6b656e206e6565647320746f206265206e61766160501b604482015290519081900360640190fd5b600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b1580156102e157600080fd5b505afa1580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b5051600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561036357600080fd5b505afa158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505190506103a58261039f8387610a2f565b90610a8f565b925050505b92915050565b600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561040457600080fd5b505afa158015610418573d6000803e3d6000fd5b505050506040513d602081101561042e57600080fd5b5051905090565b600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561040457600080fd5b610491610af6565b6001600160a01b03166104a26107e1565b6001600160a01b0316146104eb576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61053d610af6565b6001600160a01b031661054e6107e1565b6001600160a01b031614610597576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166105f2576040805162461bcd60e51b815260206004820152601860248201527f6e61766120616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61061c610af6565b6001600160a01b031661062d6107e1565b6001600160a01b031614610676576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d1576040805162461bcd60e51b815260206004820152601860248201527f7772656920616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106fb610af6565b6001600160a01b031661070c6107e1565b6001600160a01b031614610755576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166107b0576040805162461bcd60e51b815260206004820152601860248201527f7061697220616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000546001600160a01b031690565b600154600354604080516370a0823160e01b81526001600160a01b0392831660048201529051600093849316916370a08231916024808301926020929190829003018186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b5051600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b1580156108c457600080fd5b505afa1580156108d8573d6000803e3d6000fd5b505050506040513d60208110156108ee57600080fd5b505190506109088261039f83670de0b6b3a7640000610a2f565b9250505090565b6001546001600160a01b031681565b6003546001600160a01b031681565b610935610af6565b6001600160a01b03166109466107e1565b6001600160a01b03161461098f576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166109d45760405162461bcd60e51b8152600401808060200182810382526026815260200180610afb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082610a3e575060006103aa565b82820282848281610a4b57fe5b0414610a885760405162461bcd60e51b8152600401808060200182810382526021815260200180610b216021913960400191505060405180910390fd5b9392505050565b6000808211610ae5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610aee57fe5b049392505050565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a83c57f64373debb023b67fb428c057862d540000ac03072c8efa6afb6a9a35d64736f6c634300060c003300000000000000000000000046d741b89102815710efea3051291e64ff49c2280000000000000000000000002545af3d8b11e295bb7aedd5826021ab54f71630000000000000000000000000a698c6f3352e18519ef53172d492cef805d99afa

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638187f5161161008c57806398d5fdca1161006657806398d5fdca146101f1578063a245af00146101f9578063a8aa1b3114610201578063f2fde38b14610209576100cf565b80638187f5161461019f57806384ce0cd4146101c55780638da5cb5b146101e9576100cf565b80633ddac953146100d457806343c4fe88146101275780635137cfc214610141578063715018a6146101495780637bd8afa7146101535780637c086a3814610179575b600080fd5b610100600480360360408110156100ea57600080fd5b506001600160a01b03813516906020013561022f565b6040805171ffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61012f6103b0565b60408051918252519081900360200190f35b61012f610435565b610151610489565b005b6101516004803603602081101561016957600080fd5b50356001600160a01b0316610535565b6101516004803603602081101561018f57600080fd5b50356001600160a01b0316610614565b610151600480360360208110156101b557600080fd5b50356001600160a01b03166106f3565b6101cd6107d2565b604080516001600160a01b039092168252519081900360200190f35b6101cd6107e1565b61012f6107f0565b6101cd61090f565b6101cd61091e565b6101516004803603602081101561021f57600080fd5b50356001600160a01b031661092d565b6001546000906001600160a01b0384811691161461028d576040805162461bcd60e51b8152602060048201526016602482015275746f6b656e206e6565647320746f206265206e61766160501b604482015290519081900360640190fd5b600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b1580156102e157600080fd5b505afa1580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b5051600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561036357600080fd5b505afa158015610377573d6000803e3d6000fd5b505050506040513d602081101561038d57600080fd5b505190506103a58261039f8387610a2f565b90610a8f565b925050505b92915050565b600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561040457600080fd5b505afa158015610418573d6000803e3d6000fd5b505050506040513d602081101561042e57600080fd5b5051905090565b600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b15801561040457600080fd5b610491610af6565b6001600160a01b03166104a26107e1565b6001600160a01b0316146104eb576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61053d610af6565b6001600160a01b031661054e6107e1565b6001600160a01b031614610597576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166105f2576040805162461bcd60e51b815260206004820152601860248201527f6e61766120616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61061c610af6565b6001600160a01b031661062d6107e1565b6001600160a01b031614610676576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d1576040805162461bcd60e51b815260206004820152601860248201527f7772656920616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106fb610af6565b6001600160a01b031661070c6107e1565b6001600160a01b031614610755576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166107b0576040805162461bcd60e51b815260206004820152601860248201527f7061697220616464726573732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000546001600160a01b031690565b600154600354604080516370a0823160e01b81526001600160a01b0392831660048201529051600093849316916370a08231916024808301926020929190829003018186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b5051600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b1580156108c457600080fd5b505afa1580156108d8573d6000803e3d6000fd5b505050506040513d60208110156108ee57600080fd5b505190506109088261039f83670de0b6b3a7640000610a2f565b9250505090565b6001546001600160a01b031681565b6003546001600160a01b031681565b610935610af6565b6001600160a01b03166109466107e1565b6001600160a01b03161461098f576040805162461bcd60e51b81526020600482018190526024820152600080516020610b42833981519152604482015290519081900360640190fd5b6001600160a01b0381166109d45760405162461bcd60e51b8152600401808060200182810382526026815260200180610afb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082610a3e575060006103aa565b82820282848281610a4b57fe5b0414610a885760405162461bcd60e51b8152600401808060200182810382526021815260200180610b216021913960400191505060405180910390fd5b9392505050565b6000808211610ae5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610aee57fe5b049392505050565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a83c57f64373debb023b67fb428c057862d540000ac03072c8efa6afb6a9a35d64736f6c634300060c0033