Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 667728 | 2 days ago | IN | 0 S | 0.00003147 | ||||
Set CL Oracle | 548152 | 2 days ago | IN | 0 S | 0.00005088 | ||||
Set Quote Token | 548136 | 2 days ago | IN | 0 S | 0.00009677 | ||||
Set Stale Durati... | 546162 | 2 days ago | IN | 0 S | 0.00003154 | ||||
Set Admin | 546150 | 2 days ago | IN | 0 S | 0.00005107 | ||||
Set Woo PP | 546133 | 2 days ago | IN | 0 S | 0.00003195 | ||||
Set Bound | 546119 | 2 days ago | IN | 0 S | 0.00003174 | ||||
Set Guardian | 546112 | 2 days ago | IN | 0 S | 0.00005107 | ||||
Transfer Ownersh... | 545288 | 2 days ago | IN | 0 S | 0.00003147 |
Loading...
Loading
Contract Name:
WooracleV2_2
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.14; /* ░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗ ░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║ ░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║ ░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║ ░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║ ░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝ * * MIT License * =========== * * Copyright (c) 2020 WooTrade * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import "../interfaces/IWooracleV2_2.sol"; import "../interfaces/AggregatorV3Interface.sol"; import {TransferHelper} from "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol"; // OpenZeppelin contracts import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /// @title Wooracle V2.2 contract for WooPPV2 /// subversion 1 change: no timestamp update for posting price from WooPP. /// subversion 2 change: support legacy postState utilizing block.timestamp contract WooracleV2_2 is Ownable, IWooracleV2_2 { /* ----- State variables ----- */ // 128 + 64 + 64 = 256 bits (slot size) struct TokenInfo { uint128 price; // as chainlink oracle (e.g. decimal = 8) zip: 32 bits = (27, 5) uint64 coeff; // k: decimal = 18. 18.4 * 1e18 zip: 16 bits = (11, 5), 2^11 = 2048 uint64 spread; // s: decimal = 18. spread <= 2e18 18.4 * 1e18 zip: 16 bits = (11, 5) } struct CLOracle { address oracle; uint8 decimal; bool cloPreferred; } struct PriceRange { uint128 min; uint128 max; } mapping(address => TokenInfo) public infos; mapping(address => CLOracle) public clOracles; mapping(address => PriceRange) public priceRanges; address public quoteToken; uint256 public timestamp; uint256 public staleDuration; uint64 public bound; address public wooPP; mapping(address => bool) public isAdmin; mapping(address => bool) public isGuardian; mapping(uint8 => address) public basesMap; constructor() { staleDuration = uint256(300); // default: 5 mins bound = uint64(1e16); // 1% } modifier onlyAdmin() { require(owner() == msg.sender || isAdmin[msg.sender] || msg.sender == wooPP, "WooracleV2_2: !Admin"); _; } modifier onlyGuardian() { require(isGuardian[msg.sender], "WooracleV2_2: !Guardian"); _; } /* ----- External Functions ----- */ function setRange( address _base, uint128 _min, uint128 _max ) external onlyGuardian { PriceRange storage priceRange = priceRanges[_base]; priceRange.min = _min; priceRange.max = _max; } function setWooPP(address _wooPP) external onlyAdmin { wooPP = _wooPP; } function setAdmin(address _addr, bool _flag) external onlyOwner { isAdmin[_addr] = _flag; } function setGuardian(address _addr, bool _flag) external onlyOwner { isGuardian[_addr] = _flag; } /// @dev Set the quote token address. /// @param _oracle the token address function setQuoteToken(address _quote, address _oracle) external onlyAdmin { quoteToken = _quote; CLOracle storage cloRef = clOracles[_quote]; cloRef.oracle = _oracle; cloRef.decimal = AggregatorV3Interface(_oracle).decimals(); } function setBound(uint64 _bound) external onlyOwner { bound = _bound; } function setCLOracle( address _token, address _oracle, bool _cloPreferred ) external onlyAdmin { CLOracle storage cloRef = clOracles[_token]; cloRef.oracle = _oracle; cloRef.decimal = AggregatorV3Interface(_oracle).decimals(); cloRef.cloPreferred = _cloPreferred; } function setCloPreferred(address _token, bool _cloPreferred) external onlyAdmin { CLOracle storage cloRef = clOracles[_token]; cloRef.cloPreferred = _cloPreferred; } /// @dev Set the staleDuration. /// @param _staleDuration the new stale duration function setStaleDuration(uint256 _staleDuration) external onlyAdmin { staleDuration = _staleDuration; } /// @dev Update the base token prices. /// @param _base the baseToken address /// @param _price the new prices for the base token function postPrice(address _base, uint128 _price) external onlyAdmin { // NOTE: update spread before setting a new price _updateSpreadForNewPrice(_base, _price); infos[_base].price = _price; if (msg.sender != wooPP) { timestamp = block.timestamp; } } /// @dev Update the base token prices. /// @param _base the baseToken address /// @param _price the new prices for the base token /// @param _ts the manual updated TS function postPrice( address _base, uint128 _price, uint256 _ts ) external onlyAdmin { // NOTE: update spread before setting a new price _updateSpreadForNewPrice(_base, _price); infos[_base].price = _price; timestamp = _ts; } /// @dev batch update baseTokens prices /// @param _bases list of baseToken address /// @param _prices the updated prices list function postPriceList( address[] calldata _bases, uint128[] calldata _prices, uint256 _ts ) external onlyAdmin { uint256 length = _bases.length; require(length == _prices.length, "WooracleV2_2: length_INVALID"); for (uint256 i = 0; i < length; i++) { // NOTE: update spread before setting a new price _updateSpreadForNewPrice(_bases[i], _prices[i]); infos[_bases[i]].price = _prices[i]; } timestamp = _ts; } /// @dev update the state of the given base token. /// @param _base baseToken address /// @param _price the new prices /// @param _spread the new spreads /// @param _coeff the new slippage coefficent function postState( address _base, uint128 _price, uint64 _spread, uint64 _coeff ) external onlyAdmin { _setState(_base, _price, _spread, _coeff); timestamp = block.timestamp; } /// @dev update the state of the given base token with the offchain timestamp. /// @param _base baseToken address /// @param _price the new prices /// @param _spread the new spreads /// @param _coeff the new slippage coefficent /// @param _ts the local timestamp function postState( address _base, uint128 _price, uint64 _spread, uint64 _coeff, uint256 _ts ) external onlyAdmin { _setState(_base, _price, _spread, _coeff); timestamp = _ts; } /// @dev batch update the prices, spreads and slipagge coeffs info. /// @param _bases list of baseToken address /// @param _prices the prices list /// @param _spreads the spreads list /// @param _coeffs the slippage coefficent list function postStateList( address[] calldata _bases, uint128[] calldata _prices, uint64[] calldata _spreads, uint64[] calldata _coeffs, uint256 _ts ) external onlyAdmin { uint256 length = _bases.length; for (uint256 i = 0; i < length; i++) { _setState(_bases[i], _prices[i], _spreads[i], _coeffs[i]); } timestamp = _ts; } /* Price logic: - woPrice: wooracle price - cloPrice: chainlink price woFeasible is, price > 0 and price timestamp NOT stale when woFeasible && priceWithinBound -> woPrice, feasible when woFeasible && !priceWithinBound -> woPrice, infeasible when !woFeasible && clo_preferred -> cloPrice, feasible when !woFeasible && !clo_preferred -> cloPrice, infeasible */ function price(address _base) public view returns (uint256 priceOut, bool feasible) { uint256 woPrice_ = uint256(infos[_base].price); uint256 woPriceTimestamp = timestamp; (uint256 cloPrice_, ) = _cloPriceInQuote(_base, quoteToken); bool woFeasible = woPrice_ != 0 && block.timestamp <= (woPriceTimestamp + staleDuration); // bool woPriceInBound = cloPrice_ == 0 || // ((cloPrice_ * (1e18 - bound)) / 1e18 <= woPrice_ && woPrice_ <= (cloPrice_ * (1e18 + bound)) / 1e18); bool woPriceInBound = cloPrice_ != 0 && ((cloPrice_ * (1e18 - bound)) / 1e18 <= woPrice_ && woPrice_ <= (cloPrice_ * (1e18 + bound)) / 1e18); if (woFeasible) { priceOut = woPrice_; feasible = woPriceInBound; } else { priceOut = clOracles[_base].cloPreferred ? cloPrice_ : 0; feasible = priceOut != 0; } // Guardian check: min-max if (feasible) { PriceRange memory range = priceRanges[_base]; require(priceOut > range.min, "WooracleV2_2: !min"); require(priceOut < range.max, "WooracleV2_2: !max"); } } /// @notice the price decimal for the specified base token function decimals(address) external pure returns (uint8) { return 8; } function cloPrice(address _base) external view returns (uint256 refPrice, uint256 refTimestamp) { return _cloPriceInQuote(_base, quoteToken); } function isWoFeasible(address _base) external view override returns (bool) { return infos[_base].price != 0 && block.timestamp <= (timestamp + staleDuration); } function woState(address _base) external view returns (State memory) { TokenInfo memory info = infos[_base]; return State({ price: info.price, spread: info.spread, coeff: info.coeff, woFeasible: (info.price != 0 && block.timestamp <= (timestamp + staleDuration)) }); } function state(address _base) external view returns (State memory) { TokenInfo memory info = infos[_base]; (uint256 basePrice, bool feasible) = price(_base); return State({price: uint128(basePrice), spread: info.spread, coeff: info.coeff, woFeasible: feasible}); } /* ----- Internal Functions ----- */ function _updateSpreadForNewPrice(address _base, uint128 _price) internal { uint64 preS = infos[_base].spread; uint128 preP = infos[_base].price; if (preP == 0 || _price == 0 || preS >= 1e18) { // previous price or current price is 0, no action is needed return; } uint256 maxP = _price >= preP ? _price : preP; uint256 minP = _price <= preP ? _price : preP; uint256 antiS = (uint256(1e18) * 1e18 * minP) / maxP / (uint256(1e18) - preS); if (antiS < 1e18) { uint64 newS = uint64(1e18 - antiS); if (newS > preS) { infos[_base].spread = newS; } } } function _updateSpreadForNewPrice( address _base, uint128 _price, uint64 _spread ) internal { require(_spread < 1e18, "!_spread"); uint64 preS = infos[_base].spread; uint128 preP = infos[_base].price; if (preP == 0 || _price == 0 || preS >= 1e18) { // previous price or current price is 0, just use _spread infos[_base].spread = _spread; return; } uint256 maxP = _price >= preP ? _price : preP; uint256 minP = _price <= preP ? _price : preP; uint256 antiS = (uint256(1e18) * 1e18 * minP) / maxP / (uint256(1e18) - preS); if (antiS < 1e18) { uint64 newS = uint64(1e18 - antiS); infos[_base].spread = newS > _spread ? newS : _spread; } else { infos[_base].spread = _spread; } } function _setState( address _base, uint128 _price, uint64 _spread, uint64 _coeff ) internal { TokenInfo storage info = infos[_base]; // NOTE: update spread before setting a new price _updateSpreadForNewPrice(_base, _price, _spread); info.price = _price; info.coeff = _coeff; } function _cloPriceInQuote(address _fromToken, address _toToken) internal view returns (uint256 refPrice, uint256 refTimestamp) { address baseOracle = clOracles[_fromToken].oracle; // NOTE: Only for chains where chainlink oracle is unavailable // if (baseOracle == address(0)) { // return (0, 0); // } require(baseOracle != address(0), "WooracleV2_2: !oracle"); address quoteOracle = clOracles[_toToken].oracle; uint8 quoteDecimal = clOracles[_toToken].decimal; (, int256 rawBaseRefPrice, , uint256 baseUpdatedAt, ) = AggregatorV3Interface(baseOracle).latestRoundData(); (, int256 rawQuoteRefPrice, , uint256 quoteUpdatedAt, ) = AggregatorV3Interface(quoteOracle).latestRoundData(); uint256 baseRefPrice = uint256(rawBaseRefPrice); uint256 quoteRefPrice = uint256(rawQuoteRefPrice); // NOTE: Assume wooracle token decimal is same as chainlink token decimal. uint256 ceoff = uint256(10)**quoteDecimal; refPrice = (baseRefPrice * ceoff) / quoteRefPrice; refTimestamp = baseUpdatedAt >= quoteUpdatedAt ? quoteUpdatedAt : baseUpdatedAt; } /* ----- Zip Related Functions ----- */ function setBase(uint8 _id, address _base) external onlyAdmin { require(getBase(_id) == address(0), "WooracleV2_2: !id_SET_ALREADY"); basesMap[_id] = _base; } function getBase(uint8 _id) public view returns (address) { address[1] memory CONST_BASES = [ // mload // NOTE: Update token address for different chains 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38 // wS ]; return _id < CONST_BASES.length ? CONST_BASES[_id] : basesMap[_id]; } // https://docs.soliditylang.org/en/v0.8.12/contracts.html#fallback-function // prettier-ignore fallback (bytes calldata _input) external onlyAdmin returns (bytes memory _output) { /* 2 bit: 0: post prices, 1: post states, 2: post prices with local timestamp 3: post states with local timestamp 6 bits: length post prices: [price] --> base token: 8 bites (1 byte) price data: 32 bits = (27, 5) post states: [states] --> base token: 8 bites (1 byte) price: 32 bits (4 bytes) = (27, 5) k coeff: 16 bits (2 bytes) = (11, 5) s spread: 16 bits (2 bytes) = (11, 5) 4 bytes (32bits): timestamp MAX: 2^32-1 = 4,294,967,295 = Feb 7, 2106 6:28:15 AM (~83 years away) */ uint256 x = _input.length; require(x > 0, "WooracleV2_2: !calldata"); uint8 firstByte = uint8(bytes1(_input[0])); uint8 op = firstByte >> 6; // 11000000 uint8 len = firstByte & 0x3F; // 00111111 if (op == 0 || op == 2) { // post prices list address base; uint128 p; for (uint256 i = 0; i < len; ++i) { base = getBase(uint8(bytes1(_input[1 + i * 5:1 + i * 5 + 1]))); p = _decodePrice(uint32(bytes4(_input[1 + i * 5 + 1:1 + i * 5 + 5]))); // NOTE: update spread before setting a new price _updateSpreadForNewPrice(base, p); infos[base].price = p; } timestamp = (op == 0) ? block.timestamp : uint256(uint32(bytes4(_input[1 + len * 5:1 + len * 5 + 4]))); } else if (op == 1 || op == 3) { // post states list address base; uint128 p; uint64 s; uint64 k; for (uint256 i = 0; i < len; ++i) { base = getBase(uint8(bytes1(_input[1 + i * 9:1 + i * 9 + 1]))); p = _decodePrice(uint32(bytes4(_input[1 + i * 9 + 1:1 + i * 9 + 5]))); s = _decodeKS(uint16(bytes2(_input[1 + i * 9 + 5:1 + i * 9 + 7]))); k = _decodeKS(uint16(bytes2(_input[1 + i * 9 + 7:1 + i * 9 + 9]))); _setState(base, p, s, k); } timestamp = (op == 1) ? block.timestamp : uint256(uint32(bytes4(_input[1 + len * 9:1 + len * 9 + 4]))); } else { revert("WooracleV2_2: !op"); } } function _decodePrice(uint32 b) internal pure returns (uint128) { return uint128((b >> 5) * (10**(b & 0x1F))); // 0x1F = 00011111 } function _decodeKS(uint16 b) internal pure returns (uint64) { return uint64((b >> 5) * (10**(b & 0x1F))); } function inCaseTokenGotStuck(address stuckToken) external onlyAdmin { if (stuckToken == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) { TransferHelper.safeTransferETH(owner(), address(this).balance); } else { uint256 amount = IERC20(stuckToken).balanceOf(address(this)); TransferHelper.safeTransfer(stuckToken, owner(), amount); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF'); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); } }
// SPDX-License-Identifier: MIT pragma solidity =0.8.14; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); /// getRoundData and latestRoundData should both raise "No data present" /// if they do not have data to report, instead of returning unset values /// which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT pragma solidity =0.8.14; /* ░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗ ░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║ ░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║ ░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║ ░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║ ░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝ * * MIT License * =========== * * Copyright (c) 2020 WooTrade * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /// @title The oracle V2.2 interface by Woo.Network. /// @notice update and posted the latest price info by Woo. interface IWooracleV2_2 { struct State { uint128 price; uint64 spread; uint64 coeff; bool woFeasible; } // /// @notice Wooracle spread value // function woSpread(address base) external view returns (uint64); // /// @notice Wooracle coeff value // function woCoeff(address base) external view returns (uint64); // /// @notice Wooracle state for the specified base token // function woState(address base) external view returns (State memory); // /// @notice Chainlink oracle address for the specified base token // function cloAddress(address base) external view returns (address clo); // /// @notice Wooracle price of the base token // function woPrice(address base) external view returns (uint128 price, uint256 timestamp); /// @notice ChainLink price of the base token / quote token function cloPrice(address base) external view returns (uint256 price, uint256 timestamp); /// @notice Returns Woooracle price if available, otherwise fallback to ChainLink function price(address base) external view returns (uint256 priceNow, bool feasible); /// @notice Updates the Wooracle price for the specified base token function postPrice(address base, uint128 _price) external; /// Updates the state of the given base token. /// @param _base baseToken address /// @param _price the new prices /// @param _spread the new spreads /// @param _coeff the new slippage coefficent function postState( address _base, uint128 _price, uint64 _spread, uint64 _coeff ) external; /// @notice State of the specified base token. function state(address base) external view returns (State memory); /// @notice The price decimal for the specified base token (e.g. 8) function decimals(address base) external view returns (uint8); /// @notice The quote token for calculating WooPP query price function quoteToken() external view returns (address); /// @notice last updated timestamp function timestamp() external view returns (uint256); /// @notice Flag for Wooracle price feasible function isWoFeasible(address base) external view returns (bool); // /// @notice Flag for account admin // function isAdmin(address account) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"basesMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bound","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"clOracles","outputs":[{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint8","name":"decimal","type":"uint8"},{"internalType":"bool","name":"cloPreferred","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"cloPrice","outputs":[{"internalType":"uint256","name":"refPrice","type":"uint256"},{"internalType":"uint256","name":"refTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"}],"name":"getBase","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stuckToken","type":"address"}],"name":"inCaseTokenGotStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"infos","outputs":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"uint64","name":"spread","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGuardian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"isWoFeasible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"}],"name":"postPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bases","type":"address[]"},{"internalType":"uint128[]","name":"_prices","type":"uint128[]"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postPriceList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint64","name":"_spread","type":"uint64"},{"internalType":"uint64","name":"_coeff","type":"uint64"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint64","name":"_spread","type":"uint64"},{"internalType":"uint64","name":"_coeff","type":"uint64"}],"name":"postState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bases","type":"address[]"},{"internalType":"uint128[]","name":"_prices","type":"uint128[]"},{"internalType":"uint64[]","name":"_spreads","type":"uint64[]"},{"internalType":"uint64[]","name":"_coeffs","type":"uint64[]"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postStateList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"price","outputs":[{"internalType":"uint256","name":"priceOut","type":"uint256"},{"internalType":"bool","name":"feasible","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"priceRanges","outputs":[{"internalType":"uint128","name":"min","type":"uint128"},{"internalType":"uint128","name":"max","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quoteToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"},{"internalType":"address","name":"_base","type":"address"}],"name":"setBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_bound","type":"uint64"}],"name":"setBound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCLOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCloPreferred","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_quote","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"name":"setQuoteToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_min","type":"uint128"},{"internalType":"uint128","name":"_max","type":"uint128"}],"name":"setRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_staleDuration","type":"uint256"}],"name":"setStaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wooPP","type":"address"}],"name":"setWooPP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"state","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2_2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"woState","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2_2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wooPP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001d3362000042565b61012c600655600780546001600160401b031916662386f26fc1000017905562000092565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613e7d80620000a26000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c9a578063f2030e7314610cd0578063f2fde38b14610d7557610292565b8063d736ce7c14610c5b578063e1a4e72a14610c8757610292565b8063cdf8bf90116100bd578063cdf8bf9014610baf578063d449a83214610c22578063d5bade0714610c4857610292565b8063c6ddb64214610afc578063cc6864b114610ba657610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610aa9578063c16116d414610ad6578063c32025a414610ae957610292565b8063aea9107814610a6a578063b80777ea14610a9257610292565b80638da5cb5b14610a1357806399235fd414610a315780639d152ee914610a44578063a4a2a8c514610a5757610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109e5578063715018a6146109f857806371ea920514610a0057610292565b80635ab2566c146109bf5780635bc9f65d146109d257610292565b8063447f3843116101f3578063447f3843146109865780634a502f39146109995780634b0bddd2146109ac57610292565b806331e658a51461090a57806337e257fd1461097357610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c146108c157806328533a6d146108e45780632b8a1c5a146108f757610292565b80631ffabeb814610869578063217a4b701461087c57610292565b80630925d4a3146107e15780630b7841f5146107f65780630c68ba21146108235780631142e75314610856575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b80610316575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6103675760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103b55760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c64617461000000000000000000604482015260640161035e565b6000848460008181106103ca576103ca61346f565b919091013560f881901c925060fe1c9050603f82168115806103ef57508160ff166002145b156105b85760008060005b8360ff16811015610543576104608a8a6104158460056134cd565b61042090600161350a565b9061042c8560056134cd565b61043790600161350a565b61044290600161350a565b9261044f93929190613522565b6104589161354c565b60f81c610d88565b92506104c88a8a6104728460056134cd565b61047d90600161350a565b61048890600161350a565b906104948560056134cd565b61049f90600161350a565b6104aa90600561350a565b926104b793929190613522565b6104c091613594565b60e01c610e08565b91506104d48383610e32565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561053c816135da565b90506103fa565b5060ff8416156105ab57888861055a856005613612565b61056590600161363b565b60ff1690610574866005613612565b61057f90600161363b565b61058a90600461363b565b60ff169261059a93929190613522565b6105a391613594565b60e01c6105ad565b425b600555506107d29050565b8160ff16600114806105cd57508160ff166003145b1561078a5760008060008060005b8560ff168110156107115761060d8c8c6105f68460096134cd565b61060190600161350a565b9061042c8560096134cd565b94506106418c8c61061f8460096134cd565b61062a90600161350a565b61063590600161350a565b906104948560096134cd565b93506106a98c8c6106538460096134cd565b61065e90600161350a565b61066990600561350a565b906106758560096134cd565b61068090600161350a565b61068b90600761350a565b9261069893929190613522565b6106a191613660565b60f01c611074565b92506106f38c8c6106bb8460096134cd565b6106c690600161350a565b6106d190600761350a565b906106dd8560096134cd565b6106e890600161350a565b61068b90600961350a565b915061070185858585611096565b61070a816135da565b90506105db565b508560ff1660011461077b578a8a61072a876009613612565b61073590600161363b565b60ff1690610744886009613612565b61074f90600161363b565b61075a90600461363b565b60ff169261076a93929190613522565b61077391613594565b60e01c61077d565b425b600555506107d292505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f70000000000000000000000000000000604482015260640161035e565b50505050915050805190602001f35b6107f46107ef3660046136ef565b61112b565b005b61080961080436600461372b565b61126b565b604080519283526020830191909152015b60405180910390f35b61084661083136600461372b565b60096020526000908152604090205460ff1681565b604051901515815260200161081a565b6107f461086436600461375e565b61129d565b6107f4610877366004613787565b6112e0565b60045461089c9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161081a565b6108466108cf36600461372b565b60086020526000908152604090205460ff1681565b6107f46108f23660046137be565b61141a565b6107f4610905366004613787565b6114d2565b61091d61091836600461372b565b611530565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff9081169183019190915283830151169181019190915260609182015115159181019190915260800161081a565b61084661098136600461372b565b61164e565b6107f4610994366004613801565b6116a8565b6107f46109a73660046138a9565b611788565b6107f46109ba366004613787565b611924565b61089c6109cd366004613984565b610d88565b6107f46109e036600461372b565b611982565b6107f46109f33660046139a1565b611aa0565b6107f4611c8a565b6107f4610a0e3660046139d4565b611c9e565b60005473ffffffffffffffffffffffffffffffffffffffff1661089c565b6107f4610a3f366004613a28565b611d7f565b6107f4610a52366004613a41565b611e4f565b6107f4610a65366004613ab5565b61209f565b610a7d610a7836600461372b565b6122c4565b6040805192835290151560208301520161081a565b610a9b60055481565b60405190815260200161081a565b600754610abd9067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161081a565b61091d610ae436600461372b565b612568565b6107f4610af7366004613afc565b61266d565b610b6d610b0a36600461372b565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161081a565b610a9b60065481565b610bf9610bbd36600461372b565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff93841681529290911660208301520161081a565b610c36610c3036600461372b565b50600890565b60405160ff909116815260200161081a565b6107f4610c56366004613b1a565b6127fe565b60075461089c9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107f4610c9536600461372b565b612952565b61089c610ca8366004613984565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d3f610cde36600461372b565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff909216602084015215159082015260600161081a565b6107f4610d8336600461372b565b612b35565b604080516020810190915273039e2fb66102314ce7b64ce5ce3e5183bc94ad388152600090600160ff841610610de65760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e01565b808360ff1660018110610dfb57610dfb61346f565b60200201515b9392505050565b6000610e18601f8316600a613c5c565b610e2c906307ffffff600585901c166134cd565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610eae57506fffffffffffffffffffffffffffffffff8316155b80610ecb5750670de0b6b3a76400008267ffffffffffffffff1610155b15610ed65750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610f0a5781610f0c565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f545782610f56565b845b6fffffffffffffffffffffffffffffffff1690506000610f8867ffffffffffffffff8616670de0b6b3a7640000613c6e565b8383610f9c670de0b6b3a7640000806134cd565b610fa691906134cd565b610fb09190613c85565b610fba9190613c85565b9050670de0b6b3a764000081101561106b576000610fe082670de0b6b3a7640000613c6e565b90508567ffffffffffffffff168167ffffffffffffffff1611156110695773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b6000611084601f8316600a613cc0565b610e2c906107ff600585901c166134cd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090206110c6858585612bcf565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361114b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061117c57503360009081526008602052604090205460ff165b806111aa575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6111f65760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6112008383610e32565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061129490849073ffffffffffffffffffffffffffffffffffffffff16612f61565b91509150915091565b6112a561316e565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b3361130060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061133157503360009081526008602052604090205460ff165b8061135f575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6113ab5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166114795760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b6114da61316e565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff7001000000000000000000000000000000008204811694830194909452780100000000000000000000000000000000000000000000000090049092169082015290806115ef856122c4565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610e2c575060065460055461169f919061350a565b42111592915050565b336116c860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806116f957503360009081526008602052604090205460ff165b80611727575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6117735760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b61177f85858585611096565b60055550505050565b336117a860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806117d957503360009081526008602052604090205460ff165b80611807575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6118535760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b8760005b81811015611915576119038b8b838181106118745761187461346f565b9050602002016020810190611889919061372b565b8a8a8481811061189b5761189b61346f565b90506020020160208101906118b09190613cd0565b8989858181106118c2576118c261346f565b90506020020160208101906118d7919061375e565b8888868181106118e9576118e961346f565b90506020020160208101906118fe919061375e565b611096565b8061190d816135da565b915050611857565b50506005555050505050505050565b61192c61316e565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336119a260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806119d357503360009081526008602052604090205460ff165b80611a01575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611a4d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b33611ac060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611af157503360009081526008602052604090205460ff165b80611b1f575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611b6b5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c409190613ceb565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611c9261316e565b611c9c60006131d5565b565b33611cbe60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611cef57503360009081526008602052604090205460ff165b80611d1d575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611d695760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b611d7584848484611096565b5050426005555050565b33611d9f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611dd057503360009081526008602052604090205460ff165b80611dfe575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611e4a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b600655565b33611e6f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611ea057503360009081526008602052604090205460ff165b80611ece575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611f1a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b83828114611f6a5760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c494400000000604482015260640161035e565b60005b8181101561209457611fcb878783818110611f8a57611f8a61346f565b9050602002016020810190611f9f919061372b565b868684818110611fb157611fb161346f565b9050602002016020810190611fc69190613cd0565b610e32565b848482818110611fdd57611fdd61346f565b9050602002016020810190611ff29190613cd0565b600160008989858181106120085761200861346f565b905060200201602081019061201d919061372b565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790558061208c816135da565b915050611f6d565b505060055550505050565b336120bf60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806120f057503360009081526008602052604090205460ff165b8061211e575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b61216a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015612211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122359190613ceb565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161231891889116612f61565b509050600083158015906123385750600654612334908461350a565b4211155b9050600082158015906123d357506007548590670de0b6b3a7640000906123699067ffffffffffffffff1682613d08565b61237d9067ffffffffffffffff16866134cd565b6123879190613c85565b111580156123d35750600754670de0b6b3a7640000906123b19067ffffffffffffffff1682613d31565b6123c59067ffffffffffffffff16856134cd565b6123cf9190613c85565b8511155b905081156123e65784965080955061243d565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff16612433576000612435565b825b965086151595505b851561255e5773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116124f75760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e0000000000000000000000000000604482015260640161035e565b80602001516fffffffffffffffffffffffffffffffff16881061255c5760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d61780000000000000000000000000000604482015260640161035e565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a52845183168852518116948701949094529051909216958401959095528451939493918301911615801590612662575060065460055461265e919061350a565b4211155b151590529392505050565b3361268d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806126be57503360009081526008602052604090205460ff165b806126ec575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6127385760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b600061274383610d88565b73ffffffffffffffffffffffffffffffffffffffff16146127a65760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c5245414459000000604482015260640161035e565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3361281e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061284f57503360009081526008602052604090205460ff165b8061287d575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6128c95760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6128d38282610e32565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560075468010000000000000000900416331461294e57426005555b5050565b3361297260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806129a357503360009081526008602052604090205460ff165b806129d1575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b612a1d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee03612a7957612a76612a7060005473ffffffffffffffffffffffffffffffffffffffff1690565b4761324a565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612ae6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b0a9190613d5d565b905061294e82612b2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b83613319565b612b3d61316e565b73ffffffffffffffffffffffffffffffffffffffff8116612bc65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161035e565b612a76816131d5565b670de0b6b3a76400008167ffffffffffffffff1610612c305760405162461bcd60e51b815260206004820152600860248201527f215f737072656164000000000000000000000000000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612cac57506fffffffffffffffffffffffffffffffff8416155b80612cc95750670de0b6b3a76400008267ffffffffffffffff1610155b15612d4557505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612d795781612d7b565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612dc35782612dc5565b855b6fffffffffffffffffffffffffffffffff1690506000612df767ffffffffffffffff8616670de0b6b3a7640000613c6e565b8383612e0b670de0b6b3a7640000806134cd565b612e1591906134cd565b612e1f9190613c85565b612e299190613c85565b9050670de0b6b3a7640000811015612eeb576000612e4f82670de0b6b3a7640000613c6e565b90508667ffffffffffffffff168167ffffffffffffffff1611612e725786612e74565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905550611069565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612fda5760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c650000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa15801561307b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061309f9190613d90565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156130f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131189190613d90565b50919450909250859150839050600061313288600a613de0565b90508161313f82856134cd565b6131499190613c85565b9b5083861015613159578561315b565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516132819190613def565b60006040518083038185875af1925050503d80600081146132be576040519150601f19603f3d011682016040523d82523d6000602084013e6132c3565b606091505b50509050806133145760405162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015260640161035e565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916133b09190613def565b6000604051808303816000865af19150503d80600081146133ed576040519150601f19603f3d011682016040523d82523d6000602084013e6133f2565b606091505b509150915081801561341c57508051158061341c57508080602001905181019061341c9190613e2a565b6134685760405162461bcd60e51b815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161035e565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135055761350561349e565b500290565b6000821982111561351d5761351d61349e565b500190565b6000808585111561353257600080fd5b8386111561353f57600080fd5b5050820193919092039150565b7fff00000000000000000000000000000000000000000000000000000000000000813581811691600185101561358c5780818660010360031b1b83161692505b505092915050565b7fffffffff00000000000000000000000000000000000000000000000000000000813581811691600485101561358c5760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361360b5761360b61349e565b5060010190565b600060ff821660ff84168160ff04811182151516156136335761363361349e565b029392505050565b600060ff821660ff84168060ff038211156136585761365861349e565b019392505050565b7fffff000000000000000000000000000000000000000000000000000000000000813581811691600285101561358c5760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff811681146136ca57600080fd5b919050565b80356fffffffffffffffffffffffffffffffff811681146136ca57600080fd5b60008060006060848603121561370457600080fd5b61370d846136a6565b925061371b602085016136cf565b9150604084013590509250925092565b60006020828403121561373d57600080fd5b610e01826136a6565b803567ffffffffffffffff811681146136ca57600080fd5b60006020828403121561377057600080fd5b610e0182613746565b8015158114612a7657600080fd5b6000806040838503121561379a57600080fd5b6137a3836136a6565b915060208301356137b381613779565b809150509250929050565b6000806000606084860312156137d357600080fd5b6137dc846136a6565b92506137ea602085016136cf565b91506137f8604085016136cf565b90509250925092565b600080600080600060a0868803121561381957600080fd5b613822866136a6565b9450613830602087016136cf565b935061383e60408701613746565b925061384c60608701613746565b949793965091946080013592915050565b60008083601f84011261386f57600080fd5b50813567ffffffffffffffff81111561388757600080fd5b6020830191508360208260051b85010111156138a257600080fd5b9250929050565b600080600080600080600080600060a08a8c0312156138c757600080fd5b893567ffffffffffffffff808211156138df57600080fd5b6138eb8d838e0161385d565b909b50995060208c013591508082111561390457600080fd5b6139108d838e0161385d565b909950975060408c013591508082111561392957600080fd5b6139358d838e0161385d565b909750955060608c013591508082111561394e57600080fd5b5061395b8c828d0161385d565b9a9d999c50979a9699959894979660800135949350505050565b60ff81168114612a7657600080fd5b60006020828403121561399657600080fd5b8135610e0181613975565b600080604083850312156139b457600080fd5b6139bd836136a6565b91506139cb602084016136a6565b90509250929050565b600080600080608085870312156139ea57600080fd5b6139f3856136a6565b9350613a01602086016136cf565b9250613a0f60408601613746565b9150613a1d60608601613746565b905092959194509250565b600060208284031215613a3a57600080fd5b5035919050565b600080600080600060608688031215613a5957600080fd5b853567ffffffffffffffff80821115613a7157600080fd5b613a7d89838a0161385d565b90975095506020880135915080821115613a9657600080fd5b50613aa38882890161385d565b96999598509660400135949350505050565b600080600060608486031215613aca57600080fd5b613ad3846136a6565b9250613ae1602085016136a6565b91506040840135613af181613779565b809150509250925092565b60008060408385031215613b0f57600080fd5b82356139bd81613975565b60008060408385031215613b2d57600080fd5b613b36836136a6565b91506139cb602084016136cf565b600181815b80851115613b9d57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115613b8357613b8361349e565b80851615613b9057918102915b93841c9390800290613b49565b509250929050565b600082613bb457506001610e2c565b81613bc157506000610e2c565b8160018114613bd75760028114613be157613bfd565b6001915050610e2c565b60ff841115613bf257613bf261349e565b50506001821b610e2c565b5060208310610133831016604e8410600b8410161715613c20575081810a610e2c565b613c2a8383613b44565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156136335761363361349e565b6000610e0163ffffffff841683613ba5565b600082821015613c8057613c8061349e565b500390565b600082613cbb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610e0161ffff841683613ba5565b600060208284031215613ce257600080fd5b610e01826136cf565b600060208284031215613cfd57600080fd5b8151610e0181613975565b600067ffffffffffffffff83811690831681811015613d2957613d2961349e565b039392505050565b600067ffffffffffffffff808316818516808303821115613d5457613d5461349e565b01949350505050565b600060208284031215613d6f57600080fd5b5051919050565b805169ffffffffffffffffffff811681146136ca57600080fd5b600080600080600060a08688031215613da857600080fd5b613db186613d76565b9450602086015193506040860151925060608601519150613dd460808701613d76565b90509295509295909350565b6000610e0160ff841683613ba5565b6000825160005b81811015613e105760208186018101518583015201613df6565b81811115613e1f576000828501525b509190910192915050565b600060208284031215613e3c57600080fd5b8151610e018161377956fea26469706673582212204f3c3700b9893096f6ab0f451ebbb9ec700002d9dee50b35d9e8cc32d03a033e64736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c9a578063f2030e7314610cd0578063f2fde38b14610d7557610292565b8063d736ce7c14610c5b578063e1a4e72a14610c8757610292565b8063cdf8bf90116100bd578063cdf8bf9014610baf578063d449a83214610c22578063d5bade0714610c4857610292565b8063c6ddb64214610afc578063cc6864b114610ba657610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610aa9578063c16116d414610ad6578063c32025a414610ae957610292565b8063aea9107814610a6a578063b80777ea14610a9257610292565b80638da5cb5b14610a1357806399235fd414610a315780639d152ee914610a44578063a4a2a8c514610a5757610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109e5578063715018a6146109f857806371ea920514610a0057610292565b80635ab2566c146109bf5780635bc9f65d146109d257610292565b8063447f3843116101f3578063447f3843146109865780634a502f39146109995780634b0bddd2146109ac57610292565b806331e658a51461090a57806337e257fd1461097357610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c146108c157806328533a6d146108e45780632b8a1c5a146108f757610292565b80631ffabeb814610869578063217a4b701461087c57610292565b80630925d4a3146107e15780630b7841f5146107f65780630c68ba21146108235780631142e75314610856575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b80610316575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6103675760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103b55760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c64617461000000000000000000604482015260640161035e565b6000848460008181106103ca576103ca61346f565b919091013560f881901c925060fe1c9050603f82168115806103ef57508160ff166002145b156105b85760008060005b8360ff16811015610543576104608a8a6104158460056134cd565b61042090600161350a565b9061042c8560056134cd565b61043790600161350a565b61044290600161350a565b9261044f93929190613522565b6104589161354c565b60f81c610d88565b92506104c88a8a6104728460056134cd565b61047d90600161350a565b61048890600161350a565b906104948560056134cd565b61049f90600161350a565b6104aa90600561350a565b926104b793929190613522565b6104c091613594565b60e01c610e08565b91506104d48383610e32565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561053c816135da565b90506103fa565b5060ff8416156105ab57888861055a856005613612565b61056590600161363b565b60ff1690610574866005613612565b61057f90600161363b565b61058a90600461363b565b60ff169261059a93929190613522565b6105a391613594565b60e01c6105ad565b425b600555506107d29050565b8160ff16600114806105cd57508160ff166003145b1561078a5760008060008060005b8560ff168110156107115761060d8c8c6105f68460096134cd565b61060190600161350a565b9061042c8560096134cd565b94506106418c8c61061f8460096134cd565b61062a90600161350a565b61063590600161350a565b906104948560096134cd565b93506106a98c8c6106538460096134cd565b61065e90600161350a565b61066990600561350a565b906106758560096134cd565b61068090600161350a565b61068b90600761350a565b9261069893929190613522565b6106a191613660565b60f01c611074565b92506106f38c8c6106bb8460096134cd565b6106c690600161350a565b6106d190600761350a565b906106dd8560096134cd565b6106e890600161350a565b61068b90600961350a565b915061070185858585611096565b61070a816135da565b90506105db565b508560ff1660011461077b578a8a61072a876009613612565b61073590600161363b565b60ff1690610744886009613612565b61074f90600161363b565b61075a90600461363b565b60ff169261076a93929190613522565b61077391613594565b60e01c61077d565b425b600555506107d292505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f70000000000000000000000000000000604482015260640161035e565b50505050915050805190602001f35b6107f46107ef3660046136ef565b61112b565b005b61080961080436600461372b565b61126b565b604080519283526020830191909152015b60405180910390f35b61084661083136600461372b565b60096020526000908152604090205460ff1681565b604051901515815260200161081a565b6107f461086436600461375e565b61129d565b6107f4610877366004613787565b6112e0565b60045461089c9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161081a565b6108466108cf36600461372b565b60086020526000908152604090205460ff1681565b6107f46108f23660046137be565b61141a565b6107f4610905366004613787565b6114d2565b61091d61091836600461372b565b611530565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff9081169183019190915283830151169181019190915260609182015115159181019190915260800161081a565b61084661098136600461372b565b61164e565b6107f4610994366004613801565b6116a8565b6107f46109a73660046138a9565b611788565b6107f46109ba366004613787565b611924565b61089c6109cd366004613984565b610d88565b6107f46109e036600461372b565b611982565b6107f46109f33660046139a1565b611aa0565b6107f4611c8a565b6107f4610a0e3660046139d4565b611c9e565b60005473ffffffffffffffffffffffffffffffffffffffff1661089c565b6107f4610a3f366004613a28565b611d7f565b6107f4610a52366004613a41565b611e4f565b6107f4610a65366004613ab5565b61209f565b610a7d610a7836600461372b565b6122c4565b6040805192835290151560208301520161081a565b610a9b60055481565b60405190815260200161081a565b600754610abd9067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161081a565b61091d610ae436600461372b565b612568565b6107f4610af7366004613afc565b61266d565b610b6d610b0a36600461372b565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161081a565b610a9b60065481565b610bf9610bbd36600461372b565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff93841681529290911660208301520161081a565b610c36610c3036600461372b565b50600890565b60405160ff909116815260200161081a565b6107f4610c56366004613b1a565b6127fe565b60075461089c9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107f4610c9536600461372b565b612952565b61089c610ca8366004613984565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d3f610cde36600461372b565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff909216602084015215159082015260600161081a565b6107f4610d8336600461372b565b612b35565b604080516020810190915273039e2fb66102314ce7b64ce5ce3e5183bc94ad388152600090600160ff841610610de65760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e01565b808360ff1660018110610dfb57610dfb61346f565b60200201515b9392505050565b6000610e18601f8316600a613c5c565b610e2c906307ffffff600585901c166134cd565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610eae57506fffffffffffffffffffffffffffffffff8316155b80610ecb5750670de0b6b3a76400008267ffffffffffffffff1610155b15610ed65750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610f0a5781610f0c565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f545782610f56565b845b6fffffffffffffffffffffffffffffffff1690506000610f8867ffffffffffffffff8616670de0b6b3a7640000613c6e565b8383610f9c670de0b6b3a7640000806134cd565b610fa691906134cd565b610fb09190613c85565b610fba9190613c85565b9050670de0b6b3a764000081101561106b576000610fe082670de0b6b3a7640000613c6e565b90508567ffffffffffffffff168167ffffffffffffffff1611156110695773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b6000611084601f8316600a613cc0565b610e2c906107ff600585901c166134cd565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090206110c6858585612bcf565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361114b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061117c57503360009081526008602052604090205460ff165b806111aa575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6111f65760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6112008383610e32565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061129490849073ffffffffffffffffffffffffffffffffffffffff16612f61565b91509150915091565b6112a561316e565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b3361130060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061133157503360009081526008602052604090205460ff165b8061135f575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6113ab5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166114795760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b6114da61316e565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff7001000000000000000000000000000000008204811694830194909452780100000000000000000000000000000000000000000000000090049092169082015290806115ef856122c4565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610e2c575060065460055461169f919061350a565b42111592915050565b336116c860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806116f957503360009081526008602052604090205460ff165b80611727575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6117735760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b61177f85858585611096565b60055550505050565b336117a860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806117d957503360009081526008602052604090205460ff165b80611807575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6118535760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b8760005b81811015611915576119038b8b838181106118745761187461346f565b9050602002016020810190611889919061372b565b8a8a8481811061189b5761189b61346f565b90506020020160208101906118b09190613cd0565b8989858181106118c2576118c261346f565b90506020020160208101906118d7919061375e565b8888868181106118e9576118e961346f565b90506020020160208101906118fe919061375e565b611096565b8061190d816135da565b915050611857565b50506005555050505050505050565b61192c61316e565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336119a260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806119d357503360009081526008602052604090205460ff165b80611a01575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611a4d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b33611ac060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611af157503360009081526008602052604090205460ff165b80611b1f575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611b6b5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c409190613ceb565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611c9261316e565b611c9c60006131d5565b565b33611cbe60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611cef57503360009081526008602052604090205460ff165b80611d1d575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611d695760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b611d7584848484611096565b5050426005555050565b33611d9f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611dd057503360009081526008602052604090205460ff165b80611dfe575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611e4a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b600655565b33611e6f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611ea057503360009081526008602052604090205460ff165b80611ece575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b611f1a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b83828114611f6a5760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c494400000000604482015260640161035e565b60005b8181101561209457611fcb878783818110611f8a57611f8a61346f565b9050602002016020810190611f9f919061372b565b868684818110611fb157611fb161346f565b9050602002016020810190611fc69190613cd0565b610e32565b848482818110611fdd57611fdd61346f565b9050602002016020810190611ff29190613cd0565b600160008989858181106120085761200861346f565b905060200201602081019061201d919061372b565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790558061208c816135da565b915050611f6d565b505060055550505050565b336120bf60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806120f057503360009081526008602052604090205460ff165b8061211e575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b61216a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015612211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122359190613ceb565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161231891889116612f61565b509050600083158015906123385750600654612334908461350a565b4211155b9050600082158015906123d357506007548590670de0b6b3a7640000906123699067ffffffffffffffff1682613d08565b61237d9067ffffffffffffffff16866134cd565b6123879190613c85565b111580156123d35750600754670de0b6b3a7640000906123b19067ffffffffffffffff1682613d31565b6123c59067ffffffffffffffff16856134cd565b6123cf9190613c85565b8511155b905081156123e65784965080955061243d565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff16612433576000612435565b825b965086151595505b851561255e5773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116124f75760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e0000000000000000000000000000604482015260640161035e565b80602001516fffffffffffffffffffffffffffffffff16881061255c5760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d61780000000000000000000000000000604482015260640161035e565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a52845183168852518116948701949094529051909216958401959095528451939493918301911615801590612662575060065460055461265e919061350a565b4211155b151590529392505050565b3361268d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806126be57503360009081526008602052604090205460ff165b806126ec575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6127385760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b600061274383610d88565b73ffffffffffffffffffffffffffffffffffffffff16146127a65760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c5245414459000000604482015260640161035e565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3361281e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061284f57503360009081526008602052604090205460ff165b8061287d575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6128c95760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b6128d38282610e32565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560075468010000000000000000900416331461294e57426005555b5050565b3361297260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806129a357503360009081526008602052604090205460ff165b806129d1575060075468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b612a1d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee03612a7957612a76612a7060005473ffffffffffffffffffffffffffffffffffffffff1690565b4761324a565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612ae6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b0a9190613d5d565b905061294e82612b2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b83613319565b612b3d61316e565b73ffffffffffffffffffffffffffffffffffffffff8116612bc65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161035e565b612a76816131d5565b670de0b6b3a76400008167ffffffffffffffff1610612c305760405162461bcd60e51b815260206004820152600860248201527f215f737072656164000000000000000000000000000000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612cac57506fffffffffffffffffffffffffffffffff8416155b80612cc95750670de0b6b3a76400008267ffffffffffffffff1610155b15612d4557505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612d795781612d7b565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612dc35782612dc5565b855b6fffffffffffffffffffffffffffffffff1690506000612df767ffffffffffffffff8616670de0b6b3a7640000613c6e565b8383612e0b670de0b6b3a7640000806134cd565b612e1591906134cd565b612e1f9190613c85565b612e299190613c85565b9050670de0b6b3a7640000811015612eeb576000612e4f82670de0b6b3a7640000613c6e565b90508667ffffffffffffffff168167ffffffffffffffff1611612e725786612e74565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905550611069565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612fda5760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c650000000000000000000000604482015260640161035e565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa15801561307b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061309f9190613d90565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156130f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131189190613d90565b50919450909250859150839050600061313288600a613de0565b90508161313f82856134cd565b6131499190613c85565b9b5083861015613159578561315b565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516132819190613def565b60006040518083038185875af1925050503d80600081146132be576040519150601f19603f3d011682016040523d82523d6000602084013e6132c3565b606091505b50509050806133145760405162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015260640161035e565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916133b09190613def565b6000604051808303816000865af19150503d80600081146133ed576040519150601f19603f3d011682016040523d82523d6000602084013e6133f2565b606091505b509150915081801561341c57508051158061341c57508080602001905181019061341c9190613e2a565b6134685760405162461bcd60e51b815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161035e565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135055761350561349e565b500290565b6000821982111561351d5761351d61349e565b500190565b6000808585111561353257600080fd5b8386111561353f57600080fd5b5050820193919092039150565b7fff00000000000000000000000000000000000000000000000000000000000000813581811691600185101561358c5780818660010360031b1b83161692505b505092915050565b7fffffffff00000000000000000000000000000000000000000000000000000000813581811691600485101561358c5760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361360b5761360b61349e565b5060010190565b600060ff821660ff84168160ff04811182151516156136335761363361349e565b029392505050565b600060ff821660ff84168060ff038211156136585761365861349e565b019392505050565b7fffff000000000000000000000000000000000000000000000000000000000000813581811691600285101561358c5760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff811681146136ca57600080fd5b919050565b80356fffffffffffffffffffffffffffffffff811681146136ca57600080fd5b60008060006060848603121561370457600080fd5b61370d846136a6565b925061371b602085016136cf565b9150604084013590509250925092565b60006020828403121561373d57600080fd5b610e01826136a6565b803567ffffffffffffffff811681146136ca57600080fd5b60006020828403121561377057600080fd5b610e0182613746565b8015158114612a7657600080fd5b6000806040838503121561379a57600080fd5b6137a3836136a6565b915060208301356137b381613779565b809150509250929050565b6000806000606084860312156137d357600080fd5b6137dc846136a6565b92506137ea602085016136cf565b91506137f8604085016136cf565b90509250925092565b600080600080600060a0868803121561381957600080fd5b613822866136a6565b9450613830602087016136cf565b935061383e60408701613746565b925061384c60608701613746565b949793965091946080013592915050565b60008083601f84011261386f57600080fd5b50813567ffffffffffffffff81111561388757600080fd5b6020830191508360208260051b85010111156138a257600080fd5b9250929050565b600080600080600080600080600060a08a8c0312156138c757600080fd5b893567ffffffffffffffff808211156138df57600080fd5b6138eb8d838e0161385d565b909b50995060208c013591508082111561390457600080fd5b6139108d838e0161385d565b909950975060408c013591508082111561392957600080fd5b6139358d838e0161385d565b909750955060608c013591508082111561394e57600080fd5b5061395b8c828d0161385d565b9a9d999c50979a9699959894979660800135949350505050565b60ff81168114612a7657600080fd5b60006020828403121561399657600080fd5b8135610e0181613975565b600080604083850312156139b457600080fd5b6139bd836136a6565b91506139cb602084016136a6565b90509250929050565b600080600080608085870312156139ea57600080fd5b6139f3856136a6565b9350613a01602086016136cf565b9250613a0f60408601613746565b9150613a1d60608601613746565b905092959194509250565b600060208284031215613a3a57600080fd5b5035919050565b600080600080600060608688031215613a5957600080fd5b853567ffffffffffffffff80821115613a7157600080fd5b613a7d89838a0161385d565b90975095506020880135915080821115613a9657600080fd5b50613aa38882890161385d565b96999598509660400135949350505050565b600080600060608486031215613aca57600080fd5b613ad3846136a6565b9250613ae1602085016136a6565b91506040840135613af181613779565b809150509250925092565b60008060408385031215613b0f57600080fd5b82356139bd81613975565b60008060408385031215613b2d57600080fd5b613b36836136a6565b91506139cb602084016136cf565b600181815b80851115613b9d57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115613b8357613b8361349e565b80851615613b9057918102915b93841c9390800290613b49565b509250929050565b600082613bb457506001610e2c565b81613bc157506000610e2c565b8160018114613bd75760028114613be157613bfd565b6001915050610e2c565b60ff841115613bf257613bf261349e565b50506001821b610e2c565b5060208310610133831016604e8410600b8410161715613c20575081810a610e2c565b613c2a8383613b44565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156136335761363361349e565b6000610e0163ffffffff841683613ba5565b600082821015613c8057613c8061349e565b500390565b600082613cbb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610e0161ffff841683613ba5565b600060208284031215613ce257600080fd5b610e01826136cf565b600060208284031215613cfd57600080fd5b8151610e0181613975565b600067ffffffffffffffff83811690831681811015613d2957613d2961349e565b039392505050565b600067ffffffffffffffff808316818516808303821115613d5457613d5461349e565b01949350505050565b600060208284031215613d6f57600080fd5b5051919050565b805169ffffffffffffffffffff811681146136ca57600080fd5b600080600080600060a08688031215613da857600080fd5b613db186613d76565b9450602086015193506040860151925060608601519150613dd460808701613d76565b90509295509295909350565b6000610e0160ff841683613ba5565b6000825160005b81811015613e105760208186018101518583015201613df6565b81811115613e1f576000828501525b509190910192915050565b600060208284031215613e3c57600080fd5b8151610e018161377956fea26469706673582212204f3c3700b9893096f6ab0f451ebbb9ec700002d9dee50b35d9e8cc32d03a033e64736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.