Latest 25 from a total of 1,165,687 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 0x81020030 | 28263909 | 29 secs ago | IN | 0 ETH | 0.00000208 | ||||
| 0x82000090 | 28263861 | 2 mins ago | IN | 0 ETH | 0.00000262 | ||||
| 0x81000090 | 28263819 | 3 mins ago | IN | 0 ETH | 0.00000211 | ||||
| 0x810101b2 | 28263805 | 4 mins ago | IN | 0 ETH | 0.00000209 | ||||
| 0x810101b2 | 28263756 | 5 mins ago | IN | 0 ETH | 0.00000816 | ||||
| 0x81000090 | 28263709 | 7 mins ago | IN | 0 ETH | 0.00000248 | ||||
| 0x81000090 | 28263662 | 9 mins ago | IN | 0 ETH | 0.00000473 | ||||
| 0x810101b2 | 28263625 | 10 mins ago | IN | 0 ETH | 0.00000209 | ||||
| 0x81020030 | 28263578 | 12 mins ago | IN | 0 ETH | 0.00000208 | ||||
| 0x81000090 | 28263529 | 13 mins ago | IN | 0 ETH | 0.00000236 | ||||
| 0x81000090 | 28263482 | 15 mins ago | IN | 0 ETH | 0.00000591 | ||||
| 0x81020030 | 28263434 | 17 mins ago | IN | 0 ETH | 0.00000209 | ||||
| 0x81020030 | 28263385 | 18 mins ago | IN | 0 ETH | 0.00000209 | ||||
| 0x81000090 | 28263381 | 18 mins ago | IN | 0 ETH | 0.00000217 | ||||
| 0x81000090 | 28263356 | 19 mins ago | IN | 0 ETH | 0.00000359 | ||||
| 0x81020030 | 28263306 | 21 mins ago | IN | 0 ETH | 0.00000375 | ||||
| 0x810101b2 | 28263263 | 23 mins ago | IN | 0 ETH | 0.00000249 | ||||
| 0x81000090 | 28263218 | 24 mins ago | IN | 0 ETH | 0.00000198 | ||||
| 0x81000090 | 28263190 | 25 mins ago | IN | 0 ETH | 0.00000569 | ||||
| 0xc1000090 | 28263143 | 27 mins ago | IN | 0 ETH | 0.00000255 | ||||
| 0xc1000090 | 28263095 | 29 mins ago | IN | 0 ETH | 0.00000491 | ||||
| 0x82020030 | 28263092 | 29 mins ago | IN | 0 ETH | 0.00000663 | ||||
| 0xc1000090 | 28263072 | 29 mins ago | IN | 0 ETH | 0.00000213 | ||||
| 0x81000090 | 28263028 | 31 mins ago | IN | 0 ETH | 0.00000198 | ||||
| 0xc1000090 | 28262999 | 32 mins ago | IN | 0 ETH | 0.00000318 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263903 | 41 secs ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH | ||||
| 28263862 | 2 mins ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WooracleV2_2
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;
/*
░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝
*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import "../interfaces/IWooracleV2_2.sol";
import "../interfaces/AggregatorV3Interface.sol";
import {TransferHelper} from "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
// OpenZeppelin contracts
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/// @title Wooracle V2.2 contract for WooPPV2
/// subversion 1 change: no timestamp update for posting price from WooPP.
/// subversion 2 change: support legacy postState utilizing block.timestamp
contract WooracleV2_2 is Ownable, IWooracleV2_2 {
/* ----- State variables ----- */
// 128 + 64 + 64 = 256 bits (slot size)
struct TokenInfo {
uint128 price; // as chainlink oracle (e.g. decimal = 8) zip: 32 bits = (27, 5)
uint64 coeff; // k: decimal = 18. 18.4 * 1e18 zip: 16 bits = (11, 5), 2^11 = 2048
uint64 spread; // s: decimal = 18. spread <= 2e18 18.4 * 1e18 zip: 16 bits = (11, 5)
}
struct CLOracle {
address oracle;
uint8 decimal;
bool cloPreferred;
}
struct PriceRange {
uint128 min;
uint128 max;
}
mapping(address => TokenInfo) public infos;
mapping(address => CLOracle) public clOracles;
mapping(address => PriceRange) public priceRanges;
address public quoteToken;
uint256 public timestamp;
uint256 public staleDuration;
uint64 public bound;
address public wooPP;
mapping(address => bool) public isAdmin;
mapping(address => bool) public isGuardian;
mapping(uint8 => address) public basesMap;
constructor() {
staleDuration = uint256(300); // default: 5 mins
bound = uint64(1e16); // 1%
}
modifier onlyAdmin() {
require(owner() == msg.sender || isAdmin[msg.sender], "WooracleV2_2: !Admin");
_;
}
modifier onlyGuardian() {
require(isGuardian[msg.sender], "WooracleV2_2: !Guardian");
_;
}
/* ----- External Functions ----- */
function setRange(
address _base,
uint128 _min,
uint128 _max
) external onlyGuardian {
PriceRange storage priceRange = priceRanges[_base];
priceRange.min = _min;
priceRange.max = _max;
}
function setWooPP(address _wooPP) external onlyAdmin {
wooPP = _wooPP;
}
function setAdmin(address _addr, bool _flag) external onlyOwner {
isAdmin[_addr] = _flag;
}
function setGuardian(address _addr, bool _flag) external onlyOwner {
isGuardian[_addr] = _flag;
}
/// @dev Set the quote token address.
/// @param _oracle the token address
function setQuoteToken(address _quote, address _oracle) external onlyAdmin {
quoteToken = _quote;
CLOracle storage cloRef = clOracles[_quote];
cloRef.oracle = _oracle;
cloRef.decimal = AggregatorV3Interface(_oracle).decimals();
}
function setBound(uint64 _bound) external onlyOwner {
bound = _bound;
}
function setCLOracle(
address _token,
address _oracle,
bool _cloPreferred
) external onlyAdmin {
CLOracle storage cloRef = clOracles[_token];
cloRef.oracle = _oracle;
cloRef.decimal = AggregatorV3Interface(_oracle).decimals();
cloRef.cloPreferred = _cloPreferred;
}
function setCloPreferred(address _token, bool _cloPreferred) external onlyAdmin {
CLOracle storage cloRef = clOracles[_token];
cloRef.cloPreferred = _cloPreferred;
}
/// @dev Set the staleDuration.
/// @param _staleDuration the new stale duration
function setStaleDuration(uint256 _staleDuration) external onlyAdmin {
staleDuration = _staleDuration;
}
/// @dev Update the base token prices.
/// @param _base the baseToken address
/// @param _price the new prices for the base token
function postPrice(address _base, uint128 _price) external onlyAdmin {
// NOTE: update spread before setting a new price
_updateSpreadForNewPrice(_base, _price);
infos[_base].price = _price;
if (msg.sender != wooPP) {
timestamp = block.timestamp;
}
}
/// @dev Update the base token prices.
/// @param _base the baseToken address
/// @param _price the new prices for the base token
/// @param _ts the manual updated TS
function postPrice(
address _base,
uint128 _price,
uint256 _ts
) external onlyAdmin {
// NOTE: update spread before setting a new price
_updateSpreadForNewPrice(_base, _price);
infos[_base].price = _price;
timestamp = _ts;
}
/// @dev batch update baseTokens prices
/// @param _bases list of baseToken address
/// @param _prices the updated prices list
function postPriceList(
address[] calldata _bases,
uint128[] calldata _prices,
uint256 _ts
) external onlyAdmin {
uint256 length = _bases.length;
require(length == _prices.length, "WooracleV2_2: length_INVALID");
for (uint256 i = 0; i < length; i++) {
// NOTE: update spread before setting a new price
_updateSpreadForNewPrice(_bases[i], _prices[i]);
infos[_bases[i]].price = _prices[i];
}
timestamp = _ts;
}
/// @dev update the state of the given base token.
/// @param _base baseToken address
/// @param _price the new prices
/// @param _spread the new spreads
/// @param _coeff the new slippage coefficent
function postState(
address _base,
uint128 _price,
uint64 _spread,
uint64 _coeff
) external onlyAdmin {
_setState(_base, _price, _spread, _coeff);
timestamp = block.timestamp;
}
/// @dev update the state of the given base token with the offchain timestamp.
/// @param _base baseToken address
/// @param _price the new prices
/// @param _spread the new spreads
/// @param _coeff the new slippage coefficent
/// @param _ts the local timestamp
function postState(
address _base,
uint128 _price,
uint64 _spread,
uint64 _coeff,
uint256 _ts
) external onlyAdmin {
_setState(_base, _price, _spread, _coeff);
timestamp = _ts;
}
/// @dev batch update the prices, spreads and slipagge coeffs info.
/// @param _bases list of baseToken address
/// @param _prices the prices list
/// @param _spreads the spreads list
/// @param _coeffs the slippage coefficent list
function postStateList(
address[] calldata _bases,
uint128[] calldata _prices,
uint64[] calldata _spreads,
uint64[] calldata _coeffs,
uint256 _ts
) external onlyAdmin {
uint256 length = _bases.length;
for (uint256 i = 0; i < length; i++) {
_setState(_bases[i], _prices[i], _spreads[i], _coeffs[i]);
}
timestamp = _ts;
}
/*
Price logic:
- woPrice: wooracle price
- cloPrice: chainlink price
woFeasible is, price > 0 and price timestamp NOT stale
when woFeasible && priceWithinBound -> woPrice, feasible
when woFeasible && !priceWithinBound -> woPrice, infeasible
when !woFeasible && clo_preferred -> cloPrice, feasible
when !woFeasible && !clo_preferred -> cloPrice, infeasible
*/
function price(address _base) public view returns (uint256 priceOut, bool feasible) {
uint256 woPrice_ = uint256(infos[_base].price);
uint256 woPriceTimestamp = timestamp;
(uint256 cloPrice_, ) = _cloPriceInQuote(_base, quoteToken);
bool woFeasible = woPrice_ != 0 && block.timestamp <= (woPriceTimestamp + staleDuration);
// bool woPriceInBound = cloPrice_ == 0 ||
// ((cloPrice_ * (1e18 - bound)) / 1e18 <= woPrice_ && woPrice_ <= (cloPrice_ * (1e18 + bound)) / 1e18);
bool woPriceInBound = cloPrice_ != 0 &&
((cloPrice_ * (1e18 - bound)) / 1e18 <= woPrice_ && woPrice_ <= (cloPrice_ * (1e18 + bound)) / 1e18);
if (woFeasible) {
priceOut = woPrice_;
feasible = woPriceInBound;
} else {
priceOut = clOracles[_base].cloPreferred ? cloPrice_ : 0;
feasible = priceOut != 0;
}
// Guardian check: min-max
if (feasible) {
PriceRange memory range = priceRanges[_base];
require(priceOut > range.min, "WooracleV2_2: !min");
require(priceOut < range.max, "WooracleV2_2: !max");
}
}
/// @notice the price decimal for the specified base token
function decimals(address) external pure returns (uint8) {
return 8;
}
function cloPrice(address _base) external view returns (uint256 refPrice, uint256 refTimestamp) {
return _cloPriceInQuote(_base, quoteToken);
}
function isWoFeasible(address _base) external view override returns (bool) {
return infos[_base].price != 0 && block.timestamp <= (timestamp + staleDuration);
}
function woState(address _base) external view returns (State memory) {
TokenInfo memory info = infos[_base];
return
State({
price: info.price,
spread: info.spread,
coeff: info.coeff,
woFeasible: (info.price != 0 && block.timestamp <= (timestamp + staleDuration))
});
}
function state(address _base) external view returns (State memory) {
TokenInfo memory info = infos[_base];
(uint256 basePrice, bool feasible) = price(_base);
return State({price: uint128(basePrice), spread: info.spread, coeff: info.coeff, woFeasible: feasible});
}
/* ----- Internal Functions ----- */
function _updateSpreadForNewPrice(address _base, uint128 _price) internal {
uint64 preS = infos[_base].spread;
uint128 preP = infos[_base].price;
if (preP == 0 || _price == 0 || preS >= 1e18) {
// previous price or current price is 0, no action is needed
return;
}
uint256 maxP = _price >= preP ? _price : preP;
uint256 minP = _price <= preP ? _price : preP;
uint256 antiS = (uint256(1e18) * 1e18 * minP) / maxP / (uint256(1e18) - preS);
if (antiS < 1e18) {
uint64 newS = uint64(1e18 - antiS);
if (newS > preS) {
infos[_base].spread = newS;
}
}
}
function _updateSpreadForNewPrice(
address _base,
uint128 _price,
uint64 _spread
) internal {
require(_spread < 1e18, "!_spread");
uint64 preS = infos[_base].spread;
uint128 preP = infos[_base].price;
if (preP == 0 || _price == 0 || preS >= 1e18) {
// previous price or current price is 0, just use _spread
infos[_base].spread = _spread;
return;
}
uint256 maxP = _price >= preP ? _price : preP;
uint256 minP = _price <= preP ? _price : preP;
uint256 antiS = (uint256(1e18) * 1e18 * minP) / maxP / (uint256(1e18) - preS);
if (antiS < 1e18) {
uint64 newS = uint64(1e18 - antiS);
infos[_base].spread = newS > _spread ? newS : _spread;
} else {
infos[_base].spread = _spread;
}
}
function _setState(
address _base,
uint128 _price,
uint64 _spread,
uint64 _coeff
) internal {
TokenInfo storage info = infos[_base];
// NOTE: update spread before setting a new price
_updateSpreadForNewPrice(_base, _price, _spread);
info.price = _price;
info.coeff = _coeff;
}
function _cloPriceInQuote(address _fromToken, address _toToken)
internal
view
returns (uint256 refPrice, uint256 refTimestamp)
{
address baseOracle = clOracles[_fromToken].oracle;
// NOTE: Only for chains where chainlink oracle is unavailable
// if (baseOracle == address(0)) {
// return (0, 0);
// }
require(baseOracle != address(0), "WooracleV2_2: !oracle");
address quoteOracle = clOracles[_toToken].oracle;
uint8 quoteDecimal = clOracles[_toToken].decimal;
(, int256 rawBaseRefPrice, , uint256 baseUpdatedAt, ) = AggregatorV3Interface(baseOracle).latestRoundData();
(, int256 rawQuoteRefPrice, , uint256 quoteUpdatedAt, ) = AggregatorV3Interface(quoteOracle).latestRoundData();
uint256 baseRefPrice = uint256(rawBaseRefPrice);
uint256 quoteRefPrice = uint256(rawQuoteRefPrice);
// NOTE: Assume wooracle token decimal is same as chainlink token decimal.
uint256 ceoff = uint256(10)**quoteDecimal;
refPrice = (baseRefPrice * ceoff) / quoteRefPrice;
refTimestamp = baseUpdatedAt >= quoteUpdatedAt ? quoteUpdatedAt : baseUpdatedAt;
}
/* ----- Zip Related Functions ----- */
function setBase(uint8 _id, address _base) external onlyAdmin {
require(getBase(_id) == address(0), "WooracleV2_2: !id_SET_ALREADY");
basesMap[_id] = _base;
}
function getBase(uint8 _id) public view returns (address) {
address[1] memory CONST_BASES = [
// mload
// NOTE: Update token address for different chains
0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f // WETH
];
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
60806040523480156200001157600080fd5b506200001d3362000042565b61012c600655600780546001600160401b031916662386f26fc1000017905562000092565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613bf980620000a26000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c6c578063f2030e7314610ca2578063f2fde38b14610d4757610292565b8063d736ce7c14610c2d578063e1a4e72a14610c5957610292565b8063cdf8bf90116100bd578063cdf8bf9014610b81578063d449a83214610bf4578063d5bade0714610c1a57610292565b8063c6ddb64214610ace578063cc6864b114610b7857610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610a7b578063c16116d414610aa8578063c32025a414610abb57610292565b8063aea9107814610a3c578063b80777ea14610a6457610292565b80638da5cb5b146109e557806399235fd414610a035780639d152ee914610a16578063a4a2a8c514610a2957610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109b7578063715018a6146109ca57806371ea9205146109d257610292565b80635ab2566c146109915780635bc9f65d146109a457610292565b8063447f3843116101f3578063447f3843146109585780634a502f391461096b5780634b0bddd21461097e57610292565b806331e658a5146108dc57806337e257fd1461094557610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c1461089357806328533a6d146108b65780632b8a1c5a146108c957610292565b80631ffabeb81461083b578063217a4b701461084e57610292565b80630925d4a3146107b35780630b7841f5146107c85780630c68ba21146107f55780631142e75314610828575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b6103395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103875760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c646174610000000000000000006044820152606401610330565b60008484600081811061039c5761039c6131eb565b919091013560f881901c925060fe1c9050603f82168115806103c157508160ff166002145b1561058a5760008060005b8360ff16811015610515576104328a8a6103e7846005613249565b6103f2906001613286565b906103fe856005613249565b610409906001613286565b610414906001613286565b926104219392919061329e565b61042a916132c8565b60f81c610d5a565b925061049a8a8a610444846005613249565b61044f906001613286565b61045a906001613286565b90610466856005613249565b610471906001613286565b61047c906005613286565b926104899392919061329e565b61049291613310565b60e01c610dda565b91506104a68383610e04565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561050e81613356565b90506103cc565b5060ff84161561057d57888861052c85600561338e565b6105379060016133b7565b60ff169061054686600561338e565b6105519060016133b7565b61055c9060046133b7565b60ff169261056c9392919061329e565b61057591613310565b60e01c61057f565b425b600555506107a49050565b8160ff166001148061059f57508160ff166003145b1561075c5760008060008060005b8560ff168110156106e3576105df8c8c6105c8846009613249565b6105d3906001613286565b906103fe856009613249565b94506106138c8c6105f1846009613249565b6105fc906001613286565b610607906001613286565b90610466856009613249565b935061067b8c8c610625846009613249565b610630906001613286565b61063b906005613286565b90610647856009613249565b610652906001613286565b61065d906007613286565b9261066a9392919061329e565b610673916133dc565b60f01c611046565b92506106c58c8c61068d846009613249565b610698906001613286565b6106a3906007613286565b906106af856009613249565b6106ba906001613286565b61065d906009613286565b91506106d385858585611068565b6106dc81613356565b90506105ad565b508560ff1660011461074d578a8a6106fc87600961338e565b6107079060016133b7565b60ff169061071688600961338e565b6107219060016133b7565b61072c9060046133b7565b60ff169261073c9392919061329e565b61074591613310565b60e01c61074f565b425b600555506107a492505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f700000000000000000000000000000006044820152606401610330565b50505050915050805190602001f35b6107c66107c136600461346b565b6110fd565b005b6107db6107d63660046134a7565b61120f565b604080519283526020830191909152015b60405180910390f35b6108186108033660046134a7565b60096020526000908152604090205460ff1681565b60405190151581526020016107ec565b6107c66108363660046134da565b611241565b6107c6610849366004613503565b611284565b60045461086e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016107ec565b6108186108a13660046134a7565b60086020526000908152604090205460ff1681565b6107c66108c436600461353a565b611390565b6107c66108d7366004613503565b611448565b6108ef6108ea3660046134a7565b6114a6565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff908116918301919091528383015116918101919091526060918201511515918101919091526080016107ec565b6108186109533660046134a7565b6115c4565b6107c661096636600461357d565b61161e565b6107c6610979366004613625565b6116d0565b6107c661098c366004613503565b61183e565b61086e61099f366004613700565b610d5a565b6107c66109b23660046134a7565b61189c565b6107c66109c536600461371d565b61198c565b6107c6611b48565b6107c66109e0366004613750565b611b5c565b60005473ffffffffffffffffffffffffffffffffffffffff1661086e565b6107c6610a113660046137a4565b611c0f565b6107c6610a243660046137bd565b611cb1565b6107c6610a37366004613831565b611ed3565b610a4f610a4a3660046134a7565b6120ca565b604080519283529015156020830152016107ec565b610a6d60055481565b6040519081526020016107ec565b600754610a8f9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016107ec565b6108ef610ab63660046134a7565b61236e565b6107c6610ac9366004613878565b612473565b610b3f610adc3660046134a7565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff92831660208501529116908201526060016107ec565b610a6d60065481565b610bcb610b8f3660046134a7565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff9384168152929091166020830152016107ec565b610c08610c023660046134a7565b50600890565b60405160ff90911681526020016107ec565b6107c6610c28366004613896565b6125d6565b60075461086e9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107c6610c673660046134a7565b6126fc565b61086e610c7a366004613700565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d11610cb03660046134a7565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff90921660208401521515908201526060016107ec565b6107c6610d553660046134a7565b6128b1565b604080516020810190915273e5d7c2a44ffddf6b295a15c148167daaaf5cf34f8152600090600160ff841610610db85760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610dd3565b808360ff1660018110610dcd57610dcd6131eb565b60200201515b9392505050565b6000610dea601f8316600a6139d8565b610dfe906307ffffff600585901c16613249565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610e8057506fffffffffffffffffffffffffffffffff8316155b80610e9d5750670de0b6b3a76400008267ffffffffffffffff1610155b15610ea85750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610edc5781610ede565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f265782610f28565b845b6fffffffffffffffffffffffffffffffff1690506000610f5a67ffffffffffffffff8616670de0b6b3a76400006139ea565b8383610f6e670de0b6b3a764000080613249565b610f789190613249565b610f829190613a01565b610f8c9190613a01565b9050670de0b6b3a764000081101561103d576000610fb282670de0b6b3a76400006139ea565b90508567ffffffffffffffff168167ffffffffffffffff16111561103b5773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b6000611056601f8316600a613a3c565b610dfe906107ff600585901c16613249565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020526040902061109885858561294b565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361111d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061114e57503360009081526008602052604090205460ff165b61119a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6111a48383610e04565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061123890849073ffffffffffffffffffffffffffffffffffffffff16612cdd565b91509150915091565b611249612eea565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b336112a460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806112d557503360009081526008602052604090205460ff165b6113215760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166113ef5760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e0000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b611450612eea565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff700100000000000000000000000000000000820481169483019490945278010000000000000000000000000000000000000000000000009004909216908201529080611565856120ca565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610dfe57506006546005546116159190613286565b42111592915050565b3361163e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061166f57503360009081526008602052604090205460ff165b6116bb5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6116c785858585611068565b60055550505050565b336116f060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061172157503360009081526008602052604090205460ff165b61176d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b8760005b8181101561182f5761181d8b8b8381811061178e5761178e6131eb565b90506020020160208101906117a391906134a7565b8a8a848181106117b5576117b56131eb565b90506020020160208101906117ca9190613a4c565b8989858181106117dc576117dc6131eb565b90506020020160208101906117f191906134da565b888886818110611803576118036131eb565b905060200201602081019061181891906134da565b611068565b8061182781613356565b915050611771565b50506005555050505050505050565b611846612eea565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336118bc60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806118ed57503360009081526008602052604090205460ff165b6119395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b336119ac60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806119dd57503360009081526008602052604090205460ff165b611a295760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afe9190613a67565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611b50612eea565b611b5a6000612f51565b565b33611b7c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611bad57503360009081526008602052604090205460ff165b611bf95760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b611c0584848484611068565b5050426005555050565b33611c2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611c6057503360009081526008602052604090205460ff165b611cac5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600655565b33611cd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611d0257503360009081526008602052604090205460ff165b611d4e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b83828114611d9e5760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c4944000000006044820152606401610330565b60005b81811015611ec857611dff878783818110611dbe57611dbe6131eb565b9050602002016020810190611dd391906134a7565b868684818110611de557611de56131eb565b9050602002016020810190611dfa9190613a4c565b610e04565b848482818110611e1157611e116131eb565b9050602002016020810190611e269190613a4c565b60016000898985818110611e3c57611e3c6131eb565b9050602002016020810190611e5191906134a7565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905580611ec081613356565b915050611da1565b505060055550505050565b33611ef360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611f2457503360009081526008602052604090205460ff165b611f705760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015612017573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203b9190613a67565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161211e91889116612cdd565b5090506000831580159061213e575060065461213a9084613286565b4211155b9050600082158015906121d957506007548590670de0b6b3a76400009061216f9067ffffffffffffffff1682613a84565b6121839067ffffffffffffffff1686613249565b61218d9190613a01565b111580156121d95750600754670de0b6b3a7640000906121b79067ffffffffffffffff1682613aad565b6121cb9067ffffffffffffffff1685613249565b6121d59190613a01565b8511155b905081156121ec57849650809550612243565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff1661223957600061223b565b825b965086151595505b85156123645773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116122fd5760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e00000000000000000000000000006044820152606401610330565b80602001516fffffffffffffffffffffffffffffffff1688106123625760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d617800000000000000000000000000006044820152606401610330565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a5284518316885251811694870194909452905190921695840195909552845193949391830191161580159061246857506006546005546124649190613286565b4211155b151590529392505050565b3361249360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806124c457503360009081526008602052604090205460ff165b6125105760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600061251b83610d5a565b73ffffffffffffffffffffffffffffffffffffffff161461257e5760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c52454144590000006044820152606401610330565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b336125f660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061262757503360009081526008602052604090205460ff165b6126735760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b61267d8282610e04565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff84161790556007546801000000000000000090041633146126f857426005555b5050565b3361271c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061274d57503360009081526008602052604090205460ff165b6127995760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee036127f5576127f26127ec60005473ffffffffffffffffffffffffffffffffffffffff1690565b47612fc6565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128869190613ad9565b90506126f8826128ab60005473ffffffffffffffffffffffffffffffffffffffff1690565b83613095565b6128b9612eea565b73ffffffffffffffffffffffffffffffffffffffff81166129425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6127f281612f51565b670de0b6b3a76400008167ffffffffffffffff16106129ac5760405162461bcd60e51b815260206004820152600860248201527f215f7370726561640000000000000000000000000000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612a2857506fffffffffffffffffffffffffffffffff8416155b80612a455750670de0b6b3a76400008267ffffffffffffffff1610155b15612ac157505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612af55781612af7565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612b3f5782612b41565b855b6fffffffffffffffffffffffffffffffff1690506000612b7367ffffffffffffffff8616670de0b6b3a76400006139ea565b8383612b87670de0b6b3a764000080613249565b612b919190613249565b612b9b9190613a01565b612ba59190613a01565b9050670de0b6b3a7640000811015612c67576000612bcb82670de0b6b3a76400006139ea565b90508667ffffffffffffffff168167ffffffffffffffff1611612bee5786612bf0565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9092169190911790555061103b565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612d565760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c6500000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015612df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e1b9190613b0c565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e949190613b0c565b509194509092508591508390506000612eae88600a613b5c565b905081612ebb8285613249565b612ec59190613a01565b9b5083861015612ed55785612ed7565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051612ffd9190613b6b565b60006040518083038185875af1925050503d806000811461303a576040519150601f19603f3d011682016040523d82523d6000602084013e61303f565b606091505b50509050806130905760405162461bcd60e51b815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610330565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161312c9190613b6b565b6000604051808303816000865af19150503d8060008114613169576040519150601f19603f3d011682016040523d82523d6000602084013e61316e565b606091505b50915091508180156131985750805115806131985750808060200190518101906131989190613ba6565b6131e45760405162461bcd60e51b815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610330565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132815761328161321a565b500290565b600082198211156132995761329961321a565b500190565b600080858511156132ae57600080fd5b838611156132bb57600080fd5b5050820193919092039150565b7fff0000000000000000000000000000000000000000000000000000000000000081358181169160018510156133085780818660010360031b1b83161692505b505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081358181169160048510156133085760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133875761338761321a565b5060010190565b600060ff821660ff84168160ff04811182151516156133af576133af61321a565b029392505050565b600060ff821660ff84168060ff038211156133d4576133d461321a565b019392505050565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156133085760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461344657600080fd5b919050565b80356fffffffffffffffffffffffffffffffff8116811461344657600080fd5b60008060006060848603121561348057600080fd5b61348984613422565b92506134976020850161344b565b9150604084013590509250925092565b6000602082840312156134b957600080fd5b610dd382613422565b803567ffffffffffffffff8116811461344657600080fd5b6000602082840312156134ec57600080fd5b610dd3826134c2565b80151581146127f257600080fd5b6000806040838503121561351657600080fd5b61351f83613422565b9150602083013561352f816134f5565b809150509250929050565b60008060006060848603121561354f57600080fd5b61355884613422565b92506135666020850161344b565b91506135746040850161344b565b90509250925092565b600080600080600060a0868803121561359557600080fd5b61359e86613422565b94506135ac6020870161344b565b93506135ba604087016134c2565b92506135c8606087016134c2565b949793965091946080013592915050565b60008083601f8401126135eb57600080fd5b50813567ffffffffffffffff81111561360357600080fd5b6020830191508360208260051b850101111561361e57600080fd5b9250929050565b600080600080600080600080600060a08a8c03121561364357600080fd5b893567ffffffffffffffff8082111561365b57600080fd5b6136678d838e016135d9565b909b50995060208c013591508082111561368057600080fd5b61368c8d838e016135d9565b909950975060408c01359150808211156136a557600080fd5b6136b18d838e016135d9565b909750955060608c01359150808211156136ca57600080fd5b506136d78c828d016135d9565b9a9d999c50979a9699959894979660800135949350505050565b60ff811681146127f257600080fd5b60006020828403121561371257600080fd5b8135610dd3816136f1565b6000806040838503121561373057600080fd5b61373983613422565b915061374760208401613422565b90509250929050565b6000806000806080858703121561376657600080fd5b61376f85613422565b935061377d6020860161344b565b925061378b604086016134c2565b9150613799606086016134c2565b905092959194509250565b6000602082840312156137b657600080fd5b5035919050565b6000806000806000606086880312156137d557600080fd5b853567ffffffffffffffff808211156137ed57600080fd5b6137f989838a016135d9565b9097509550602088013591508082111561381257600080fd5b5061381f888289016135d9565b96999598509660400135949350505050565b60008060006060848603121561384657600080fd5b61384f84613422565b925061385d60208501613422565b9150604084013561386d816134f5565b809150509250925092565b6000806040838503121561388b57600080fd5b8235613739816136f1565b600080604083850312156138a957600080fd5b6138b283613422565b91506137476020840161344b565b600181815b8085111561391957817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156138ff576138ff61321a565b8085161561390c57918102915b93841c93908002906138c5565b509250929050565b60008261393057506001610dfe565b8161393d57506000610dfe565b8160018114613953576002811461395d57613979565b6001915050610dfe565b60ff84111561396e5761396e61321a565b50506001821b610dfe565b5060208310610133831016604e8410600b841016171561399c575081810a610dfe565b6139a683836138c0565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156133af576133af61321a565b6000610dd363ffffffff841683613921565b6000828210156139fc576139fc61321a565b500390565b600082613a37577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610dd361ffff841683613921565b600060208284031215613a5e57600080fd5b610dd38261344b565b600060208284031215613a7957600080fd5b8151610dd3816136f1565b600067ffffffffffffffff83811690831681811015613aa557613aa561321a565b039392505050565b600067ffffffffffffffff808316818516808303821115613ad057613ad061321a565b01949350505050565b600060208284031215613aeb57600080fd5b5051919050565b805169ffffffffffffffffffff8116811461344657600080fd5b600080600080600060a08688031215613b2457600080fd5b613b2d86613af2565b9450602086015193506040860151925060608601519150613b5060808701613af2565b90509295509295909350565b6000610dd360ff841683613921565b6000825160005b81811015613b8c5760208186018101518583015201613b72565b81811115613b9b576000828501525b509190910192915050565b600060208284031215613bb857600080fd5b8151610dd3816134f556fea2646970667358221220ada6ce175fcb5444fdc5cb726b58628faa1ef94f85539522dd1f4c5fcf0eeb8464736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c6ddb642116100d8578063d736ce7c1161008c578063e52d06ab11610071578063e52d06ab14610c6c578063f2030e7314610ca2578063f2fde38b14610d4757610292565b8063d736ce7c14610c2d578063e1a4e72a14610c5957610292565b8063cdf8bf90116100bd578063cdf8bf9014610b81578063d449a83214610bf4578063d5bade0714610c1a57610292565b8063c6ddb64214610ace578063cc6864b114610b7857610292565b8063aea910781161012f578063be4df7d611610114578063be4df7d614610a7b578063c16116d414610aa8578063c32025a414610abb57610292565b8063aea9107814610a3c578063b80777ea14610a6457610292565b80638da5cb5b146109e557806399235fd414610a035780639d152ee914610a16578063a4a2a8c514610a2957610292565b806331e658a51161020e5780635ab2566c116101c25780636e27fcd6116101a75780636e27fcd6146109b7578063715018a6146109ca57806371ea9205146109d257610292565b80635ab2566c146109915780635bc9f65d146109a457610292565b8063447f3843116101f3578063447f3843146109585780634a502f391461096b5780634b0bddd21461097e57610292565b806331e658a5146108dc57806337e257fd1461094557610292565b80631ffabeb81161026557806324d7806c1161024a57806324d7806c1461089357806328533a6d146108b65780632b8a1c5a146108c957610292565b80631ffabeb81461083b578063217a4b701461084e57610292565b80630925d4a3146107b35780630b7841f5146107c85780630c68ba21146107f55780631142e75314610828575b6000366060336102b760005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806102e857503360009081526008602052604090205460ff165b6103395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e00000000000000000000000060448201526064015b60405180910390fd5b81806103875760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a202163616c6c646174610000000000000000006044820152606401610330565b60008484600081811061039c5761039c6131eb565b919091013560f881901c925060fe1c9050603f82168115806103c157508160ff166002145b1561058a5760008060005b8360ff16811015610515576104328a8a6103e7846005613249565b6103f2906001613286565b906103fe856005613249565b610409906001613286565b610414906001613286565b926104219392919061329e565b61042a916132c8565b60f81c610d5a565b925061049a8a8a610444846005613249565b61044f906001613286565b61045a906001613286565b90610466856005613249565b610471906001613286565b61047c906005613286565b926104899392919061329e565b61049291613310565b60e01c610dda565b91506104a68383610e04565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905561050e81613356565b90506103cc565b5060ff84161561057d57888861052c85600561338e565b6105379060016133b7565b60ff169061054686600561338e565b6105519060016133b7565b61055c9060046133b7565b60ff169261056c9392919061329e565b61057591613310565b60e01c61057f565b425b600555506107a49050565b8160ff166001148061059f57508160ff166003145b1561075c5760008060008060005b8560ff168110156106e3576105df8c8c6105c8846009613249565b6105d3906001613286565b906103fe856009613249565b94506106138c8c6105f1846009613249565b6105fc906001613286565b610607906001613286565b90610466856009613249565b935061067b8c8c610625846009613249565b610630906001613286565b61063b906005613286565b90610647856009613249565b610652906001613286565b61065d906007613286565b9261066a9392919061329e565b610673916133dc565b60f01c611046565b92506106c58c8c61068d846009613249565b610698906001613286565b6106a3906007613286565b906106af856009613249565b6106ba906001613286565b61065d906009613286565b91506106d385858585611068565b6106dc81613356565b90506105ad565b508560ff1660011461074d578a8a6106fc87600961338e565b6107079060016133b7565b60ff169061071688600961338e565b6107219060016133b7565b61072c9060046133b7565b60ff169261073c9392919061329e565b61074591613310565b60e01c61074f565b425b600555506107a492505050565b60405162461bcd60e51b815260206004820152601160248201527f576f6f7261636c6556325f323a20216f700000000000000000000000000000006044820152606401610330565b50505050915050805190602001f35b6107c66107c136600461346b565b6110fd565b005b6107db6107d63660046134a7565b61120f565b604080519283526020830191909152015b60405180910390f35b6108186108033660046134a7565b60096020526000908152604090205460ff1681565b60405190151581526020016107ec565b6107c66108363660046134da565b611241565b6107c6610849366004613503565b611284565b60045461086e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016107ec565b6108186108a13660046134a7565b60086020526000908152604090205460ff1681565b6107c66108c436600461353a565b611390565b6107c66108d7366004613503565b611448565b6108ef6108ea3660046134a7565b6114a6565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff908116918301919091528383015116918101919091526060918201511515918101919091526080016107ec565b6108186109533660046134a7565b6115c4565b6107c661096636600461357d565b61161e565b6107c6610979366004613625565b6116d0565b6107c661098c366004613503565b61183e565b61086e61099f366004613700565b610d5a565b6107c66109b23660046134a7565b61189c565b6107c66109c536600461371d565b61198c565b6107c6611b48565b6107c66109e0366004613750565b611b5c565b60005473ffffffffffffffffffffffffffffffffffffffff1661086e565b6107c6610a113660046137a4565b611c0f565b6107c6610a243660046137bd565b611cb1565b6107c6610a37366004613831565b611ed3565b610a4f610a4a3660046134a7565b6120ca565b604080519283529015156020830152016107ec565b610a6d60055481565b6040519081526020016107ec565b600754610a8f9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016107ec565b6108ef610ab63660046134a7565b61236e565b6107c6610ac9366004613878565b612473565b610b3f610adc3660046134a7565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff92831660208501529116908201526060016107ec565b610a6d60065481565b610bcb610b8f3660046134a7565b6003602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b604080516fffffffffffffffffffffffffffffffff9384168152929091166020830152016107ec565b610c08610c023660046134a7565b50600890565b60405160ff90911681526020016107ec565b6107c6610c28366004613896565b6125d6565b60075461086e9068010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b6107c6610c673660046134a7565b6126fc565b61086e610c7a366004613700565b600a6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610d11610cb03660046134a7565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff90921660208401521515908201526060016107ec565b6107c6610d553660046134a7565b6128b1565b604080516020810190915273e5d7c2a44ffddf6b295a15c148167daaaf5cf34f8152600090600160ff841610610db85760ff83166000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610dd3565b808360ff1660018110610dcd57610dcd6131eb565b60200201515b9392505050565b6000610dea601f8316600a6139d8565b610dfe906307ffffff600585901c16613249565b92915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580610e8057506fffffffffffffffffffffffffffffffff8316155b80610e9d5750670de0b6b3a76400008267ffffffffffffffff1610155b15610ea85750505050565b6000816fffffffffffffffffffffffffffffffff16846fffffffffffffffffffffffffffffffff161015610edc5781610ede565b835b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161115610f265782610f28565b845b6fffffffffffffffffffffffffffffffff1690506000610f5a67ffffffffffffffff8616670de0b6b3a76400006139ea565b8383610f6e670de0b6b3a764000080613249565b610f789190613249565b610f829190613a01565b610f8c9190613a01565b9050670de0b6b3a764000081101561103d576000610fb282670de0b6b3a76400006139ea565b90508567ffffffffffffffff168167ffffffffffffffff16111561103b5773ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805477ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000067ffffffffffffffff8416021790555b505b50505050505050565b6000611056601f8316600a613a3c565b610dfe906107ff600585901c16613249565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020526040902061109885858561294b565b805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff90941693909317179091555050565b3361111d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061114e57503360009081526008602052604090205460ff165b61119a5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6111a48383610e04565b73ffffffffffffffffffffffffffffffffffffffff909216600090815260016020526040902080546fffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216919091179055600555565b600454600090819061123890849073ffffffffffffffffffffffffffffffffffffffff16612cdd565b91509150915091565b611249612eea565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b336112a460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806112d557503360009081526008602052604090205460ff165b6113215760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526009602052604090205460ff166113ef5760405162461bcd60e51b815260206004820152601760248201527f576f6f7261636c6556325f323a2021477561726469616e0000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526003602052604090206fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000000292909116919091179055565b611450612eea565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff700100000000000000000000000000000000820481169483019490945278010000000000000000000000000000000000000000000000009004909216908201529080611565856120ca565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610dfe57506006546005546116159190613286565b42111592915050565b3361163e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061166f57503360009081526008602052604090205460ff165b6116bb5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6116c785858585611068565b60055550505050565b336116f060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061172157503360009081526008602052604090205460ff165b61176d5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b8760005b8181101561182f5761181d8b8b8381811061178e5761178e6131eb565b90506020020160208101906117a391906134a7565b8a8a848181106117b5576117b56131eb565b90506020020160208101906117ca9190613a4c565b8989858181106117dc576117dc6131eb565b90506020020160208101906117f191906134da565b888886818110611803576118036131eb565b905060200201602081019061181891906134da565b611068565b8061182781613356565b915050611771565b50506005555050505050505050565b611846612eea565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b336118bc60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806118ed57503360009081526008602052604090205460ff165b6119395760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6007805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b336119ac60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806119dd57503360009081526008602052604090205460ff165b611a295760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b6004805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811784556000908152600260209081526040918290208054938716939094168317845581517f313ce56700000000000000000000000000000000000000000000000000000000815291519394929363313ce56793838101938290030181865afa158015611ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afe9190613a67565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b611b50612eea565b611b5a6000612f51565b565b33611b7c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611bad57503360009081526008602052604090205460ff165b611bf95760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b611c0584848484611068565b5050426005555050565b33611c2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611c6057503360009081526008602052604090205460ff165b611cac5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600655565b33611cd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611d0257503360009081526008602052604090205460ff165b611d4e5760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b83828114611d9e5760405162461bcd60e51b815260206004820152601c60248201527f576f6f7261636c6556325f323a206c656e6774685f494e56414c4944000000006044820152606401610330565b60005b81811015611ec857611dff878783818110611dbe57611dbe6131eb565b9050602002016020810190611dd391906134a7565b868684818110611de557611de56131eb565b9050602002016020810190611dfa9190613a4c565b610e04565b848482818110611e1157611e116131eb565b9050602002016020810190611e269190613a4c565b60016000898985818110611e3c57611e3c6131eb565b9050602002016020810190611e5191906134a7565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905580611ec081613356565b915050611da1565b505060055550505050565b33611ef360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611f2457503360009081526008602052604090205460ff165b611f705760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015612017573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203b9190613a67565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600554600454929384936fffffffffffffffffffffffffffffffff90931692849161211e91889116612cdd565b5090506000831580159061213e575060065461213a9084613286565b4211155b9050600082158015906121d957506007548590670de0b6b3a76400009061216f9067ffffffffffffffff1682613a84565b6121839067ffffffffffffffff1686613249565b61218d9190613a01565b111580156121d95750600754670de0b6b3a7640000906121b79067ffffffffffffffff1682613aad565b6121cb9067ffffffffffffffff1685613249565b6121d59190613a01565b8511155b905081156121ec57849650809550612243565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff1661223957600061223b565b825b965086151595505b85156123645773ffffffffffffffffffffffffffffffffffffffff88166000908152600360209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915288116122fd5760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d696e00000000000000000000000000006044820152606401610330565b80602001516fffffffffffffffffffffffffffffffff1688106123625760405162461bcd60e51b815260206004820152601260248201527f576f6f7261636c6556325f323a20216d617800000000000000000000000000006044820152606401610330565b505b5050505050915091565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a5284518316885251811694870194909452905190921695840195909552845193949391830191161580159061246857506006546005546124649190613286565b4211155b151590529392505050565b3361249360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806124c457503360009081526008602052604090205460ff165b6125105760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b600061251b83610d5a565b73ffffffffffffffffffffffffffffffffffffffff161461257e5760405162461bcd60e51b815260206004820152601d60248201527f576f6f7261636c6556325f323a202169645f5345545f414c52454144590000006044820152606401610330565b60ff919091166000908152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b336125f660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061262757503360009081526008602052604090205460ff165b6126735760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b61267d8282610e04565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff84161790556007546801000000000000000090041633146126f857426005555b5050565b3361271c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061274d57503360009081526008602052604090205460ff165b6127995760405162461bcd60e51b815260206004820152601460248201527f576f6f7261636c6556325f323a202141646d696e0000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee036127f5576127f26127ec60005473ffffffffffffffffffffffffffffffffffffffff1690565b47612fc6565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015612862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128869190613ad9565b90506126f8826128ab60005473ffffffffffffffffffffffffffffffffffffffff1690565b83613095565b6128b9612eea565b73ffffffffffffffffffffffffffffffffffffffff81166129425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610330565b6127f281612f51565b670de0b6b3a76400008167ffffffffffffffff16106129ac5760405162461bcd60e51b815260206004820152600860248201527f215f7370726561640000000000000000000000000000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205467ffffffffffffffff7801000000000000000000000000000000000000000000000000820416906fffffffffffffffffffffffffffffffff16801580612a2857506fffffffffffffffffffffffffffffffff8416155b80612a455750670de0b6b3a76400008267ffffffffffffffff1610155b15612ac157505073ffffffffffffffffffffffffffffffffffffffff9092166000908152600160205260409020805467ffffffffffffffff90931678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9093169290921790915550565b6000816fffffffffffffffffffffffffffffffff16856fffffffffffffffffffffffffffffffff161015612af55781612af7565b845b6fffffffffffffffffffffffffffffffff1690506000826fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff161115612b3f5782612b41565b855b6fffffffffffffffffffffffffffffffff1690506000612b7367ffffffffffffffff8616670de0b6b3a76400006139ea565b8383612b87670de0b6b3a764000080613249565b612b919190613249565b612b9b9190613a01565b612ba59190613a01565b9050670de0b6b3a7640000811015612c67576000612bcb82670de0b6b3a76400006139ea565b90508667ffffffffffffffff168167ffffffffffffffff1611612bee5786612bf0565b805b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260409020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9092169190911790555061103b565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160205260409020805467ffffffffffffffff881678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff9091161790555050505050505050565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680612d565760405162461bcd60e51b815260206004820152601560248201527f576f6f7261636c6556325f323a20216f7261636c6500000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015612df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e1b9190613b0c565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e949190613b0c565b509194509092508591508390506000612eae88600a613b5c565b905081612ebb8285613249565b612ec59190613a01565b9b5083861015612ed55785612ed7565b835b9a50505050505050505050509250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610330565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051612ffd9190613b6b565b60006040518083038185875af1925050503d806000811461303a576040519150601f19603f3d011682016040523d82523d6000602084013e61303f565b606091505b50509050806130905760405162461bcd60e51b815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610330565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161312c9190613b6b565b6000604051808303816000865af19150503d8060008114613169576040519150601f19603f3d011682016040523d82523d6000602084013e61316e565b606091505b50915091508180156131985750805115806131985750808060200190518101906131989190613ba6565b6131e45760405162461bcd60e51b815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610330565b5050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156132815761328161321a565b500290565b600082198211156132995761329961321a565b500190565b600080858511156132ae57600080fd5b838611156132bb57600080fd5b5050820193919092039150565b7fff0000000000000000000000000000000000000000000000000000000000000081358181169160018510156133085780818660010360031b1b83161692505b505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081358181169160048510156133085760049490940360031b84901b1690921692915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133875761338761321a565b5060010190565b600060ff821660ff84168160ff04811182151516156133af576133af61321a565b029392505050565b600060ff821660ff84168060ff038211156133d4576133d461321a565b019392505050565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156133085760029490940360031b84901b1690921692915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461344657600080fd5b919050565b80356fffffffffffffffffffffffffffffffff8116811461344657600080fd5b60008060006060848603121561348057600080fd5b61348984613422565b92506134976020850161344b565b9150604084013590509250925092565b6000602082840312156134b957600080fd5b610dd382613422565b803567ffffffffffffffff8116811461344657600080fd5b6000602082840312156134ec57600080fd5b610dd3826134c2565b80151581146127f257600080fd5b6000806040838503121561351657600080fd5b61351f83613422565b9150602083013561352f816134f5565b809150509250929050565b60008060006060848603121561354f57600080fd5b61355884613422565b92506135666020850161344b565b91506135746040850161344b565b90509250925092565b600080600080600060a0868803121561359557600080fd5b61359e86613422565b94506135ac6020870161344b565b93506135ba604087016134c2565b92506135c8606087016134c2565b949793965091946080013592915050565b60008083601f8401126135eb57600080fd5b50813567ffffffffffffffff81111561360357600080fd5b6020830191508360208260051b850101111561361e57600080fd5b9250929050565b600080600080600080600080600060a08a8c03121561364357600080fd5b893567ffffffffffffffff8082111561365b57600080fd5b6136678d838e016135d9565b909b50995060208c013591508082111561368057600080fd5b61368c8d838e016135d9565b909950975060408c01359150808211156136a557600080fd5b6136b18d838e016135d9565b909750955060608c01359150808211156136ca57600080fd5b506136d78c828d016135d9565b9a9d999c50979a9699959894979660800135949350505050565b60ff811681146127f257600080fd5b60006020828403121561371257600080fd5b8135610dd3816136f1565b6000806040838503121561373057600080fd5b61373983613422565b915061374760208401613422565b90509250929050565b6000806000806080858703121561376657600080fd5b61376f85613422565b935061377d6020860161344b565b925061378b604086016134c2565b9150613799606086016134c2565b905092959194509250565b6000602082840312156137b657600080fd5b5035919050565b6000806000806000606086880312156137d557600080fd5b853567ffffffffffffffff808211156137ed57600080fd5b6137f989838a016135d9565b9097509550602088013591508082111561381257600080fd5b5061381f888289016135d9565b96999598509660400135949350505050565b60008060006060848603121561384657600080fd5b61384f84613422565b925061385d60208501613422565b9150604084013561386d816134f5565b809150509250925092565b6000806040838503121561388b57600080fd5b8235613739816136f1565b600080604083850312156138a957600080fd5b6138b283613422565b91506137476020840161344b565b600181815b8085111561391957817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156138ff576138ff61321a565b8085161561390c57918102915b93841c93908002906138c5565b509250929050565b60008261393057506001610dfe565b8161393d57506000610dfe565b8160018114613953576002811461395d57613979565b6001915050610dfe565b60ff84111561396e5761396e61321a565b50506001821b610dfe565b5060208310610133831016604e8410600b841016171561399c575081810a610dfe565b6139a683836138c0565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156133af576133af61321a565b6000610dd363ffffffff841683613921565b6000828210156139fc576139fc61321a565b500390565b600082613a37577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000610dd361ffff841683613921565b600060208284031215613a5e57600080fd5b610dd38261344b565b600060208284031215613a7957600080fd5b8151610dd3816136f1565b600067ffffffffffffffff83811690831681811015613aa557613aa561321a565b039392505050565b600067ffffffffffffffff808316818516808303821115613ad057613ad061321a565b01949350505050565b600060208284031215613aeb57600080fd5b5051919050565b805169ffffffffffffffffffff8116811461344657600080fd5b600080600080600060a08688031215613b2457600080fd5b613b2d86613af2565b9450602086015193506040860151925060608601519150613b5060808701613af2565b90509295509295909350565b6000610dd360ff841683613921565b6000825160005b81811015613b8c5760208186018101518583015201613b72565b81811115613b9b576000828501525b509190910192915050565b600060208284031215613bb857600080fd5b8151610dd3816134f556fea2646970667358221220ada6ce175fcb5444fdc5cb726b58628faa1ef94f85539522dd1f4c5fcf0eeb8464736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.