More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,972,729 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x81020005 | 44240915 | 2 secs ago | IN | 0 ETH | 0.00000401 | ||||
0xc1020005 | 44240913 | 5 secs ago | IN | 0 ETH | 0.00000409 | ||||
0xc1020005 | 44240908 | 11 secs ago | IN | 0 ETH | 0.0000041 | ||||
0xc1020005 | 44240905 | 14 secs ago | IN | 0 ETH | 0.00000409 | ||||
0x81020005 | 44240889 | 30 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240879 | 40 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240875 | 44 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240874 | 45 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240872 | 47 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240871 | 48 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240869 | 50 secs ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240865 | 54 secs ago | IN | 0 ETH | 0.00000401 | ||||
0xc2020005 | 44240861 | 58 secs ago | IN | 0 ETH | 0.0000043 | ||||
0x81020005 | 44240853 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240851 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240847 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0xc1020005 | 44240845 | 1 min ago | IN | 0 ETH | 0.00000409 | ||||
0xc1020005 | 44240842 | 1 min ago | IN | 0 ETH | 0.00000409 | ||||
0xc1000076 | 44240841 | 1 min ago | IN | 0 ETH | 0.00000408 | ||||
0xc1020005 | 44240840 | 1 min ago | IN | 0 ETH | 0.0000041 | ||||
0x81020005 | 44240828 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240826 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240818 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240816 | 1 min ago | IN | 0 ETH | 0.00000401 | ||||
0x81020005 | 44240813 | 1 min ago | IN | 0 ETH | 0.00000401 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
33459515 | 129 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
WooracleV2_2
Compiler Version
v0.8.14+commit.80d49f37
ZkSolc Version
v1.3.5
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[2] memory CONST_BASES = [ // mload // NOTE: Update token address for different chains 0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91, // WETH 0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4 // USDC.e ]; 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); }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title TransferHelper /// @notice Contains helper methods for interacting with ERC20 and native tokens that do not consistently return true/false /// @dev implementation from https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.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"); } }
{ "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"basesMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bound","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"clOracles","outputs":[{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint8","name":"decimal","type":"uint8"},{"internalType":"bool","name":"cloPreferred","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"cloPrice","outputs":[{"internalType":"uint256","name":"refPrice","type":"uint256"},{"internalType":"uint256","name":"refTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"}],"name":"getBase","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stuckToken","type":"address"}],"name":"inCaseTokenGotStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"infos","outputs":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"uint64","name":"spread","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGuardian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"isWoFeasible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"}],"name":"postPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bases","type":"address[]"},{"internalType":"uint128[]","name":"_prices","type":"uint128[]"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postPriceList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint64","name":"_spread","type":"uint64"},{"internalType":"uint64","name":"_coeff","type":"uint64"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_price","type":"uint128"},{"internalType":"uint64","name":"_spread","type":"uint64"},{"internalType":"uint64","name":"_coeff","type":"uint64"}],"name":"postState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bases","type":"address[]"},{"internalType":"uint128[]","name":"_prices","type":"uint128[]"},{"internalType":"uint64[]","name":"_spreads","type":"uint64[]"},{"internalType":"uint64[]","name":"_coeffs","type":"uint64[]"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"postStateList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"price","outputs":[{"internalType":"uint256","name":"priceOut","type":"uint256"},{"internalType":"bool","name":"feasible","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"priceRanges","outputs":[{"internalType":"uint128","name":"min","type":"uint128"},{"internalType":"uint128","name":"max","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quoteToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_id","type":"uint8"},{"internalType":"address","name":"_base","type":"address"}],"name":"setBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_bound","type":"uint64"}],"name":"setBound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCLOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCloPreferred","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_quote","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"name":"setQuoteToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"},{"internalType":"uint128","name":"_min","type":"uint128"},{"internalType":"uint128","name":"_max","type":"uint128"}],"name":"setRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_staleDuration","type":"uint256"}],"name":"setStaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wooPP","type":"address"}],"name":"setWooPP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"state","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2_2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_base","type":"address"}],"name":"woState","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2_2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wooPP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100040b333228e509259e20f56bb25aed3b7150a20c50534e51c0de66248e0900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0004000000000002000600000000000200000000030100190000006003300270000003a10430019700030000004103550002000000010355000003a10030019d000100000000001f0000008001000039000000400010043f000000010120019000000000060004110000008c0000c13d0000000001000031000000040110008c000000af0000413d0000000201000367000000000101043b000000e001100270000003a90210009c000000b80000613d000003aa0210009c000000fa0000613d000003ab0210009c0000011e0000613d000003ac0210009c000001440000613d000003ad0210009c000001660000613d000003ae0210009c000001920000613d000003af0210009c000001ab0000613d000003b00210009c000001d10000613d000003b10210009c000002080000613d000003b20210009c000002240000613d000003b30210009c000002790000613d000003b40210009c000002b10000613d000003b50210009c000002f20000613d000003b60210009c000003380000613d000003b70210009c000003540000613d000003b80210009c000003720000613d000003b90210009c000003a20000613d000003ba0210009c000004090000613d000003bb0210009c000004360000613d000003bc0210009c000004790000613d000003bd0210009c000004910000613d000003be0210009c000004b80000613d000003bf0210009c0000051c0000613d000003c00210009c0000058f0000613d000003c10210009c000005b20000613d000003c20210009c000005ca0000613d000003c30210009c000005e30000613d000003c40210009c0000062b0000613d000003c50210009c000006670000613d000003c60210009c000006920000613d000003c70210009c000006aa0000613d000003c80210009c000006d10000613d000003c90210009c000006ec0000613d000003ca0210009c000007360000613d000003cb0210009c000007500000613d000003cc0210009c000007960000613d000003cd0210009c000007ba0000613d000003ce0110009c000000af0000c13d0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d000003a40110009c000007cb0000213d0e800a040000040f0000000606000029000000000160004c000007ea0000c13d000000400100043d0000006402100039000003d10300004100000000003204350000004402100039000003d2030000410000000000320435000000240210003900000026030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000084020000390e8009990000040f0000000001000416000000000110004c000007cb0000c13d000000000200041a000003a201200197000000000161019f000000000010041b000003a1010000410000000003000414000003a10430009c0000000001034019000000c001100210000003a3011001c7000003a4052001970000800d020000390000000303000039000003a5040000410e800e760000040f0000000101200190000007cb0000613d0000012c010000390000000602000039000000000012041b0000000701000039000000000201041a000003a602200197000003a7022001c7000000000021041b00000020010000390000010000100443000001200000044300000100010000390000004002000039000003a8030000410e80098f0000040f0000000001000416000000000110004c000007cb0000c13d00000000010000310e800d290000040f000000600200043d000000800100003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000600310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002401100370000000000101043b000500000001001d000003de0110009c000007cb0000213d0000000102000039000000000100041a000003a401100197000000000161004b000400000002001d0000000001020019000000e20000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f000000060100002900000005020000290e800b4a0000040f000000060100002900000000001004350000000401000029000000200010043f00000000010000190e80096a0000040f000000000201041a000003df022001970000000503000029000000000232019f000000000021041b00000044010000390000000201100367000000000101043b0000000502000039000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000401000039000500000001001d0000000201100367000000000101043b000600000001001d0e8009a20000040f0000000501000029000000000101041a000003a40210019700000006010000290e800c230000040f000000400300043d0000002004300039000000000024043500000000001304350000004002000039000000000103001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0000000601000029000003a40110019700000000001004350000000901000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff011001900000000002000019000000010200c039000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a80000040f0e800a040000040f0000000601000029000003d7011001970000000702000039000000000302041a000003a603300197000000000113019f000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d0000000001000031000600000006001d0e8009ae0000040f00000006040000290000000103000039000400000001001d000500000002001d000000000100041a000003a401100197000000000141004b0000017b0000613d00000000004004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0310018f00000000010300190e800a170000040f0000000401000029000003a40110019700000000001004350000000201000039000000200010043f000003e6010000410000000502000029000000000220004c0000000001006019000600000001001d00000000010000190e80096a0000040f000000000201041a000003e7022001970000000603000029000000000232019f000000000021041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000401000039000000000101041a000003a402100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0000000601000029000003a40110019700000000001004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff011001900000000002000019000000010200c039000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000600310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002402100370000000000202043b000500000002001d000003de0220009c000007cb0000213d0000004401100370000000000101043b000400000001001d000003de0110009c000007cb0000213d00000000006004350000000901000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff01100190000008780000c13d000000400100043d0000004402100039000003ec030000410000000000320435000000240210003900000017030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f0000000001000416000000000110004c000007cb0000c13d00000000010000310e8009ae0000040f000500000001001d000600000002001d0e800a040000040f0000000501000029000003a40110019700000000001004350000000901000039000000200010043f00000000010000190e80096a0000040f000001000200008a000000000301041a000000000223016f0000000603000029000000000330004c0000000003000019000000010300c039000000000232019f000000000021041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0e800b360000040f0000000601000029000003a40110019700000000001004350000000101000039000000200010043f00000000010000190e80096a0000040f000500000001001d000000400100043d000400000001001d0e800a280000040f0000000501000029000000000101041a00000004040000290000004003400039000500000003001d000000c0021002700000000000230435000003de0210019700000000002404350000002002400039000400000002001d0000008001100270000003d701100197000000000012043500000006010000290e800a930000040f00000005030000290000000003030433000500000003001d00000004030000290000000003030433000400000003001d000600000001001d000300000002001d0e800a860000040f00000000020100190000000301000029000000000110004c0000000001000019000000010100c039000000600320003900000000001304350000000401000029000003d701100197000000400320003900000000001304350000000501000029000003d701100197000000200320003900000000001304350000000601000029000003de011001970000000000120435000000400100043d000600000001001d0e8009cb0000040f00000006030000290000000002310049000000000103001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000003a40210009c000007cb0000213d00000000001004350000000101000039000000200010043f00000000010000190e80096a0000040f000000000101041a000003de011001980000000001000019000002ab0000613d0000000501000039000000000101041a000600000001001d000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f00000006040000290000000602000039000000000202041a000000010300008a000000000332013f000000000334004b000006240000213d0000000002420019000000000121004b0000000001000019000000010100a039000000010210018f000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000a00310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002402100370000000000202043b000500000002001d000003de0220009c000007cb0000213d0000004402100370000000000202043b000400000002001d000003d70220009c000007cb0000213d0000006401100370000000000101043b000300000001001d000003d70110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000000000262004b000002e30000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000006010000290000000502000029000000040300002900000003040000290e800b910000040f00000084010000390000000201100367000000000101043b0000000502000039000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d0000000002000031000000040120008a000003cf03000041000000a00410008c00000000040000190000000004034019000003cf01100197000000000510004c000000000300a019000003cf0110009c00000000010400190000000001036019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000003d70310009c000007cb0000213d00000004011000390e8009e10000040f000600000001001d000500000002001d00000024010000390000000201100367000000000101043b000003d70210009c000007cb0000213d000000000200003100000004011000390e8009e10000040f000400000001001d000300000002001d00000044010000390000000201100367000000000101043b000003d70210009c000007cb0000213d000000000200003100000004011000390e8009e10000040f000200000001001d000100000002001d00000064010000390000000201100367000000000101043b000003d70210009c000007cb0000213d000000000200003100000004011000390e8009e10000040f00000084030000390000000203300367000000000903043b000000000701001900000000080200190000000601000029000000050200002900000004030000290000000304000029000000020500002900000001060000290e800a340000040f000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d00000000010000310e8009ae0000040f000500000001001d000600000002001d0e800a040000040f0000000501000029000003a40110019700000000001004350000000801000039000000200010043f00000000010000190e80096a0000040f000001000200008a000000000301041a000000000223016f0000000603000029000000000330004c0000000003000019000000010300c039000000000232019f000000000021041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009fe0000040f00000006010000290e800d080000040f000003a402100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d000003a40110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000000000262004b000003950000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000006010000290000004001100210000003ea011001970000000702000039000000000302041a000003eb03300197000000000113019f000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000400310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002401100370000000000101043b000500000001001d000003a40110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000000000262004b000003ca0000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f0000000401000039000000000201041a000003a2022001970000000603000029000000000232019f000000000021041b00000000003004350000000201000039000000200010043f00000000010000190e80096a0000040f000000000201041a000003a2032001970000000502000029000000000323019f000400000001001d000000000031041b000003e301000041000000400300043d00000000001304350000000001000414000000040420008c000003ea0000613d00000004040000390000002006000039000600000003001d00000006050000290e8009330000040f0000000603000029000000000110004c000008170000613d0000000101000031000000200210008c000000200200003900000000020140190000001f02200039000000600420018f0000000002340019000000000442004b00000000050000190000000105004039000003d70420009c000008550000213d0000000104500190000008550000c13d000000400020043f000000200110008c000007cb0000413d0000000001030433000000ff0210008c000007cb0000213d000000a001100210000003e4011001970000000403000029000000000203041a000003e502200197000000000112019f000000000013041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0e800a040000040f000000000100041a000003a202100197000000000020041b000000400500043d000003a1020000410000000003000414000003a10430009c0000000003028019000003a10450009c000600000005001d00000000020540190000004002200210000000c003300210000000000223019f000003a405100197000003d0012001c70000800d020000390000000303000039000003a50400004100000000060000190e800e760000040f0000000101200190000007cb0000613d0000000601000029000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000800310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002402100370000000000202043b000500000002001d000003de0220009c000007cb0000213d0000004402100370000000000202043b000400000002001d000003d70220009c000007cb0000213d0000006401100370000000000101043b000300000001001d000003d70110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000000000262004b000004680000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000006010000290000000502000029000000040300002900000003040000290e800b910000040f000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f0000000502000039000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d000000000100041a000003a402100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000101000039000000000200041a000003a402200197000000000262004b000004ae0000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000004010000390000000201100367000000000101043b0000000602000039000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d0000000002000031000000040120008a000003cf03000041000000600410008c00000000040000190000000004034019000003cf01100197000000000510004c000000000300a019000003cf0110009c00000000010400190000000001036019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000003d70310009c000007cb0000213d0000000401100039000600000006001d0e8009e10000040f000200000001001d000300000002001d00000024010000390000000201100367000000000101043b000003d70210009c000007cb0000213d000000000200003100000004011000390e8009e10000040f00000006040000290000000103000039000100000001001d000500000002001d000000000100041a000003a401100197000000000141004b000004ea0000613d00000000004004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0310018f00000000010300190e800a170000040f00000003010000290000000502000029000000000121004b0000085c0000c13d00000000020000190000000301000029000000000112004b000008cd0000813d000500000002001d0000000502200210000000020100002900000000011200190000000203000367000600000001001d000000000113034f000000000101043b000003a40410009c000007cb0000213d00000001040000290000000002420019000400000002001d000000000223034f000000000202043b000003de0320009c000007cb0000213d0e800b4a0000040f00000006010000290000000201100367000000000101043b000003a40210009c000007cb0000213d00000000001004350000000101000039000000200010043f00000000010000190e80096a0000040f00000004020000290000000202200367000000000202043b000003de0320009c000007cb0000213d000000000301041a000003df03300197000000000223019f000000000021041b00000005020000290000000102200039000004f10000013d0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000600310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000003a40220009c000007cb0000213d0000002402100370000000000202043b000500000002001d000003a40220009c000007cb0000213d0000004401100370000000000201043b000000000120004c0000000001000019000000010100c039000400000002001d000000000112004b000007cb0000c13d0000000101000039000000000200041a000003a402200197000000000262004b0000054c0000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f000000060100002900000000001004350000000201000039000000200010043f00000000010000190e80096a0000040f000000000201041a000003a2032001970000000502000029000000000323019f000300000001001d000000000031041b000003e301000041000000400300043d00000000001304350000000001000414000000040420008c000005670000613d00000004040000390000002006000039000600000003001d00000006050000290e8009330000040f0000000603000029000000000110004c000008170000613d0000000101000031000000200210008c000000200200003900000000020140190000001f02200039000000600420018f00000000050300190000000002340019000000000342004b00000000030000190000000103004039000003d70420009c000008550000213d0000000103300190000008550000c13d000000400020043f000000200110008c000007cb0000413d0000000001050433000000ff0210008c000007cb0000213d000000a001100210000003e4011001970000000303000029000000000203041a000003e502200197000000000112019f000000000013041b000003e6010000410000000402000029000000000220004c0000000001006019000000000203041a000003e702200197000000000112019f000000000013041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f00000006010000290e800a930000040f000000000220004c0000000002000019000000010200c039000000400300043d0000002004300039000000000024043500000000001304350000004002000039000000000103001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000501000039000000000201041a000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000701000039000000000101041a000003d702100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d000003a40110009c000007cb0000213d0e800b360000040f000000060100002900000000001004350000000101000039000000200010043f00000000010000190e80096a0000040f000000400200043d000003e20320009c000008550000213d0000006003200039000000400030043f000000000101041a0000004003200039000000c004100270000600000004001d0000000000430435000003de03100198000500000003001d000000000032043500000020022000390000008001100270000003d701100197000400000001001d00000000001204350000000001000019000008910000613d0000000501000039000000000101041a000300000001001d000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f00000003040000290000000602000039000000000202041a000000010300008a000000000332013f000000000334004b0000088d0000a13d000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000400310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000600000002001d000000ff0220008c000007cb0000213d0000002401100370000000000101043b000500000001001d000003a40110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000000000262004b000006530000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000006010000290e800d080000040f000003a4011001980000086a0000c13d000000060100002900000000001004350000000a01000039000000200010043f00000000010000190e80096a0000040f000000000201041a000003a2022001970000000503000029000000000232019f000000000021041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0000000601000029000003a40110019700000000001004350000000101000039000000200010043f00000000010000190e80096a0000040f000000000201041a000000400100043d0000004003100039000000c00420027000000000004304350000008003200270000003d70330019700000020041000390000000000340435000003de022001970000000000210435000000600200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000601000039000000000201041a000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0000000601000029000003a40110019700000000001004350000000301000039000000200010043f00000000010000190e80096a0000040f000000000201041a000000400100043d000000200310003900000080042002700000000000430435000003de022001970000000000210435000000400200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b0e8009a20000040f0000000802000039000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000400310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000002010003670000000402100370000000000202043b000500000002001d000003a40220009c000007cb0000213d0000002401100370000000000101043b000400000001001d000003de0110009c000007cb0000213d0000000102000039000000000100041a000003a401100197000000000161004b000300000002001d0000000001020019000600000006001d000007180000613d000000060100002900000000001004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f000000050100002900000004020000290e800b4a0000040f000000050100002900000000001004350000000301000029000000200010043f00000000010000190e80096a0000040f000000000201041a000003df022001970000000403000029000000000232019f000000000021041b0000000701000039000000000101041a0000004001100270000003a4011001970000000602000029000000000112004b000008f90000613d000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f0000000502000039000000000012041b000008f90000013d0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000000310004c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d0000000701000039000000000101041a0000004001100270000003a402100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d000003a40110009c000007cb0000213d0000000101000039000000000200041a000003a402200197000500000002001d000000000262004b000007740000613d00000000006004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f0000000602000029000003d50120009c000008050000c13d000000000100041a000600000001001d000003db010000410000000000100439000000000100041000000004001004430000800a0100003900000024020000390e80097d0000040f0000000602000029000003a4042001970000000005010019000000400100043d000003dc0210009c000008550000213d0000002003100039000000400030043f00000000000104350000000101000039000600000001001d0000000001000414000000040240008c000008bb0000613d000000000250004c000008a80000c13d000000000204001900000000040000190e8009200000040f000600000001001d000008bb0000013d0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007cb0000c13d00000004010000390000000201100367000000000101043b000600000001001d0e8009fe0000040f0000000601000029000000ff0110018f00000000001004350000000a01000039000000200010043f00000000010000190e80096a0000040f000000000101041a000003a402100197000000400100043d0000000000210435000000200200003900000000030000190e80098f0000040f0000000001000416000000000110004c000007cb0000c13d000000040100008a0000000001100031000003cf02000041000000200310008c00000000030000190000000003024019000003cf01100197000000000410004c000000000200a019000003cf0110009c00000000010300190000000001026019000000000110004c000007ce0000613d000000000100001900000000020000190e8009990000040f00000004010000390000000201100367000000000101043b000600000001001d0e8009a20000040f0000000601000029000003a40110019700000000001004350000000201000039000000200010043f00000000010000190e80096a0000040f000000000201041a000000a001200270000000ff0310018f000000400100043d00000020041000390000000000340435000003d4032001980000000003000019000000010300c03900000040041000390000000000340435000003a4022001970000000000210435000000600200003900000000030000190e80098f0000040f000000000100041a000003a202100197000000000262019f000000000020041b000000400500043d000003a1020000410000000003000414000003a10430009c0000000003028019000003a10450009c000500000005001d00000000020540190000004002200210000000c003300210000000000223019f000003a405100197000003d0012001c70000800d020000390000000303000039000003a5040000410e800e760000040f0000000101200190000007cb0000613d0000000501000029000000000200001900000000030000190e80098f0000040f000000400300043d000003d60100004100000000001304350000000001000410000003a404100197000000040530003900000000010004140000000000450435000000040420008c000008370000613d00000024040000390000002006000039000400000003001d00000004050000290e8009330000040f0000000403000029000000000110004c000008370000c13d0000000302000367000000400100043d00000001040000310000001f0340018f0000000504400272000008260000613d000000000500001900000005065002100000000007610019000000000662034f000000000606043b00000000006704350000000105500039000000000645004b0000081e0000413d000000000530004c000008350000613d0000000504400210000000000242034f00000000044100190000000303300210000000000504043300000000053501cf000000000535022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000252019f000000000024043500000001020000310e8009990000040f0000000101000031000000200210008c000000200200003900000000020140190000001f02200039000000600420018f0000000002340019000000000442004b00000000050000190000000105004039000003d70420009c000008550000213d0000000104500190000008550000c13d000000400020043f000000200110008c000007cb0000413d0000000001030433000000440320003900000000001304350000002003200039000003d801000041000000000013043500000024012000390000000504000029000000000041043500000044010000390000000000120435000003d90120009c000008d60000a13d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f000000400100043d0000004402100039000003e803000041000000000032043500000024021000390000001c030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000000400100043d0000004402100039000003e103000041000000000032043500000024021000390000001d030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000000060100002900000000001004350000000301000039000000200010043f00000000010000190e80096a0000040f000000000201041a000003df022001970000000503000029000000000232019f000000000021041b00000004020000290000008002200210000000000301041a000003de03300197000000000223019f000000000021041b000000400100043d000000000200001900000000030000190e80098f0000040f0000000002420019000000000121004b0000000001000019000000010100a039000300000001001d0e800a860000040f0000000302000029000000010320018f00000000020100190000006001200039000000000031043500000040012000390000000403000029000000000031043500000020012000390000000603000029000000000031043500000005010000290000000000120435000000400100043d000600000001001d0e8009cb0000040f00000006030000290000000002310049000000000103001900000000030000190e80098f0000040f000003a102000041000003a10610009c0000000001028019000003a10630009c00000000020340190000004002200210000000c001100210000000000121019f000003d0011001c70000800902000039000000000305001900000000050000190e800e760000040f00000000030100190000006003300270000103a10030019d0003000000010355000000010120018f000600000001001d0e800e3f0000040f0000000601000029000000000110004c000008f90000c13d000000400100043d0000004402100039000003dd030000410000000000320435000000240210003900000003030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f00000044010000390000000201100367000000000101043b0000000502000039000000000012041b000000400100043d000000000200001900000000030000190e80098f0000040f0000008001200039000000400010043f00000000010004140000000604000029000000040440008c000500000000001d000008e40000613d000000000402043300000006020000290e8009200000040f000000000110004c00000000010000190000000101006039000500000001001d0e800e3f0000040f00000005020000290000000102200190000008f60000613d000000400100043d0000004402100039000003da030000410000000000320435000000240210003900000002030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f0000000002010433000000000320004c000008fd0000c13d000000400100043d000000000200001900000000030000190e80098f0000040f000003cf03000041000000200420008c00000000040000190000000004034019000003cf02200197000000000520004c000000000300a019000003cf0220009c00000000020400190000000002036019000000000220004c000007cb0000c13d00000020011000390000000001010433000000000210004c0000000002000019000000010200c039000000000221004b000007cb0000c13d000000000110004c000008e80000613d000008f90000013d000000000201001900000001010000390000000a03000039000000000420004c0000091f0000613d00000001042001900000000004030019000000010400603900000000411400a9000000010220027000000000433300a9000009160000013d000000000001042d000003a105000041000003a10630009c00000000030580190000004003300210000003a10640009c00000000040580190000006004400210000000000334019f000003a10410009c0000000001058019000000c001100210000000000113019f0e800e760000040f00000000030100190000006003300270000103a10030019d0003000000010355000000010120018f000000000001042d0002000000000002000200000006001d000100000005001d000003a105000041000003a10630009c00000000030580190000004003300210000003a10640009c00000000040580190000006004400210000000000334019f000003a10410009c0000000001058019000000c001100210000000000113019f0e800e7b0000040f000000010900002900000000030100190000006003300270000003a1033001970000000205000029000000000453004b00000000050340190000001f0450018f0000000505500272000009560000613d000000000600001900000005076002100000000008790019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b0000094e0000413d000000010220018f000000000640004c000009660000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000100000003001f00030000000103550000000001020019000000000001042d000003a1020000410000000003000414000003a10430009c0000000003028019000003a10410009c00000000010280190000004001100210000000c002300210000000000112019f000003ed011001c700008010020000390e800e7b0000040f00000001022001900000097a0000613d000000000101043b000000000001042d000000000100001900000000020000190e8009990000040f0000000003010019000003a1010000410000000004000414000003a10540009c0000000001044019000000c00110021000000060022002100000000001120019000003ee0110004100000000020300190e800e7b0000040f00000001022001900000098c0000613d000000000101043b000000000001042d000000000100001900000000020000190e8009990000040f000003a104000041000003a10510009c000000000104801900000040011002100000000001310019000003a10320009c00000000020480190000006002200210000000000121001900000e810001042e000003a103000041000003a10420009c0000000002038019000003a10410009c000000000103801900000040011002100000006002200210000000000112019f00000e8200010430000003ef0110009c000009a50000813d000000000001042d000000000100001900000000020000190e8009990000040f000003f00110009c000009ab0000813d000000000001042d000000000100001900000000020000190e8009990000040f000000040110008a000003cf020000410000003f0310008c00000000030000190000000003022019000003cf01100197000000000410004c0000000002008019000003cf0110009c00000000010300190000000001026019000000000110004c000009c80000613d00000002020003670000000401200370000000000101043b000003a40310009c000009c80000213d0000002402200370000000000202043b000000000320004c0000000003000019000000010300c039000000000332004b000009c80000c13d000000000001042d000000000100001900000000020000190e8009990000040f0000000003020433000003de03300197000000000031043500000020032000390000000003030433000003d7033001970000002004100039000000000034043500000040032000390000000003030433000003d7033001970000004004100039000000000034043500000060022000390000000002020433000000000220004c0000000002000019000000010200c039000000600310003900000000002304350000008001100039000000000001042d0000001f03100039000003cf04000041000000000523004b00000000050000190000000005044019000003cf06200197000003cf03300197000000000763004b000000000400a019000000000363013f000003cf0330009c00000000030500190000000003046019000000000330004c000009fb0000613d0000000203100367000000000303043b000003d70430009c000009fb0000213d000000050430021000000020011000390000000004410019000000000224004b000009fb0000213d0000000002030019000000000001042d000000000100001900000000020000190e8009990000040f000001000110008c00000a010000813d000000000001042d000000000100001900000000020000190e8009990000040f000000000100041a000003a4011001970000000002000411000000000121004b00000a0a0000c13d000000000001042d000000400100043d0000004402100039000003f1030000410000000000320435000003d30200004100000000002104350000002402100039000000200300003900000000003204350000000402100039000000000032043500000064020000390e8009990000040f000000000110004c00000a1a0000613d000000000001042d000000400100043d0000004402100039000003f2030000410000000000320435000000240210003900000014030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000003f30210009c00000a2d0000813d0000006001100039000000400010043f000000000001042d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f000a000000000002000100000009001d000300000008001d000200000007001d000500000006001d000400000005001d000700000004001d000600000003001d000900000002001d000800000001001d0000000101000039000000000200041a000003a4032001970000000002000411000000000323004b00000a4b0000613d00000000002004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f00000000070000190000000901000029000000000117004b00000a780000813d0000000504700210000000080100002900000000011400190000000205000367000000000115034f000000000101043b000003ef0210009c00000a7c0000813d0000000702000029000000000227004b00000a7f0000813d00000006020000290000000002240019000000000225034f000000000202043b000003de0320009c00000a7c0000213d0000000503000029000000000337004b00000a7f0000813d00000004030000290000000003340019000000000335034f000000000303043b000003d70630009c00000a7c0000213d0000000306000029000000000667004b00000a7f0000813d00000002060000290000000004640019000000000445034f000000000404043b000003d70540009c00000a7c0000213d000a00000007001d0e800b910000040f0000000a07000029000000010770003900000a4d0000013d00000005010000390000000102000029000000000021041b000000000001042d000000000100001900000000020000190e8009990000040f000003e90100004100000000001004350000003201000039000000040010043f000000240200003900000000010000190e8009990000040f000000400100043d000003f40210009c00000a8c0000813d0000008002100039000000400020043f000000000001042d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f0005000000000002000500000001001d000003a402100197000300000002001d00000000002004350000000101000039000100000001001d000000200010043f00000000010000190e80096a0000040f0000000502000039000000000202041a000200000002001d000000000101041a000400000001001d0000000401000039000000000101041a000003a40210019700000005010000290e800c230000040f0000000402000029000003de0620019800000000070100190000000001000019000400000007001d00000ac00000613d000003e00100004100000000001004390000800b010000390000000402000039000500000006001d0e80097d0000040f000000040700002900000005060000290000000602000039000000000202041a000000010300008a000000000332013f0000000204000029000000000334004b00000b0c0000213d0000000002420019000000000121004b0000000001000019000000010100a039000000000270004c000000000400001900000adb0000613d0000000702000039000000000202041a000003d702200197000003f50320009c00000b0c0000213d000000010300008a00000000437300d9000003f5040000410000000004240049000000000543004b00000b0c0000413d00000000547400a9000003f55440012a000000000464004b000000000400001900000adb0000213d000003f502200041000000000323004b00000b0c0000413d00000000327200a9000003f53220012a000000000226004b0000000004000019000000010400a039000000010110019000000ae20000613d00000001014001900000000002000019000000000106001900000af20000c13d00000b0b0000013d000000030100002900000000001004350000000201000039000000200010043f00000000010000190e80096a0000040f000000000101041a000003d4011001980000000002000019000000000100001900000b0b0000613d0000000406000029000000000160004c0000000002000019000000000100001900000b0b0000613d000500000006001d000000030100002900000000001004350000000301000039000000200010043f00000000010000190e80096a0000040f000000400200043d000003f60320009c00000b130000813d0000004003200039000000400030043f000000000301041a000000200420003900000080013002700000000000140435000003de0330019700000000003204350000000504000029000000000234004b00000b1a0000a13d000000000114004b0000000102000029000000000104001900000b280000813d000000000001042d000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f000000400100043d0000004402100039000003f7030000410000000000320435000000240210003900000012030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000000400100043d0000004402100039000003f8030000410000000000320435000000240210003900000012030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000000400100043d000003f40210009c00000b430000813d0000008002100039000000400020043f0000006002100039000000000002043500000040021000390000000000020435000000200210003900000000000204350000000000010435000000000001042d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f0004000000000002000200000002001d000003a401100197000400000001001d00000000001004350000000101000039000300000001001d000000200010043f00000000010000190e80096a0000040f000000000101041a000100000001001d000000040100002900000000001004350000000301000029000000200010043f00000000010000190e80096a0000040f00000001060000290000000207000029000003de02700197000000000101041a000003de0310019800000b890000613d000000000420004c00000b890000613d000003f90460009c00000b890000813d000000000432004b00000000040700190000000004014019000003de0540019800000b8a0000613d000000c004600270000003f50640009c00000b8a0000613d000000000232004b000000000107a019000003de01100197000003fa211000d100000000215100d9000003f502000041000000000242004900000000212100d9000003fb0210009c00000b890000213d000003f5020000410000000002120049000000000142004b00000b890000a13d000000040100002900000000001004350000000301000029000000200010043f0000000001000019000400000002001d0e80096a0000040f0000000402000029000000c002200210000000000301041a000003fc03300197000000000223019f000000000021041b000000000001042d000003e90100004100000000001004350000001201000039000000040010043f000000240200003900000000010000190e8009990000040f0008000000000002000400000004001d000600000003001d000500000002001d000003a401100197000800000001001d00000000001004350000000101000039000700000001001d000000200010043f00000000010000190e80096a0000040f000300000001001d0000000601000029000003d701100197000100000001001d000003f50110009c00000bef0000813d000000080100002900000000001004350000000701000029000000200010043f00000000010000190e80096a0000040f000000000101041a000200000001001d000000080100002900000000001004350000000701000029000000200010043f00000000010000190e80096a0000040f00000002040000290000000507000029000003de06700197000000000101041a000003de0210019800000bd40000613d000000000360004c00000bd40000613d000003fd0340009c00000bd40000213d000000000326004b00000000030700190000000003014019000003de0330019800000bfd0000613d000000c004400270000003f50540009c00000bfd0000613d000000000226004b000000000107a019000003de01100197000003fa211000d100000000213100d9000003f502000041000000000242004900000000212100d9000003fb0210009c00000bd40000213d000003f50200004100000000011200490000000102000029000000000221004b00000006020000290000000002012019000600000002001d000000080100002900000000001004350000000701000029000000200010043f0000000001000019000800000006001d0e80096a0000040f0000000602000029000000c002200210000000000301041a000003fc03300197000000000223019f000000000021041b0000000303000029000000000103041a000003df011001970000000802000029000000000121019f000000000013041b00000004010000290000008001100210000003fe01100197000000000203041a000003ff02200197000000000112019f000000000013041b000000000001042d000000400100043d000000440210003900000400030000410000000000320435000000240210003900000008030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000003e90100004100000000001004350000001201000039000000040010043f000000240200003900000000010000190e8009990000040f0000000002120049000003cf030000410000009f0420008c00000000040000190000000004032019000003cf02200197000000000520004c0000000003008019000003cf0220009c00000000020400190000000002036019000000000220004c00000c200000613d0000000006010433000004010260009c00000c200000213d00000080021000390000000005020433000004010250009c00000c200000213d0000002002100039000000000202043300000040031000390000000003030433000000600110003900000000040104330000000001060019000000000001042d000000000100001900000000020000190e8009990000040f0004000000000002000200000002001d000003a40110019700000000001004350000000201000039000400000001001d000000200010043f00000000010000190e80096a0000040f000000000101041a000003a401100198000300000001001d00000cd30000613d0000000201000029000003a401100197000100000001001d00000000001004350000000401000029000000200010043f00000000010000190e80096a0000040f000000000101041a000200000001001d000000010100002900000000001004350000000401000029000000200010043f00000000010000190e80096a0000040f000000000101041a000100000001001d0000040201000041000000400500043d00000000001504350000000201000029000003a401100197000400000001001d00000000010004140000000302000029000000040320008c00000c550000613d0000000404000039000000a0060000390000000003050019000300000005001d00000003050000290e8009330000040f0000000305000029000000000110004c00000ce10000613d0000000101000031000000a00210008c000000a0010080390000001f02100039000001e00320018f0000000002530019000000000332004b00000000030000190000000103004039000003d70420009c00000ccc0000213d000000010330019000000ccc0000c13d000000400020043f000000000251001900000000010500190e800c040000040f0000040201000041000000400500043d0000000000150435000300000002001d000200000004001d00000000010004140000000402000029000000040220008c00000c790000613d0000000404000039000000a00600003900000004020000290000000003050019000400000005001d00000004050000290e8009330000040f0000000405000029000000000110004c00000ce10000613d0000000101000031000000a00210008c000000a0010080390000001f02100039000001e00320018f0000000002530019000000000332004b00000000030000190000000103004039000003d70420009c00000ccc0000213d000000010330019000000ccc0000c13d0000000103000029000000a003300270000000ff0330018f000400000003001d000000400020043f000000000251001900000000010500190e800c040000040f00000004080000290000000101000039000000000380004c000000030500002900000cb60000613d0000004e0180008c00000c9d0000813d0000000001080019000400000004001d000100000002001d0e8009130000040f00000001020000290000000404000029000000030500002900000cb60000013d0000000a010000390000000107000039000000020380008c00000cae0000413d000000000310004c00000ca70000613d000000010300008a00000000631300d9000000000331004b00000cc50000213d00000001038001900000000003010019000000010300603900000000377300a9000000010880027000000000311100a900000c9f0000013d000000000310004c000000000300001900000cb30000613d000000010300008a00000000631300d9000000000337004b00000cc50000213d00000000317100a9000000000350004c00000cbc0000613d000000010300008a00000000365300d9000000000316004b00000cc50000413d000000000320004c00000d010000613d00000000315100a900000000212100d90000000203000029000000000243004b00000000020400190000000002034019000000000001042d000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f000000400100043d000000440210003900000403030000410000000000320435000000240210003900000015030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f0000000302000367000000400100043d00000001040000310000001f0340018f000000050440027200000cf00000613d000000000500001900000005065002100000000007610019000000000662034f000000000606043b00000000006704350000000105500039000000000645004b00000ce80000413d000000000530004c00000cff0000613d0000000504400210000000000242034f00000000044100190000000303300210000000000504043300000000053501cf000000000535022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000252019f000000000024043500000001020000310e8009990000040f000003e90100004100000000001004350000001201000039000000040010043f000000240200003900000000010000190e8009990000040f000000400200043d000003f60320009c00000d220000813d0000004003200039000000400030043f00000020032000390000040404000041000000000043043500000405030000410000000000320435000000ff0310018f000000010430008c00000d1c0000a13d00000000003004350000000a01000039000000200010043f00000000010000190e80096a0000040f000000000101041a00000d200000013d000000050110021000001fe00110018f00000000011200190000000001010433000003a401100197000000000001042d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f0009000000000002000900000001001d0000000101000039000000000200041a000003a4032001970000000002000411000000000323004b00000d380000613d00000000002004350000000801000039000000200010043f00000000010000190e80096a0000040f000000000101041a000000ff0110018f0e800a170000040f0000000903000029000000000130004c00000dea0000613d0000000201000367000000000501043b000000f8015002700000003f0210018f000004060150009c000700000002001d00000d890000413d000000fe04500270000000020140008c00000d890000613d000000010140008c00000d4a0000613d000000030140008c00000dff0000c13d0000000005000019000100000004001d000000000125004b00000dc50000813d000500000005001d00000009125000c9000800000002001d0000000201200039000600000001001d000000000131004b00000de70000213d000000080100002900000001011000390000000201100367000000000101043b000000f8011002700e800d080000040f000300000001001d000000080100002900000006021000390000000901000029000400000002001d000000000112004b00000de70000213d00000006010000290000000201100367000000000101043b000000e0011002700e800e130000040f000600000001001d000000080100002900000008021000390000000901000029000200000002001d000000000112004b00000de70000213d00000004010000290000000201100367000000000101043b000000f0011002700e800e290000040f000400000001001d00000008010000290000000a011000390000000902000029000000000121004b00000de70000213d00000002010000290000000201100367000000000101043b000000f0011002700e800e290000040f00000000040100190000000301000029000000060200002900000004030000290e800b910000040f0000000505000029000000010550003900000009030000290000000702000029000000010400002900000d4c0000013d0000000101000039000200000001001d0000000004000019000300000005001d000000000124004b00000dbd0000813d000600000004001d00000005124000c90000000201200039000500000001001d000000000131004b00000de70000213d00000001012000390000000201100367000000000101043b000000f801100270000400000002001d0e800d080000040f000800000001001d000000040100002900000006011000390000000902000029000000000121004b00000de70000213d00000005010000290000000201100367000000000101043b000000e0011002700e800e130000040f0000000002010019000500000002001d00000008010000290e800b4a0000040f0000000801000029000003a40110019700000000001004350000000201000029000000200010043f00000000010000190e80096a0000040f0000000502000029000003de02200197000000000301041a000003df03300197000000000223019f000000000021041b0000000604000029000000010440003900000009030000290000000702000029000000030500002900000d8d0000013d000004060150009c00000dcd0000813d000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f00000de40000013d000000010140008c00000dd80000c13d000003e00100004100000000001004390000800b0100003900000004020000390e80097d0000040f00000de40000013d000000320120008c00000df80000213d00000005212000c90000000502100039000000000232004b00000de70000213d00000001011000390000000201100367000000000101043b000000e00110027000000de40000013d0000001d0120008c00000df80000813d00000009212000c9000000fa0210008c00000df80000213d0000000502100039000000000232004b00000de70000213d00000001011000390000000201100367000000000101043b000000e0011002700000000502000039000000000012041b000000000001042d000000000100001900000000020000190e8009990000040f000000400100043d000000440210003900000407030000410000000000320435000000240210003900000017030000390000000000320435000003d302000041000000000021043500000004021000390000002003000039000000000032043500000064020000390e8009990000040f000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f000000400200043d000900000002001d000003d301000041000000000012043500000004012000390e800e090000040f0000000903000029000000000231004900000000010300190e8009990000040f000000400210003900000408030000410000000000320435000000200210003900000011030000390000000000320435000000200200003900000000002104350000006001100039000000000001042d0001000000000002000100000001001d0000001f0110018f0e8009130000040f00000001020000290000000502200270000004090220019800000e1f0000613d000000010300008a00000000432300d9000000000313004b00000e220000413d00000000212100a9000003de01100197000000000001042d000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f0001000000000002000100000001001d0000001f0110018f0e8009130000040f00000001020000290000000502200270000007ff0220019000000e350000613d000000010300008a00000000432300d9000000000313004b00000e380000413d00000000212100a9000003d701100197000000000001042d000003e90100004100000000001004350000001101000039000000040010043f000000240200003900000000010000190e8009990000040f0000006001000039000000010200003200000e6e0000613d0000003f01200039000000200300008a000000000331016f000000400100043d0000000003310019000000000413004b00000000040000190000000104004039000003d70530009c00000e6f0000213d000000010440019000000e6f0000c13d000000400030043f00000000002104350000002002100039000000030300036700000001050000310000001f0450018f000000050550027200000e5f0000613d000000000600001900000005076002100000000008720019000000000773034f000000000707043b00000000007804350000000106600039000000000756004b00000e570000413d000000000640004c00000e6e0000613d0000000505500210000000000353034f00000000025200190000000304400210000000000502043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000320435000000000001042d000003e90100004100000000001004350000004101000039000000040010043f000000240200003900000000010000190e8009990000040f00000e79002104210000000102000039000000000001042d000000000200001900000e780000013d00000e7e002104230000000102000039000000000001042d000000000200001900000e7d0000013d00000e800000043200000e810001042e00000e8200010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000200000000000000000000000000000000000000000000800000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000002386f26fc100000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000925d4a3000000000000000000000000000000000000000000000000000000000b7841f5000000000000000000000000000000000000000000000000000000000c68ba21000000000000000000000000000000000000000000000000000000001142e753000000000000000000000000000000000000000000000000000000001ffabeb800000000000000000000000000000000000000000000000000000000217a4b700000000000000000000000000000000000000000000000000000000024d7806c0000000000000000000000000000000000000000000000000000000028533a6d000000000000000000000000000000000000000000000000000000002b8a1c5a0000000000000000000000000000000000000000000000000000000031e658a50000000000000000000000000000000000000000000000000000000037e257fd00000000000000000000000000000000000000000000000000000000447f3843000000000000000000000000000000000000000000000000000000004a502f39000000000000000000000000000000000000000000000000000000004b0bddd2000000000000000000000000000000000000000000000000000000005ab2566c000000000000000000000000000000000000000000000000000000005bc9f65d000000000000000000000000000000000000000000000000000000006e27fcd600000000000000000000000000000000000000000000000000000000715018a60000000000000000000000000000000000000000000000000000000071ea9205000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000099235fd4000000000000000000000000000000000000000000000000000000009d152ee900000000000000000000000000000000000000000000000000000000a4a2a8c500000000000000000000000000000000000000000000000000000000aea9107800000000000000000000000000000000000000000000000000000000b80777ea00000000000000000000000000000000000000000000000000000000be4df7d600000000000000000000000000000000000000000000000000000000c16116d400000000000000000000000000000000000000000000000000000000c32025a400000000000000000000000000000000000000000000000000000000c6ddb64200000000000000000000000000000000000000000000000000000000cc6864b100000000000000000000000000000000000000000000000000000000cdf8bf9000000000000000000000000000000000000000000000000000000000d449a83200000000000000000000000000000000000000000000000000000000d5bade0700000000000000000000000000000000000000000000000000000000d736ce7c00000000000000000000000000000000000000000000000000000000e1a4e72a00000000000000000000000000000000000000000000000000000000e52d06ab00000000000000000000000000000000000000000000000000000000f2030e7300000000000000000000000000000000000000000000000000000000f2fde38b8000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000064647265737300000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f206108c379a00000000000000000000000000000000000000000000000000000000000000000000000000000ff000000000000000000000000000000000000000000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee70a0823100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffa9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f53540000000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f39000000000000000000000000000000000000000000000000ffffffffffffffdf535445000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d95539132576f6f7261636c6556325f323a202169645f5345545f414c5245414459000000000000000000000000000000000000000000000000000000ffffffffffffff9f313ce567000000000000000000000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff0000000000000000000001000000000000000000000000000000000000000000ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff576f6f7261636c6556325f323a206c656e6774685f494e56414c4944000000004e487b710000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000ffffffff0000000000000000000000000000000000000000ffffffffffffffff576f6f7261636c6556325f323a2021477561726469616e00000000000000000002000000000000000000000000000000000000400000000000000000000000000200000200000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572576f6f7261636c6556325f323a202141646d696e000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffa0000000000000000000000000000000000000000000000000ffffffffffffff800000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000000000000000000000000000ffffffffffffffc0576f6f7261636c6556325f323a20216d696e0000000000000000000000000000576f6f7261636c6556325f323a20216d617800000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000000000000000000000000c097ce7bc90715b34b9f10000000000000000000000000000000000000000000000000000000000de0b6b3a763ffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffff0de0b6b3a763ffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff00000000000000000000000000000000ffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff215f73707265616400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffeaf968c00000000000000000000000000000000000000000000000000000000576f6f7261636c6556325f323a20216f7261636c6500000000000000000000000000000000000000000000003355df6d4c9c3035724fd0e3914de96a5a83aaf40000000000000000000000005aea5775959fbc2557cc8789bc1bf90a239d9a914000000000000000000000000000000000000000000000000000000000000000576f6f7261636c6556325f323a202163616c6c64617461000000000000000000576f6f7261636c6556325f323a20216f700000000000000000000000000000000000000000000000000000000000000000000000000000000000000007ffffff0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.