Overview
MNT Balance
MNT Value
$0.00Latest 25 from a total of 140 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 0x81010029 | 90641027 | 9 secs ago | IN | 0 MNT | 0.00257522 | ||||
| 0xc300008d | 90641017 | 29 secs ago | IN | 0 MNT | 0.00457901 | ||||
| 0xc300008d | 90640973 | 1 min ago | IN | 0 MNT | 0.00458005 | ||||
| 0xc4010029 | 90640968 | 2 mins ago | IN | 0 MNT | 0.00529781 | ||||
| 0xc300008d | 90640950 | 2 mins ago | IN | 0 MNT | 0.0057425 | ||||
| 0xc3040099 | 90640934 | 3 mins ago | IN | 0 MNT | 0.00455644 | ||||
| 0xc1040099 | 90640926 | 3 mins ago | IN | 0 MNT | 0.00290565 | ||||
| 0x8300008d | 90640876 | 5 mins ago | IN | 0 MNT | 0.00397662 | ||||
| 0xc300008d | 90640834 | 6 mins ago | IN | 0 MNT | 0.00457235 | ||||
| 0xc1040099 | 90640830 | 6 mins ago | IN | 0 MNT | 0.00356183 | ||||
| 0xc200008d | 90640830 | 6 mins ago | IN | 0 MNT | 0.00478813 | ||||
| 0x8400008d | 90640815 | 7 mins ago | IN | 0 MNT | 0.00455571 | ||||
| 0xc300008e | 90640811 | 7 mins ago | IN | 0 MNT | 0.01477251 | ||||
| 0xc300008d | 90640810 | 7 mins ago | IN | 0 MNT | 0.00456606 | ||||
| 0xc300008d | 90640810 | 7 mins ago | IN | 0 MNT | 0.00456479 | ||||
| 0xc300008d | 90640809 | 7 mins ago | IN | 0 MNT | 0.00435176 | ||||
| 0xc401002a | 90640809 | 7 mins ago | IN | 0 MNT | 0.00532537 | ||||
| 0xc101002a | 90640769 | 8 mins ago | IN | 0 MNT | 0.00413399 | ||||
| 0xc300008d | 90640756 | 9 mins ago | IN | 0 MNT | 0.00941667 | ||||
| 0x8300008d | 90640748 | 9 mins ago | IN | 0 MNT | 0.00397216 | ||||
| 0xc300008d | 90640728 | 10 mins ago | IN | 0 MNT | 0.00456588 | ||||
| 0x8101002a | 90640716 | 10 mins ago | IN | 0 MNT | 0.00256369 | ||||
| 0x8300008d | 90640677 | 11 mins ago | IN | 0 MNT | 0.00404145 | ||||
| 0xc401002a | 90640657 | 12 mins ago | IN | 0 MNT | 0.00529404 | ||||
| 0xc1010029 | 90640623 | 13 mins ago | IN | 0 MNT | 0.00334324 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
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], "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[3] memory CONST_BASES = [
// mload
// NOTE: Update token address for different chains
0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111, // WETH
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8, // WMNT
0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9 // USDC
];
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
Contract ABI
API[{"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
60806040523480156200001157600080fd5b506200001d3362000042565b61012c600655600780546001600160401b031916662386f26fc1000017905562000092565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613c2e80620000a26000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c6c578063f2030e7314610ca2578063f2fde38b14610d4757610292565b8063d736ce7c14610c2d578063e1a4e72a14610c5957610292565b8063cdf8bf90116100bd578063cdf8bf9014610b81578063d449a83214610bf4578063d5bade0714610c1a57610292565b8063c6ddb64214610ace578063cc6864b114610b7857610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610a7b578063c16116d414610aa8578063c32025a414610abb57610292565b8063aea9107814610a3c578063b80777ea14610a6457610292565b80638da5cb5b146109e557806399235fd414610a035780639d152ee914610a16578063a4a2a8c514610a2957610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109b7578063715018a6146109ca57806371ea9205146109d257610292565b80635ab2566c146109915780635bc9f65d146109a457610292565b8063447f3843116101f3578063447f3843146109585780634a502f391461096b5780634b0bddd21461097e57610292565b806331e658a5146108dc57806337e257fd1461094557610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c1461089357806328533a6d146108b65780632b8a1c5a146108c957610292565b80631ffabeb81461083b578063217a4b701461084e57610292565b80630925d4a3146107b35780630b7841f5146107c85780630c68ba21146107f55780631142e75314610828575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b6103395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103875760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c646174610000000000000000006044820152606401610330565b60008484600081811061039c5761039c613220565b919091013560f881901c925060fe1c9050603f82168115806103c157508160ff166002145b1561058a5760008060005b8360ff16811015610515576104328a8a6103e784600561327e565b6103f29060016132bb565b906103fe85600561327e565b6104099060016132bb565b6104149060016132bb565b92610421939291906132d3565b61042a916132fd565b60f81c610d5a565b925061049a8a8a61044484600561327e565b61044f9060016132bb565b61045a9060016132bb565b9061046685600561327e565b6104719060016132bb565b61047c9060056132bb565b92610489939291906132d3565b61049291613345565b60e01c610e0f565b91506104a68383610e39565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561050e8161338b565b90506103cc565b5060ff84161561057d57888861052c8560056133c3565b6105379060016133ec565b60ff16906105468660056133c3565b6105519060016133ec565b61055c9060046133ec565b60ff169261056c939291906132d3565b61057591613345565b60e01c61057f565b425b600555506107a49050565b8160ff166001148061059f57508160ff166003145b1561075c5760008060008060005b8560ff168110156106e3576105df8c8c6105c884600961327e565b6105d39060016132bb565b906103fe85600961327e565b94506106138c8c6105f184600961327e565b6105fc9060016132bb565b6106079060016132bb565b9061046685600961327e565b935061067b8c8c61062584600961327e565b6106309060016132bb565b61063b9060056132bb565b9061064785600961327e565b6106529060016132bb565b61065d9060076132bb565b9261066a939291906132d3565b61067391613411565b60f01c61107b565b92506106c58c8c61068d84600961327e565b6106989060016132bb565b6106a39060076132bb565b906106af85600961327e565b6106ba9060016132bb565b61065d9060096132bb565b91506106d38585858561109d565b6106dc8161338b565b90506105ad565b508560ff1660011461074d578a8a6106fc8760096133c3565b6107079060016133ec565b60ff16906107168860096133c3565b6107219060016133ec565b61072c9060046133ec565b60ff169261073c939291906132d3565b61074591613345565b60e01c61074f565b425b600555506107a492505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f700000000000000000000000000000006044820152606401610330565b50505050915050805190602001f35b6107c66107c13660046134a0565b611132565b005b6107db6107d63660046134dc565b611244565b604080519283526020830191909152015b60405180910390f35b6108186108033660046134dc565b60096020526000908152604090205460ff1681565b60405190151581526020016107ec565b6107c661083636600461350f565b611276565b6107c6610849366004613538565b6112b9565b60045461086e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016107ec565b6108186108a13660046134dc565b60086020526000908152604090205460ff1681565b6107c66108c436600461356f565b6113c5565b6107c66108d7366004613538565b61147d565b6108ef6108ea3660046134dc565b6114db565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff908116918301919091528383015116918101919091526060918201511515918101919091526080016107ec565b6108186109533660046134dc565b6115f9565b6107c66109663660046135b2565b611653565b6107c661097936600461365a565b611705565b6107c661098c366004613538565b611873565b61086e61099f366004613735565b610d5a565b6107c66109b23660046134dc565b6118d1565b6107c66109c5366004613752565b6119c1565b6107c6611b7d565b6107c66109e0366004613785565b611b91565b60005473ffffffffffffffffffffffffffffffffffffffff1661086e565b6107c6610a113660046137d9565b611c44565b6107c6610a243660046137f2565b611ce6565b6107c6610a37366004613866565b611f08565b610a4f610a4a3660046134dc565b6120ff565b604080519283529015156020830152016107ec565b610a6d60055481565b6040519081526020016107ec565b600754610a8f9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016107ec565b6108ef610ab63660046134dc565b6123a3565b6107c6610ac93660046138ad565b6124a8565b610b3f610adc3660046134dc565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff92831660208501529116908201526060016107ec565b610a6d60065481565b610bcb610b8f3660046134dc565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff9384168152929091166020830152016107ec565b610c08610c023660046134dc565b50600890565b60405160ff90911681526020016107ec565b6107c6610c283660046138cb565b61260b565b60075461086e9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107c6610c673660046134dc565b612731565b61086e610c7a366004613735565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d11610cb03660046134dc565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff90921660208401521515908201526060016107ec565b6107c6610d553660046134dc565b6128e6565b6040805160608101825273deaddeaddeaddeaddeaddeaddeaddeaddead111181527378c1b0c915c4faa5fffa6cabf0219da63d7f4cb860208201527309bc4e0d864854c6afb6eb9a9cdf58ac190d0df991810191909152600090600360ff841610610ded5760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e08565b808360ff1660038110610e0257610e02613220565b60200201515b9392505050565b6000610e1f601f8316600a613a0d565b610e33906307ffffff600585901c1661327e565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610eb557506fffffffffffffffffffffffffffffffff8316155b80610ed25750670de0b6b3a76400008267ffffffffffffffff1610155b15610edd5750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610f115781610f13565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f5b5782610f5d565b845b6fffffffffffffffffffffffffffffffff1690506000610f8f67ffffffffffffffff8616670de0b6b3a7640000613a1f565b8383610fa3670de0b6b3a76400008061327e565b610fad919061327e565b610fb79190613a36565b610fc19190613a36565b9050670de0b6b3a7640000811015611072576000610fe782670de0b6b3a7640000613a1f565b90508567ffffffffffffffff168167ffffffffffffffff1611156110705773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b600061108b601f8316600a613a71565b610e33906107ff600585901c1661327e565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090206110cd858585612980565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361115260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061118357503360009081526008602052604090205460ff165b6111cf5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6111d98383610e39565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061126d90849073ffffffffffffffffffffffffffffffffffffffff16612d12565b91509150915091565b61127e612f1f565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b336112d960005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061130a57503360009081526008602052604090205460ff165b6113565760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166114245760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e0000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b611485612f1f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff70010000000000000000000000000000000082048116948301949094527801000000000000000000000000000000000000000000000000900490921690820152908061159a856120ff565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610e33575060065460055461164a91906132bb565b42111592915050565b3361167360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806116a457503360009081526008602052604090205460ff165b6116f05760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6116fc8585858561109d565b60055550505050565b3361172560005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061175657503360009081526008602052604090205460ff165b6117a25760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b8760005b81811015611864576118528b8b838181106117c3576117c3613220565b90506020020160208101906117d891906134dc565b8a8a848181106117ea576117ea613220565b90506020020160208101906117ff9190613a81565b89898581811061181157611811613220565b9050602002016020810190611826919061350f565b88888681811061183857611838613220565b905060200201602081019061184d919061350f565b61109d565b8061185c8161338b565b9150506117a6565b50506005555050505050505050565b61187b612f1f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336118f160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061192257503360009081526008602052604090205460ff165b61196e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b336119e160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611a1257503360009081526008602052604090205460ff165b611a5e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b339190613a9c565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611b85612f1f565b611b8f6000612f86565b565b33611bb160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611be257503360009081526008602052604090205460ff165b611c2e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b611c3a8484848461109d565b5050426005555050565b33611c6460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611c9557503360009081526008602052604090205460ff165b611ce15760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600655565b33611d0660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611d3757503360009081526008602052604090205460ff165b611d835760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b83828114611dd35760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c4944000000006044820152606401610330565b60005b81811015611efd57611e34878783818110611df357611df3613220565b9050602002016020810190611e0891906134dc565b868684818110611e1a57611e1a613220565b9050602002016020810190611e2f9190613a81565b610e39565b848482818110611e4657611e46613220565b9050602002016020810190611e5b9190613a81565b60016000898985818110611e7157611e71613220565b9050602002016020810190611e8691906134dc565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905580611ef58161338b565b915050611dd6565b505060055550505050565b33611f2860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611f5957503360009081526008602052604090205460ff165b611fa55760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa15801561204c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120709190613a9c565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161215391889116612d12565b50905060008315801590612173575060065461216f90846132bb565b4211155b90506000821580159061220e57506007548590670de0b6b3a7640000906121a49067ffffffffffffffff1682613ab9565b6121b89067ffffffffffffffff168661327e565b6121c29190613a36565b1115801561220e5750600754670de0b6b3a7640000906121ec9067ffffffffffffffff1682613ae2565b6122009067ffffffffffffffff168561327e565b61220a9190613a36565b8511155b9050811561222157849650809550612278565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff1661226e576000612270565b825b965086151595505b85156123995773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116123325760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e00000000000000000000000000006044820152606401610330565b80602001516fffffffffffffffffffffffffffffffff1688106123975760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d617800000000000000000000000000006044820152606401610330565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a5284518316885251811694870194909452905190921695840195909552845193949391830191161580159061249d575060065460055461249991906132bb565b4211155b151590529392505050565b336124c860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806124f957503360009081526008602052604090205460ff165b6125455760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600061255083610d5a565b73ffffffffffffffffffffffffffffffffffffffff16146125b35760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c52454144590000006044820152606401610330565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3361262b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061265c57503360009081526008602052604090205460ff165b6126a85760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6126b28282610e39565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560075468010000000000000000900416331461272d57426005555b5050565b3361275160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061278257503360009081526008602052604090205460ff165b6127ce5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0361282a5761282761282160005473ffffffffffffffffffffffffffffffffffffffff1690565b47612ffb565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128bb9190613b0e565b905061272d826128e060005473ffffffffffffffffffffffffffffffffffffffff1690565b836130ca565b6128ee612f1f565b73ffffffffffffffffffffffffffffffffffffffff81166129775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b61282781612f86565b670de0b6b3a76400008167ffffffffffffffff16106129e15760405162461bcd60e51b815260206004820152600860248201527f215f7370726561640000000000000000000000000000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612a5d57506fffffffffffffffffffffffffffffffff8416155b80612a7a5750670de0b6b3a76400008267ffffffffffffffff1610155b15612af657505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612b2a5781612b2c565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612b745782612b76565b855b6fffffffffffffffffffffffffffffffff1690506000612ba867ffffffffffffffff8616670de0b6b3a7640000613a1f565b8383612bbc670de0b6b3a76400008061327e565b612bc6919061327e565b612bd09190613a36565b612bda9190613a36565b9050670de0b6b3a7640000811015612c9c576000612c0082670de0b6b3a7640000613a1f565b90508667ffffffffffffffff168167ffffffffffffffff1611612c235786612c25565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905550611070565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612d8b5760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c6500000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015612e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e509190613b41565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec99190613b41565b509194509092508591508390506000612ee388600a613b91565b905081612ef0828561327e565b612efa9190613a36565b9b5083861015612f0a5785612f0c565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516130329190613ba0565b60006040518083038185875af1925050503d806000811461306f576040519150601f19603f3d011682016040523d82523d6000602084013e613074565b606091505b50509050806130c55760405162461bcd60e51b815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610330565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916131619190613ba0565b6000604051808303816000865af19150503d806000811461319e576040519150601f19603f3d011682016040523d82523d6000602084013e6131a3565b606091505b50915091508180156131cd5750805115806131cd5750808060200190518101906131cd9190613bdb565b6132195760405162461bcd60e51b815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610330565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132b6576132b661324f565b500290565b600082198211156132ce576132ce61324f565b500190565b600080858511156132e357600080fd5b838611156132f057600080fd5b5050820193919092039150565b7fff00000000000000000000000000000000000000000000000000000000000000813581811691600185101561333d5780818660010360031b1b83161692505b505092915050565b7fffffffff00000000000000000000000000000000000000000000000000000000813581811691600485101561333d5760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133bc576133bc61324f565b5060010190565b600060ff821660ff84168160ff04811182151516156133e4576133e461324f565b029392505050565b600060ff821660ff84168060ff038211156134095761340961324f565b019392505050565b7fffff000000000000000000000000000000000000000000000000000000000000813581811691600285101561333d5760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461347b57600080fd5b919050565b80356fffffffffffffffffffffffffffffffff8116811461347b57600080fd5b6000806000606084860312156134b557600080fd5b6134be84613457565b92506134cc60208501613480565b9150604084013590509250925092565b6000602082840312156134ee57600080fd5b610e0882613457565b803567ffffffffffffffff8116811461347b57600080fd5b60006020828403121561352157600080fd5b610e08826134f7565b801515811461282757600080fd5b6000806040838503121561354b57600080fd5b61355483613457565b915060208301356135648161352a565b809150509250929050565b60008060006060848603121561358457600080fd5b61358d84613457565b925061359b60208501613480565b91506135a960408501613480565b90509250925092565b600080600080600060a086880312156135ca57600080fd5b6135d386613457565b94506135e160208701613480565b93506135ef604087016134f7565b92506135fd606087016134f7565b949793965091946080013592915050565b60008083601f84011261362057600080fd5b50813567ffffffffffffffff81111561363857600080fd5b6020830191508360208260051b850101111561365357600080fd5b9250929050565b600080600080600080600080600060a08a8c03121561367857600080fd5b893567ffffffffffffffff8082111561369057600080fd5b61369c8d838e0161360e565b909b50995060208c01359150808211156136b557600080fd5b6136c18d838e0161360e565b909950975060408c01359150808211156136da57600080fd5b6136e68d838e0161360e565b909750955060608c01359150808211156136ff57600080fd5b5061370c8c828d0161360e565b9a9d999c50979a9699959894979660800135949350505050565b60ff8116811461282757600080fd5b60006020828403121561374757600080fd5b8135610e0881613726565b6000806040838503121561376557600080fd5b61376e83613457565b915061377c60208401613457565b90509250929050565b6000806000806080858703121561379b57600080fd5b6137a485613457565b93506137b260208601613480565b92506137c0604086016134f7565b91506137ce606086016134f7565b905092959194509250565b6000602082840312156137eb57600080fd5b5035919050565b60008060008060006060868803121561380a57600080fd5b853567ffffffffffffffff8082111561382257600080fd5b61382e89838a0161360e565b9097509550602088013591508082111561384757600080fd5b506138548882890161360e565b96999598509660400135949350505050565b60008060006060848603121561387b57600080fd5b61388484613457565b925061389260208501613457565b915060408401356138a28161352a565b809150509250925092565b600080604083850312156138c057600080fd5b823561376e81613726565b600080604083850312156138de57600080fd5b6138e783613457565b915061377c60208401613480565b600181815b8085111561394e57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156139345761393461324f565b8085161561394157918102915b93841c93908002906138fa565b509250929050565b60008261396557506001610e33565b8161397257506000610e33565b81600181146139885760028114613992576139ae565b6001915050610e33565b60ff8411156139a3576139a361324f565b50506001821b610e33565b5060208310610133831016604e8410600b84101617156139d1575081810a610e33565b6139db83836138f5565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156133e4576133e461324f565b6000610e0863ffffffff841683613956565b600082821015613a3157613a3161324f565b500390565b600082613a6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610e0861ffff841683613956565b600060208284031215613a9357600080fd5b610e0882613480565b600060208284031215613aae57600080fd5b8151610e0881613726565b600067ffffffffffffffff83811690831681811015613ada57613ada61324f565b039392505050565b600067ffffffffffffffff808316818516808303821115613b0557613b0561324f565b01949350505050565b600060208284031215613b2057600080fd5b5051919050565b805169ffffffffffffffffffff8116811461347b57600080fd5b600080600080600060a08688031215613b5957600080fd5b613b6286613b27565b9450602086015193506040860151925060608601519150613b8560808701613b27565b90509295509295909350565b6000610e0860ff841683613956565b6000825160005b81811015613bc15760208186018101518583015201613ba7565b81811115613bd0576000828501525b509190910192915050565b600060208284031215613bed57600080fd5b8151610e088161352a56fea26469706673582212201a8300ef75f98b7e3119b82a4c6cdb9878f1708565eee3b7aad37b47bf0a812864736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c6c578063f2030e7314610ca2578063f2fde38b14610d4757610292565b8063d736ce7c14610c2d578063e1a4e72a14610c5957610292565b8063cdf8bf90116100bd578063cdf8bf9014610b81578063d449a83214610bf4578063d5bade0714610c1a57610292565b8063c6ddb64214610ace578063cc6864b114610b7857610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610a7b578063c16116d414610aa8578063c32025a414610abb57610292565b8063aea9107814610a3c578063b80777ea14610a6457610292565b80638da5cb5b146109e557806399235fd414610a035780639d152ee914610a16578063a4a2a8c514610a2957610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109b7578063715018a6146109ca57806371ea9205146109d257610292565b80635ab2566c146109915780635bc9f65d146109a457610292565b8063447f3843116101f3578063447f3843146109585780634a502f391461096b5780634b0bddd21461097e57610292565b806331e658a5146108dc57806337e257fd1461094557610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c1461089357806328533a6d146108b65780632b8a1c5a146108c957610292565b80631ffabeb81461083b578063217a4b701461084e57610292565b80630925d4a3146107b35780630b7841f5146107c85780630c68ba21146107f55780631142e75314610828575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b6103395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103875760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c646174610000000000000000006044820152606401610330565b60008484600081811061039c5761039c613220565b919091013560f881901c925060fe1c9050603f82168115806103c157508160ff166002145b1561058a5760008060005b8360ff16811015610515576104328a8a6103e784600561327e565b6103f29060016132bb565b906103fe85600561327e565b6104099060016132bb565b6104149060016132bb565b92610421939291906132d3565b61042a916132fd565b60f81c610d5a565b925061049a8a8a61044484600561327e565b61044f9060016132bb565b61045a9060016132bb565b9061046685600561327e565b6104719060016132bb565b61047c9060056132bb565b92610489939291906132d3565b61049291613345565b60e01c610e0f565b91506104a68383610e39565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561050e8161338b565b90506103cc565b5060ff84161561057d57888861052c8560056133c3565b6105379060016133ec565b60ff16906105468660056133c3565b6105519060016133ec565b61055c9060046133ec565b60ff169261056c939291906132d3565b61057591613345565b60e01c61057f565b425b600555506107a49050565b8160ff166001148061059f57508160ff166003145b1561075c5760008060008060005b8560ff168110156106e3576105df8c8c6105c884600961327e565b6105d39060016132bb565b906103fe85600961327e565b94506106138c8c6105f184600961327e565b6105fc9060016132bb565b6106079060016132bb565b9061046685600961327e565b935061067b8c8c61062584600961327e565b6106309060016132bb565b61063b9060056132bb565b9061064785600961327e565b6106529060016132bb565b61065d9060076132bb565b9261066a939291906132d3565b61067391613411565b60f01c61107b565b92506106c58c8c61068d84600961327e565b6106989060016132bb565b6106a39060076132bb565b906106af85600961327e565b6106ba9060016132bb565b61065d9060096132bb565b91506106d38585858561109d565b6106dc8161338b565b90506105ad565b508560ff1660011461074d578a8a6106fc8760096133c3565b6107079060016133ec565b60ff16906107168860096133c3565b6107219060016133ec565b61072c9060046133ec565b60ff169261073c939291906132d3565b61074591613345565b60e01c61074f565b425b600555506107a492505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f700000000000000000000000000000006044820152606401610330565b50505050915050805190602001f35b6107c66107c13660046134a0565b611132565b005b6107db6107d63660046134dc565b611244565b604080519283526020830191909152015b60405180910390f35b6108186108033660046134dc565b60096020526000908152604090205460ff1681565b60405190151581526020016107ec565b6107c661083636600461350f565b611276565b6107c6610849366004613538565b6112b9565b60045461086e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016107ec565b6108186108a13660046134dc565b60086020526000908152604090205460ff1681565b6107c66108c436600461356f565b6113c5565b6107c66108d7366004613538565b61147d565b6108ef6108ea3660046134dc565b6114db565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff908116918301919091528383015116918101919091526060918201511515918101919091526080016107ec565b6108186109533660046134dc565b6115f9565b6107c66109663660046135b2565b611653565b6107c661097936600461365a565b611705565b6107c661098c366004613538565b611873565b61086e61099f366004613735565b610d5a565b6107c66109b23660046134dc565b6118d1565b6107c66109c5366004613752565b6119c1565b6107c6611b7d565b6107c66109e0366004613785565b611b91565b60005473ffffffffffffffffffffffffffffffffffffffff1661086e565b6107c6610a113660046137d9565b611c44565b6107c6610a243660046137f2565b611ce6565b6107c6610a37366004613866565b611f08565b610a4f610a4a3660046134dc565b6120ff565b604080519283529015156020830152016107ec565b610a6d60055481565b6040519081526020016107ec565b600754610a8f9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016107ec565b6108ef610ab63660046134dc565b6123a3565b6107c6610ac93660046138ad565b6124a8565b610b3f610adc3660046134dc565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff92831660208501529116908201526060016107ec565b610a6d60065481565b610bcb610b8f3660046134dc565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff9384168152929091166020830152016107ec565b610c08610c023660046134dc565b50600890565b60405160ff90911681526020016107ec565b6107c6610c283660046138cb565b61260b565b60075461086e9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107c6610c673660046134dc565b612731565b61086e610c7a366004613735565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d11610cb03660046134dc565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff90921660208401521515908201526060016107ec565b6107c6610d553660046134dc565b6128e6565b6040805160608101825273deaddeaddeaddeaddeaddeaddeaddeaddead111181527378c1b0c915c4faa5fffa6cabf0219da63d7f4cb860208201527309bc4e0d864854c6afb6eb9a9cdf58ac190d0df991810191909152600090600360ff841610610ded5760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e08565b808360ff1660038110610e0257610e02613220565b60200201515b9392505050565b6000610e1f601f8316600a613a0d565b610e33906307ffffff600585901c1661327e565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610eb557506fffffffffffffffffffffffffffffffff8316155b80610ed25750670de0b6b3a76400008267ffffffffffffffff1610155b15610edd5750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610f115781610f13565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f5b5782610f5d565b845b6fffffffffffffffffffffffffffffffff1690506000610f8f67ffffffffffffffff8616670de0b6b3a7640000613a1f565b8383610fa3670de0b6b3a76400008061327e565b610fad919061327e565b610fb79190613a36565b610fc19190613a36565b9050670de0b6b3a7640000811015611072576000610fe782670de0b6b3a7640000613a1f565b90508567ffffffffffffffff168167ffffffffffffffff1611156110705773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b600061108b601f8316600a613a71565b610e33906107ff600585901c1661327e565b73ffffffffffffffffffffffffffffffffffffffff841660009081526001602052604090206110cd858585612980565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361115260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061118357503360009081526008602052604090205460ff165b6111cf5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6111d98383610e39565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061126d90849073ffffffffffffffffffffffffffffffffffffffff16612d12565b91509150915091565b61127e612f1f565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b336112d960005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061130a57503360009081526008602052604090205460ff165b6113565760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166114245760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e0000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b611485612f1f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff70010000000000000000000000000000000082048116948301949094527801000000000000000000000000000000000000000000000000900490921690820152908061159a856120ff565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610e33575060065460055461164a91906132bb565b42111592915050565b3361167360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806116a457503360009081526008602052604090205460ff165b6116f05760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6116fc8585858561109d565b60055550505050565b3361172560005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061175657503360009081526008602052604090205460ff165b6117a25760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b8760005b81811015611864576118528b8b838181106117c3576117c3613220565b90506020020160208101906117d891906134dc565b8a8a848181106117ea576117ea613220565b90506020020160208101906117ff9190613a81565b89898581811061181157611811613220565b9050602002016020810190611826919061350f565b88888681811061183857611838613220565b905060200201602081019061184d919061350f565b61109d565b8061185c8161338b565b9150506117a6565b50506005555050505050505050565b61187b612f1f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336118f160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061192257503360009081526008602052604090205460ff165b61196e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b336119e160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611a1257503360009081526008602052604090205460ff165b611a5e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b339190613a9c565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611b85612f1f565b611b8f6000612f86565b565b33611bb160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611be257503360009081526008602052604090205460ff165b611c2e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b611c3a8484848461109d565b5050426005555050565b33611c6460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611c9557503360009081526008602052604090205460ff165b611ce15760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600655565b33611d0660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611d3757503360009081526008602052604090205460ff165b611d835760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b83828114611dd35760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c4944000000006044820152606401610330565b60005b81811015611efd57611e34878783818110611df357611df3613220565b9050602002016020810190611e0891906134dc565b868684818110611e1a57611e1a613220565b9050602002016020810190611e2f9190613a81565b610e39565b848482818110611e4657611e46613220565b9050602002016020810190611e5b9190613a81565b60016000898985818110611e7157611e71613220565b9050602002016020810190611e8691906134dc565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905580611ef58161338b565b915050611dd6565b505060055550505050565b33611f2860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611f5957503360009081526008602052604090205460ff165b611fa55760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa15801561204c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120709190613a9c565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161215391889116612d12565b50905060008315801590612173575060065461216f90846132bb565b4211155b90506000821580159061220e57506007548590670de0b6b3a7640000906121a49067ffffffffffffffff1682613ab9565b6121b89067ffffffffffffffff168661327e565b6121c29190613a36565b1115801561220e5750600754670de0b6b3a7640000906121ec9067ffffffffffffffff1682613ae2565b6122009067ffffffffffffffff168561327e565b61220a9190613a36565b8511155b9050811561222157849650809550612278565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff1661226e576000612270565b825b965086151595505b85156123995773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116123325760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e00000000000000000000000000006044820152606401610330565b80602001516fffffffffffffffffffffffffffffffff1688106123975760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d617800000000000000000000000000006044820152606401610330565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a5284518316885251811694870194909452905190921695840195909552845193949391830191161580159061249d575060065460055461249991906132bb565b4211155b151590529392505050565b336124c860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806124f957503360009081526008602052604090205460ff165b6125455760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600061255083610d5a565b73ffffffffffffffffffffffffffffffffffffffff16146125b35760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c52454144590000006044820152606401610330565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3361262b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061265c57503360009081526008602052604090205460ff165b6126a85760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6126b28282610e39565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905560075468010000000000000000900416331461272d57426005555b5050565b3361275160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061278257503360009081526008602052604090205460ff165b6127ce5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0361282a5761282761282160005473ffffffffffffffffffffffffffffffffffffffff1690565b47612ffb565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128bb9190613b0e565b905061272d826128e060005473ffffffffffffffffffffffffffffffffffffffff1690565b836130ca565b6128ee612f1f565b73ffffffffffffffffffffffffffffffffffffffff81166129775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b61282781612f86565b670de0b6b3a76400008167ffffffffffffffff16106129e15760405162461bcd60e51b815260206004820152600860248201527f215f7370726561640000000000000000000000000000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612a5d57506fffffffffffffffffffffffffffffffff8416155b80612a7a5750670de0b6b3a76400008267ffffffffffffffff1610155b15612af657505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612b2a5781612b2c565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612b745782612b76565b855b6fffffffffffffffffffffffffffffffff1690506000612ba867ffffffffffffffff8616670de0b6b3a7640000613a1f565b8383612bbc670de0b6b3a76400008061327e565b612bc6919061327e565b612bd09190613a36565b612bda9190613a36565b9050670de0b6b3a7640000811015612c9c576000612c0082670de0b6b3a7640000613a1f565b90508667ffffffffffffffff168167ffffffffffffffff1611612c235786612c25565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905550611070565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612d8b5760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c6500000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015612e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e509190613b41565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec99190613b41565b509194509092508591508390506000612ee388600a613b91565b905081612ef0828561327e565b612efa9190613a36565b9b5083861015612f0a5785612f0c565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516130329190613ba0565b60006040518083038185875af1925050503d806000811461306f576040519150601f19603f3d011682016040523d82523d6000602084013e613074565b606091505b50509050806130c55760405162461bcd60e51b815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610330565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916131619190613ba0565b6000604051808303816000865af19150503d806000811461319e576040519150601f19603f3d011682016040523d82523d6000602084013e6131a3565b606091505b50915091508180156131cd5750805115806131cd5750808060200190518101906131cd9190613bdb565b6132195760405162461bcd60e51b815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610330565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132b6576132b661324f565b500290565b600082198211156132ce576132ce61324f565b500190565b600080858511156132e357600080fd5b838611156132f057600080fd5b5050820193919092039150565b7fff00000000000000000000000000000000000000000000000000000000000000813581811691600185101561333d5780818660010360031b1b83161692505b505092915050565b7fffffffff00000000000000000000000000000000000000000000000000000000813581811691600485101561333d5760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133bc576133bc61324f565b5060010190565b600060ff821660ff84168160ff04811182151516156133e4576133e461324f565b029392505050565b600060ff821660ff84168060ff038211156134095761340961324f565b019392505050565b7fffff000000000000000000000000000000000000000000000000000000000000813581811691600285101561333d5760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461347b57600080fd5b919050565b80356fffffffffffffffffffffffffffffffff8116811461347b57600080fd5b6000806000606084860312156134b557600080fd5b6134be84613457565b92506134cc60208501613480565b9150604084013590509250925092565b6000602082840312156134ee57600080fd5b610e0882613457565b803567ffffffffffffffff8116811461347b57600080fd5b60006020828403121561352157600080fd5b610e08826134f7565b801515811461282757600080fd5b6000806040838503121561354b57600080fd5b61355483613457565b915060208301356135648161352a565b809150509250929050565b60008060006060848603121561358457600080fd5b61358d84613457565b925061359b60208501613480565b91506135a960408501613480565b90509250925092565b600080600080600060a086880312156135ca57600080fd5b6135d386613457565b94506135e160208701613480565b93506135ef604087016134f7565b92506135fd606087016134f7565b949793965091946080013592915050565b60008083601f84011261362057600080fd5b50813567ffffffffffffffff81111561363857600080fd5b6020830191508360208260051b850101111561365357600080fd5b9250929050565b600080600080600080600080600060a08a8c03121561367857600080fd5b893567ffffffffffffffff8082111561369057600080fd5b61369c8d838e0161360e565b909b50995060208c01359150808211156136b557600080fd5b6136c18d838e0161360e565b909950975060408c01359150808211156136da57600080fd5b6136e68d838e0161360e565b909750955060608c01359150808211156136ff57600080fd5b5061370c8c828d0161360e565b9a9d999c50979a9699959894979660800135949350505050565b60ff8116811461282757600080fd5b60006020828403121561374757600080fd5b8135610e0881613726565b6000806040838503121561376557600080fd5b61376e83613457565b915061377c60208401613457565b90509250929050565b6000806000806080858703121561379b57600080fd5b6137a485613457565b93506137b260208601613480565b92506137c0604086016134f7565b91506137ce606086016134f7565b905092959194509250565b6000602082840312156137eb57600080fd5b5035919050565b60008060008060006060868803121561380a57600080fd5b853567ffffffffffffffff8082111561382257600080fd5b61382e89838a0161360e565b9097509550602088013591508082111561384757600080fd5b506138548882890161360e565b96999598509660400135949350505050565b60008060006060848603121561387b57600080fd5b61388484613457565b925061389260208501613457565b915060408401356138a28161352a565b809150509250925092565b600080604083850312156138c057600080fd5b823561376e81613726565b600080604083850312156138de57600080fd5b6138e783613457565b915061377c60208401613480565b600181815b8085111561394e57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156139345761393461324f565b8085161561394157918102915b93841c93908002906138fa565b509250929050565b60008261396557506001610e33565b8161397257506000610e33565b81600181146139885760028114613992576139ae565b6001915050610e33565b60ff8411156139a3576139a361324f565b50506001821b610e33565b5060208310610133831016604e8410600b84101617156139d1575081810a610e33565b6139db83836138f5565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156133e4576133e461324f565b6000610e0863ffffffff841683613956565b600082821015613a3157613a3161324f565b500390565b600082613a6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610e0861ffff841683613956565b600060208284031215613a9357600080fd5b610e0882613480565b600060208284031215613aae57600080fd5b8151610e0881613726565b600067ffffffffffffffff83811690831681811015613ada57613ada61324f565b039392505050565b600067ffffffffffffffff808316818516808303821115613b0557613b0561324f565b01949350505050565b600060208284031215613b2057600080fd5b5051919050565b805169ffffffffffffffffffff8116811461347b57600080fd5b600080600080600060a08688031215613b5957600080fd5b613b6286613b27565b9450602086015193506040860151925060608601519150613b8560808701613b27565b90509295509295909350565b6000610e0860ff841683613956565b6000825160005b81811015613bc15760208186018101518583015201613ba7565b81811115613bd0576000828501525b509190910192915050565b600060208284031215613bed57600080fd5b8151610e088161352a56fea26469706673582212201a8300ef75f98b7e3119b82a4c6cdb9878f1708565eee3b7aad37b47bf0a812864736f6c634300080e0033
Net Worth in USD
Net Worth in MNT
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.