Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Oracle
Compiler Version
v0.8.28+commit.7893614a
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-03-01 */ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } pragma solidity ^0.8.26; interface IPool { error NOT_AUTHORIZED(); error UNSTABLE_RATIO(); /// @dev safe transfer failed error STF(); error OVERFLOW(); /// @dev skim disabled error SD(); /// @dev insufficient liquidity minted error ILM(); /// @dev insufficient liquidity burned error ILB(); /// @dev insufficient output amount error IOA(); /// @dev insufficient input amount error IIA(); error IL(); error IT(); error K(); event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); /// @notice Same as prices with with an additional window argument. /// Window = 2 means 2 * 30min (or 1 hr) between observations /// @param tokenIn . /// @param amountIn . /// @param points . /// @param window . /// @return Array of TWAP prices function sample( address tokenIn, uint256 amountIn, uint256 points, uint256 window ) external view returns (uint256[] memory); function observations(uint256 index) external view returns (uint256 timestamp, uint256 reserve0Cumulative, uint256 reserve1Cumulative); function current(address tokenIn, uint256 amountIn) external view returns (uint256 amountOut); /// @notice Provides twap price with user configured granularity, up to the full window size /// @param tokenIn . /// @param amountIn . /// @param granularity . /// @return amountOut . function quote(address tokenIn, uint256 amountIn, uint256 granularity) external view returns (uint256 amountOut); /// @notice Get the number of observations recorded function observationLength() external view returns (uint256); /// @notice Address of token in the pool with the lower address value function token0() external view returns (address); /// @notice Address of token in the poool with the higher address value function token1() external view returns (address); /// @notice initialize the pool, called only once programatically function initialize( address _token0, address _token1, bool _stable ) external; /// @notice calculate the current reserves of the pool and their last 'seen' timestamp /// @return _reserve0 amount of token0 in reserves /// @return _reserve1 amount of token1 in reserves /// @return _blockTimestampLast the timestamp when the pool was last updated function getReserves() external view returns ( uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast ); /// @notice mint the pair tokens (LPs) /// @param to where to mint the LP tokens to /// @return liquidity amount of LP tokens to mint function mint(address to) external returns (uint256 liquidity); /// @notice burn the pair tokens (LPs) /// @param to where to send the underlying /// @return amount0 amount of amount0 /// @return amount1 amount of amount1 function burn( address to ) external returns (uint256 amount0, uint256 amount1); /// @notice direct swap through the pool function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; /// @notice force balances to match reserves, can be used to harvest rebases from rebasing tokens or other external factors /// @param to where to send the excess tokens to function skim(address to) external; /// @notice force reserves to match balances, prevents skim excess if skim is enabled function sync() external; /// @notice set the pair fees contract address function setFeeRecipient(address _pairFees) external; /// @notice set the feesplit variable function setFeeSplit(uint256 _feeSplit) external; /// @notice sets the swap fee of the pair /// @dev max of 10_000 (10%) /// @param _fee the fee function setFee(uint256 _fee) external; /// @notice 'mint' the fees as LP tokens /// @dev this is used for protocol/voter fees function mintFee() external; /// @notice calculates the amount of tokens to receive post swap /// @param amountIn the token amount /// @param tokenIn the address of the token function getAmountOut( uint256 amountIn, address tokenIn ) external view returns (uint256 amountOut); /// @notice returns various metadata about the pair function metadata() external view returns ( uint256 _decimals0, uint256 _decimals1, uint256 _reserve0, uint256 _reserve1, bool _stable, address _token0, address _token1 ); /// @notice returns the feeSplit of the pair function feeSplit() external view returns (uint256); /// @notice returns the fee of the pair function fee() external view returns (uint256); /// @notice returns the feeRecipient of the pair function feeRecipient() external view returns (address); } // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } pragma solidity ^0.8.0; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } function _renounceOperator() public onlyOwner { emit OperatorTransferred(_operator, address(0)); _operator = address(0); } } pragma solidity ^0.8.0; contract Oracle is Operator { using SafeMath for uint256; address public token0; address public token1; IPool public pair; constructor(IPool _pair) { pair = _pair; token0 = pair.token0(); token1 = pair.token1(); uint256 reserve0; uint256 reserve1; (reserve0, reserve1, ) = pair.getReserves(); require(reserve0 != 0 && reserve1 != 0, "Oracle: No reserves"); } function update() external { pair.sync(); } function consult( address _token, uint256 _amountIn ) external view returns (uint256 amountOut) { if (_token == token0) { amountOut = _quote(_token, _amountIn, 12); } else { require(_token == token1, "Oracle: Invalid token"); amountOut = _quote(_token, _amountIn, 12); } } function twap( address _token, uint256 _amountIn ) external view returns (uint256 amountOut) { if (_token == token0) { amountOut = _quote(_token, _amountIn, 2); } else { require(_token == token1, "Oracle: Invalid token"); amountOut = _quote(_token, _amountIn, 2); } } // Note the window parameter is removed as its always 1 (30min), granularity at 12 for example is (12 * 30min) = 6 hours function _quote( address tokenIn, uint256 amountIn, uint256 granularity // number of observations to query ) internal view returns (uint256 amountOut) { uint256 observationLength = IPool(pair).observationLength(); require( granularity <= observationLength, "Oracle: Not enough observations" ); uint256 price = IPool(pair).quote(tokenIn, amountIn, granularity); amountOut = price; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IPool","name":"_pair","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"_renounceOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"consult","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"contract IPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"twap","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f5ffd5b50604051610afc380380610afc83398101604081905261002e916102cc565b61003733610266565b600180546001600160a01b031916339081179091556040515f907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600480546001600160a01b0319166001600160a01b038316908117825560408051630dfe168160e01b815290519192630dfe16819282820192602092908290030181865afa1580156100ca573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100ee91906102cc565b600280546001600160a01b0319166001600160a01b03928316179055600480546040805163d21220a760e01b81529051919093169263d21220a792818101926020929091908290030181865afa15801561014a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061016e91906102cc565b600380546001600160a01b0319166001600160a01b039283161790556004805460408051630240bc6b60e21b815290515f948594931692630902f1ac928082019260609290918290030181865afa1580156101cb573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ef9190610309565b506001600160701b039182169350169050811580159061020e57508015155b61025e5760405162461bcd60e51b815260206004820152601360248201527f4f7261636c653a204e6f20726573657276657300000000000000000000000000604482015260640160405180910390fd5b505050610355565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102c9575f5ffd5b50565b5f602082840312156102dc575f5ffd5b81516102e7816102b5565b9392505050565b80516001600160701b0381168114610304575f5ffd5b919050565b5f5f5f6060848603121561031b575f5ffd5b610324846102ee565b9250610332602085016102ee565b9150604084015163ffffffff8116811461034a575f5ffd5b809150509250925092565b61079a806103625f395ff3fe608060405234801561000f575f5ffd5b50600436106100cb575f3560e01c8063715018a611610088578063a2e6204511610063578063a2e6204514610197578063a8aa1b311461019f578063d21220a7146101b2578063f2fde38b146101c5575f5ffd5b8063715018a6146101775780638a27f1031461017f5780638da5cb5b14610187575f5ffd5b80630dfe1681146100cf57806329605e77146100ff5780633ddac953146101145780634456eda214610135578063570ca735146101535780636808a12814610164575b5f5ffd5b6002546100e2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61011261010d36600461070c565b6101d8565b005b610127610122366004610725565b6101ec565b6040519081526020016100f6565b6001546001600160a01b0316331460405190151581526020016100f6565b6001546001600160a01b03166100e2565b610127610172366004610725565b610286565b61011261030b565b61011261031e565b5f546001600160a01b03166100e2565b61011261036f565b6004546100e2906001600160a01b031681565b6003546100e2906001600160a01b031681565b6101126101d336600461070c565b6103cb565b6101e0610441565b6101e98161049a565b50565b6002545f906001600160a01b0390811690841603610217576102108383600c61055d565b9050610280565b6003546001600160a01b038481169116146102715760405162461bcd60e51b815260206004820152601560248201527427b930b1b6329d1024b73b30b634b2103a37b5b2b760591b60448201526064015b60405180910390fd5b61027d8383600c61055d565b90505b92915050565b6002545f906001600160a01b03908116908416036102aa576102108383600261055d565b6003546001600160a01b038481169116146102ff5760405162461bcd60e51b815260206004820152601560248201527427b930b1b6329d1024b73b30b634b2103a37b5b2b760591b6044820152606401610268565b61027d8383600261055d565b610313610441565b61031c5f6106a2565b565b610326610441565b6001546040515f916001600160a01b0316907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908390a3600180546001600160a01b0319169055565b600480546040805160016209351760e01b0319815290516001600160a01b039092169263fff6cae992828201925f929082900301818387803b1580156103b3575f5ffd5b505af11580156103c5573d5f5f3e3d5ffd5b50505050565b6103d3610441565b6001600160a01b0381166104385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610268565b6101e9816106a2565b5f546001600160a01b0316331461031c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610268565b6001600160a01b0381166105065760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610268565b6040516001600160a01b038216905f907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600480546040805163ebeb31db60e01b815290515f9384936001600160a01b03169263ebeb31db92818301926020928290030181865afa1580156105a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105c7919061074d565b9050808311156106195760405162461bcd60e51b815260206004820152601f60248201527f4f7261636c653a204e6f7420656e6f756768206f62736572766174696f6e73006044820152606401610268565b60048054604051639e8cc04b60e01b81526001600160a01b038881169382019390935260248101879052604481018690525f9290911690639e8cc04b90606401602060405180830381865afa158015610674573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610698919061074d565b9695505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610707575f5ffd5b919050565b5f6020828403121561071c575f5ffd5b61027d826106f1565b5f5f60408385031215610736575f5ffd5b61073f836106f1565b946020939093013593505050565b5f6020828403121561075d575f5ffd5b505191905056fea264697066735822122035712ba7cc4cb965b85f2f7924df554c4649e9cdcd4fb71cd6d7a5972da424dc64736f6c634300081c00330000000000000000000000009a8b61f0f40519ea9e3ef2c3c7e3c1a233ffc66f
Deployed Bytecode
0x608060405234801561000f575f5ffd5b50600436106100cb575f3560e01c8063715018a611610088578063a2e6204511610063578063a2e6204514610197578063a8aa1b311461019f578063d21220a7146101b2578063f2fde38b146101c5575f5ffd5b8063715018a6146101775780638a27f1031461017f5780638da5cb5b14610187575f5ffd5b80630dfe1681146100cf57806329605e77146100ff5780633ddac953146101145780634456eda214610135578063570ca735146101535780636808a12814610164575b5f5ffd5b6002546100e2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61011261010d36600461070c565b6101d8565b005b610127610122366004610725565b6101ec565b6040519081526020016100f6565b6001546001600160a01b0316331460405190151581526020016100f6565b6001546001600160a01b03166100e2565b610127610172366004610725565b610286565b61011261030b565b61011261031e565b5f546001600160a01b03166100e2565b61011261036f565b6004546100e2906001600160a01b031681565b6003546100e2906001600160a01b031681565b6101126101d336600461070c565b6103cb565b6101e0610441565b6101e98161049a565b50565b6002545f906001600160a01b0390811690841603610217576102108383600c61055d565b9050610280565b6003546001600160a01b038481169116146102715760405162461bcd60e51b815260206004820152601560248201527427b930b1b6329d1024b73b30b634b2103a37b5b2b760591b60448201526064015b60405180910390fd5b61027d8383600c61055d565b90505b92915050565b6002545f906001600160a01b03908116908416036102aa576102108383600261055d565b6003546001600160a01b038481169116146102ff5760405162461bcd60e51b815260206004820152601560248201527427b930b1b6329d1024b73b30b634b2103a37b5b2b760591b6044820152606401610268565b61027d8383600261055d565b610313610441565b61031c5f6106a2565b565b610326610441565b6001546040515f916001600160a01b0316907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908390a3600180546001600160a01b0319169055565b600480546040805160016209351760e01b0319815290516001600160a01b039092169263fff6cae992828201925f929082900301818387803b1580156103b3575f5ffd5b505af11580156103c5573d5f5f3e3d5ffd5b50505050565b6103d3610441565b6001600160a01b0381166104385760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610268565b6101e9816106a2565b5f546001600160a01b0316331461031c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610268565b6001600160a01b0381166105065760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610268565b6040516001600160a01b038216905f907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600480546040805163ebeb31db60e01b815290515f9384936001600160a01b03169263ebeb31db92818301926020928290030181865afa1580156105a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105c7919061074d565b9050808311156106195760405162461bcd60e51b815260206004820152601f60248201527f4f7261636c653a204e6f7420656e6f756768206f62736572766174696f6e73006044820152606401610268565b60048054604051639e8cc04b60e01b81526001600160a01b038881169382019390935260248101879052604481018690525f9290911690639e8cc04b90606401602060405180830381865afa158015610674573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610698919061074d565b9695505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610707575f5ffd5b919050565b5f6020828403121561071c575f5ffd5b61027d826106f1565b5f5f60408385031215610736575f5ffd5b61073f836106f1565b946020939093013593505050565b5f6020828403121561075d575f5ffd5b505191905056fea264697066735822122035712ba7cc4cb965b85f2f7924df554c4649e9cdcd4fb71cd6d7a5972da424dc64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009a8b61f0f40519ea9e3ef2c3c7e3c1a233ffc66f
-----Decoded View---------------
Arg [0] : _pair (address): 0x9a8b61f0f40519EA9E3EF2c3C7e3c1a233FfC66F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009a8b61f0f40519ea9e3ef2c3c7e3c1a233ffc66f
Deployed Bytecode Sourcemap
17375:1892:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17445:21;;;;;-1:-1:-1;;;;;17445:21:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;17445:21:0;;;;;;;;16806:115;;;;;;:::i;:::-;;:::i;:::-;;17904:366;;;;;;:::i;:::-;;:::i;:::-;;;996:25:1;;;984:2;969:18;17904:366:0;850:177:1;16698:100:0;16781:9;;-1:-1:-1;;;;;16781:9:0;13263:10;16765:25;16698:100;;1197:14:1;;1190:22;1172:41;;1160:2;1145:18;16698:100:0;1032:187:1;16470:85:0;16538:9;;-1:-1:-1;;;;;16538:9:0;16470:85;;18278:361;;;;;;:::i;:::-;;:::i;15325:103::-;;;:::i;17194:145::-;;;:::i;14684:87::-;14730:7;14757:6;-1:-1:-1;;;;;14757:6:0;14684:87;;17839:57;;;:::i;17501:17::-;;;;;-1:-1:-1;;;;;17501:17:0;;;17473:21;;;;;-1:-1:-1;;;;;17473:21:0;;;15583:201;;;;;;:::i;:::-;;:::i;16806:115::-;14570:13;:11;:13::i;:::-;16882:31:::1;16900:12;16882:17;:31::i;:::-;16806:115:::0;:::o;17904:366::-;18048:6;;18004:17;;-1:-1:-1;;;;;18048:6:0;;;18038:16;;;;18034:229;;18083:29;18090:6;18098:9;18109:2;18083:6;:29::i;:::-;18071:41;;18034:229;;;18163:6;;-1:-1:-1;;;;;18153:16:0;;;18163:6;;18153:16;18145:50;;;;-1:-1:-1;;;18145:50:0;;1647:2:1;18145:50:0;;;1629:21:1;1686:2;1666:18;;;1659:30;-1:-1:-1;;;1705:18:1;;;1698:51;1766:18;;18145:50:0;;;;;;;;;18222:29;18229:6;18237:9;18248:2;18222:6;:29::i;:::-;18210:41;;18034:229;17904:366;;;;:::o;18278:361::-;18419:6;;18375:17;;-1:-1:-1;;;;;18419:6:0;;;18409:16;;;;18405:227;;18454:28;18461:6;18469:9;18480:1;18454:6;:28::i;18405:227::-;18533:6;;-1:-1:-1;;;;;18523:16:0;;;18533:6;;18523:16;18515:50;;;;-1:-1:-1;;;18515:50:0;;1647:2:1;18515:50:0;;;1629:21:1;1686:2;1666:18;;;1659:30;-1:-1:-1;;;1705:18:1;;;1698:51;1766:18;;18515:50:0;1445:345:1;18515:50:0;18592:28;18599:6;18607:9;18618:1;18592:6;:28::i;15325:103::-;14570:13;:11;:13::i;:::-;15390:30:::1;15417:1;15390:18;:30::i;:::-;15325:103::o:0;17194:145::-;14570:13;:11;:13::i;:::-;17276:9:::1;::::0;17256:42:::1;::::0;17295:1:::1;::::0;-1:-1:-1;;;;;17276:9:0::1;::::0;17256:42:::1;::::0;17295:1;;17256:42:::1;17309:9;:22:::0;;-1:-1:-1;;;;;;17309:22:0::1;::::0;;17194:145::o;17839:57::-;17877:4;;;:11;;;-1:-1:-1;;;;;;17877:11:0;;;;-1:-1:-1;;;;;17877:4:0;;;;:9;;:11;;;;:4;;:11;;;;;;:4;;:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17839:57::o;15583:201::-;14570:13;:11;:13::i;:::-;-1:-1:-1;;;;;15672:22:0;::::1;15664:73;;;::::0;-1:-1:-1;;;15664:73:0;;1997:2:1;15664:73:0::1;::::0;::::1;1979:21:1::0;2036:2;2016:18;;;2009:30;2075:34;2055:18;;;2048:62;-1:-1:-1;;;2126:18:1;;;2119:36;2172:19;;15664:73:0::1;1795:402:1::0;15664:73:0::1;15748:28;15767:8;15748:18;:28::i;14849:132::-:0;14730:7;14757:6;-1:-1:-1;;;;;14757:6:0;13263:10;14913:23;14905:68;;;;-1:-1:-1;;;14905:68:0;;2404:2:1;14905:68:0;;;2386:21:1;;;2423:18;;;2416:30;2482:34;2462:18;;;2455:62;2534:18;;14905:68:0;2202:356:1;16929:257:0;-1:-1:-1;;;;;17006:26:0;;16998:84;;;;-1:-1:-1;;;16998:84:0;;2765:2:1;16998:84:0;;;2747:21:1;2804:2;2784:18;;;2777:30;2843:34;2823:18;;;2816:62;-1:-1:-1;;;2894:18:1;;;2887:43;2947:19;;16998:84:0;2563:409:1;16998:84:0;17098:45;;-1:-1:-1;;;;;17098:45:0;;;17126:1;;17098:45;;17126:1;;17098:45;17154:9;:24;;-1:-1:-1;;;;;;17154:24:0;-1:-1:-1;;;;;17154:24:0;;;;;;;;;;16929:257::o;18773:491::-;19001:4;;;18995:31;;;-1:-1:-1;;;18995:31:0;;;;18937:17;;;;-1:-1:-1;;;;;19001:4:0;;18995:29;;:31;;;;;;;;;;;19001:4;18995:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18967:59;;19074:17;19059:11;:32;;19037:113;;;;-1:-1:-1;;;19037:113:0;;3368:2:1;19037:113:0;;;3350:21:1;3407:2;3387:18;;;3380:30;3446:33;3426:18;;;3419:61;3497:18;;19037:113:0;3166:355:1;19037:113:0;19185:4;;;19179:49;;-1:-1:-1;;;19179:49:0;;-1:-1:-1;;;;;3746:32:1;;;19179:49:0;;;3728:51:1;;;;3795:18;;;3788:34;;;3838:18;;;3831:34;;;19163:13:0;;19185:4;;;;19179:17;;3701:18:1;;19179:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;19163:65;18773:491;-1:-1:-1;;;;;;18773:491:0:o;15944:191::-;16018:16;16037:6;;-1:-1:-1;;;;;16054:17:0;;;-1:-1:-1;;;;;;16054:17:0;;;;;;16087:40;;16037:6;;;;;;;16087:40;;16018:16;16087:40;16007:128;15944:191;:::o;222:173:1:-;290:20;;-1:-1:-1;;;;;339:31:1;;329:42;;319:70;;385:1;382;375:12;319:70;222:173;;;:::o;400:186::-;459:6;512:2;500:9;491:7;487:23;483:32;480:52;;;528:1;525;518:12;480:52;551:29;570:9;551:29;:::i;591:254::-;659:6;667;720:2;708:9;699:7;695:23;691:32;688:52;;;736:1;733;726:12;688:52;759:29;778:9;759:29;:::i;:::-;749:39;835:2;820:18;;;;807:32;;-1:-1:-1;;;591:254:1:o;2977:184::-;3047:6;3100:2;3088:9;3079:7;3075:23;3071:32;3068:52;;;3116:1;3113;3106:12;3068:52;-1:-1:-1;3139:16:1;;2977:184;-1:-1:-1;2977:184:1:o
Swarm Source
ipfs://35712ba7cc4cb965b85f2f7924df554c4649e9cdcd4fb71cd6d7a5972da424dc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.