Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
OptimizerSonic
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-18 */ // 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); } pragma solidity ^0.8.0; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint256) external; } pragma solidity ^0.8.0; interface IPool { error DepositsNotEqual(); error BelowMinimumK(); error FactoryAlreadySet(); error InsufficientLiquidity(); error InsufficientLiquidityMinted(); error InsufficientLiquidityBurned(); error InsufficientOutputAmount(); error InsufficientInputAmount(); error IsPaused(); error InvalidTo(); error K(); error NotEmergencyCouncil(); event Fees(address indexed sender, uint256 amount0, uint256 amount1); event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, address indexed to, uint256 amount0, uint256 amount1); event Swap( address indexed sender, address indexed to, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out ); event Sync(uint256 reserve0, uint256 reserve1); event Claim(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1); // Struct to capture time period obervations every 30 minutes, used for local oracles struct Observation { uint256 timestamp; uint256 reserve0Cumulative; uint256 reserve1Cumulative; } /// @notice Returns the decimal (dec), reserves (r), stable (st), and tokens (t) of token0 and token1 function metadata() external view returns (uint256 dec0, uint256 dec1, uint256 r0, uint256 r1, bool st, address t0, address t1); /// @notice Claim accumulated but unclaimed fees (claimable0 and claimable1) function claimFees() external returns (uint256, uint256); /// @notice Returns [token0, token1] function tokens() external view returns (address, address); /// @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 Address of linked PoolFees.sol function poolFees() external view returns (address); /// @notice Address of PoolFactory that created this contract function factory() external view returns (address); /// @notice Capture oracle reading every 30 minutes (1800 seconds) function periodSize() external view returns (uint256); /// @notice Amount of token0 in pool function reserve0() external view returns (uint256); /// @notice Amount of token1 in pool function reserve1() external view returns (uint256); /// @notice Timestamp of last update to pool function blockTimestampLast() external view returns (uint256); /// @notice Cumulative of reserve0 factoring in time elapsed function reserve0CumulativeLast() external view returns (uint256); /// @notice Cumulative of reserve1 factoring in time elapsed function reserve1CumulativeLast() external view returns (uint256); /// @notice Accumulated fees of token0 (global) function index0() external view returns (uint256); /// @notice Accumulated fees of token1 (global) function index1() external view returns (uint256); /// @notice Get an LP's relative index0 to index0 function supplyIndex0(address) external view returns (uint256); /// @notice Get an LP's relative index1 to index1 function supplyIndex1(address) external view returns (uint256); /// @notice Amount of unclaimed, but claimable tokens from fees of token0 for an LP function claimable0(address) external view returns (uint256); /// @notice Amount of unclaimed, but claimable tokens from fees of token1 for an LP function claimable1(address) external view returns (uint256); /// @notice Set pool name /// Only callable by Voter.emergencyCouncil() /// @param __name String of new name function setName(string calldata __name) external; /// @notice Set pool symbol /// Only callable by Voter.emergencyCouncil() /// @param __symbol String of new symbol function setSymbol(string calldata __symbol) external; /// @notice Get the number of observations recorded function observationLength() external view returns (uint256); /// @notice Get the value of the most recent observation function lastObservation() external view returns (Observation memory); /// @notice True if pool is stable, false if volatile function stable() external view returns (bool); /// @notice Produces the cumulative price using counterfactuals to save gas and avoid a call to sync. function currentCumulativePrices() external view returns (uint256 reserve0Cumulative, uint256 reserve1Cumulative, uint256 blockTimestamp); /// @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 Returns a memory set of TWAP prices /// Same as calling sample(tokenIn, amountIn, points, 1) /// @param tokenIn . /// @param amountIn . /// @param points Number of points to return /// @return Array of TWAP prices function prices(address tokenIn, uint256 amountIn, uint256 points) external view returns (uint256[] memory); /// @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); /// @notice This low-level function should be called from a contract which performs important safety checks /// @param amount0Out Amount of token0 to send to `to` /// @param amount1Out Amount of token1 to send to `to` /// @param to Address to recieve the swapped output /// @param data Additional calldata for flashloans function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external; /// @notice This low-level function should be called from a contract which performs important safety checks /// standard uniswap v2 implementation /// @param to Address to receive token0 and token1 from burning the pool token /// @return amount0 Amount of token0 returned /// @return amount1 Amount of token1 returned function burn(address to) external returns (uint256 amount0, uint256 amount1); /// @notice This low-level function should be called by addLiquidity functions in Router.sol, which performs important safety checks /// standard uniswap v2 implementation /// @param to Address to receive the minted LP token /// @return liquidity Amount of LP token minted function mint(address to) external returns (uint256 liquidity); /// @notice Update reserves and, on the first call per block, price accumulators /// @return _reserve0 . /// @return _reserve1 . /// @return _blockTimestampLast . function getReserves() external view returns (uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast); /// @notice Get the amount of tokenOut given the amount of tokenIn /// @param amountIn Amount of token in /// @param tokenIn Address of token /// @return Amount out function getAmountOut(uint256 amountIn, address tokenIn) external view returns (uint256); /// @notice Force balances to match reserves /// @param to Address to receive any skimmed rewards function skim(address to) external; /// @notice Force reserves to match balances function sync() external; /// @notice Called on pool creation by PoolFactory /// @param _token0 Address of token0 /// @param _token1 Address of token1 /// @param _stable True if stable, false if volatile function initialize(address _token0, address _token1, bool _stable) external; } pragma solidity ^0.8.0; interface IPoolFactory { event SetFeeManager(address feeManager); event SetPauser(address pauser); event SetPauseState(bool state); event SetVoter(address voter); event PoolCreated(address indexed token0, address indexed token1, bool indexed stable, address pool, uint256); event SetCustomFee(address indexed pool, uint256 fee); error FeeInvalid(); error FeeTooHigh(); error InvalidPool(); error NotFeeManager(); error NotPauser(); error NotSinkConverter(); error NotVoter(); error PoolAlreadyExists(); error SameAddress(); error ZeroFee(); error ZeroAddress(); /// @notice returns the number of pools created from this factory function allPoolsLength() external view returns (uint256); /// @notice Is a valid pool created by this factory. /// @param . function isPool(address pool) external view returns (bool); /// @notice Support for Velodrome v1 which wraps around isPool(pool); /// @param . function isPair(address pool) external view returns (bool); /// @notice Return address of pool created by this factory /// @param tokenA . /// @param tokenB . /// @param stable True if stable, false if volatile function getPool(address tokenA, address tokenB, bool stable) external view returns (address); /// @notice Support for v3-style pools which wraps around getPool(tokenA,tokenB,stable) /// @dev fee is converted to stable boolean. /// @param tokenA . /// @param tokenB . /// @param fee 1 if stable, 0 if volatile, else returns address(0) function getPool(address tokenA, address tokenB, uint24 fee) external view returns (address); /// @notice Support for Velodrome v1 pools as a "pool" was previously referenced as "pair" /// @notice Wraps around getPool(tokenA,tokenB,stable) function getPair(address tokenA, address tokenB, bool stable) external view returns (address); /// @dev Only called once to set to Voter.sol - Voter does not have a function /// to call this contract method, so once set it's immutable. /// This also follows convention of setVoterAndDistributor() in VotingEscrow.sol /// @param _voter . function setVoter(address _voter) external; function setSinkConverter(address _sinkConvert, address _velo, address _veloV2) external; function setPauser(address _pauser) external; function setPauseState(bool _state) external; function setFeeManager(address _feeManager) external; /// @notice Set default fee for stable and volatile pools. /// @dev Throws if higher than maximum fee. /// Throws if fee is zero. /// @param _stable Stable or volatile pool. /// @param _fee . function setFee(bool _stable, uint256 _fee) external; /// @notice Set overriding fee for a pool from the default /// @dev A custom fee of zero means the default fee will be used. function setCustomFee(address _pool, uint256 _fee) external; /// @notice Returns fee for a pool, as custom fees are possible. function getFee(address _pool, bool _stable) external view returns (uint256); /// @notice Create a pool given two tokens and if they're stable/volatile /// @dev token order does not matter /// @param tokenA . /// @param tokenB . /// @param stable . function createPool(address tokenA, address tokenB, bool stable) external returns (address pool); /// @notice Support for v3-style pools which wraps around createPool(tokena,tokenB,stable) /// @dev fee is converted to stable boolean /// @dev token order does not matter /// @param tokenA . /// @param tokenB . /// @param fee 1 if stable, 0 if volatile, else revert function createPool(address tokenA, address tokenB, uint24 fee) external returns (address pool); /// @notice Support for Velodrome v1 which wraps around createPool(tokenA,tokenB,stable) function createPair(address tokenA, address tokenB, bool stable) external returns (address pool); function isPaused() external view returns (bool); function velo() external view returns (address); function veloV2() external view returns (address); function voter() external view returns (address); function sinkConverter() external view returns (address); function implementation() external view returns (address); } pragma solidity ^0.8.0; interface IRouter { struct Route { address from; address to; bool stable; address factory; } error ConversionFromV2ToV1VeloProhibited(); error ETHTransferFailed(); error Expired(); error InsufficientAmount(); error InsufficientAmountA(); error InsufficientAmountB(); error InsufficientAmountADesired(); error InsufficientAmountBDesired(); error InsufficientAmountAOptimal(); error InsufficientLiquidity(); error InsufficientOutputAmount(); error InvalidAmountInForETHDeposit(); error InvalidTokenInForETHDeposit(); error InvalidPath(); error InvalidRouteA(); error InvalidRouteB(); error OnlyWETH(); error PoolDoesNotExist(); error PoolFactoryDoesNotExist(); error SameAddresses(); error ZeroAddress(); /// @notice Address of FactoryRegistry.sol function factoryRegistry() external view returns (address); /// @notice Address of Velodrome v1 PairFactory.sol function v1Factory() external view returns (address); /// @notice Address of Velodrome v2 PoolFactory.sol function defaultFactory() external view returns (address); /// @notice Address of Voter.sol function voter() external view returns (address); /// @notice Interface of WETH contract used for WETH => ETH wrapping/unwrapping function weth() external view returns (IWETH); /// @dev Represents Ether. Used by zapper to determine whether to return assets as ETH/WETH. function ETHER() external view returns (address); /// @dev Struct containing information necessary to zap in and out of pools /// @param tokenA . /// @param tokenB . /// @param stable Stable or volatile pool /// @param factory factory of pool /// @param amountOutMinA Minimum amount expected from swap leg of zap via routesA /// @param amountOutMinB Minimum amount expected from swap leg of zap via routesB /// @param amountAMin Minimum amount of tokenA expected from liquidity leg of zap /// @param amountBMin Minimum amount of tokenB expected from liquidity leg of zap struct Zap { address tokenA; address tokenB; bool stable; address factory; uint256 amountOutMinA; uint256 amountOutMinB; uint256 amountAMin; uint256 amountBMin; } /// @notice Sort two tokens by which address value is less than the other /// @param tokenA Address of token to sort /// @param tokenB Address of token to sort /// @return token0 Lower address value between tokenA and tokenB /// @return token1 Higher address value between tokenA and tokenB function sortTokens(address tokenA, address tokenB) external pure returns (address token0, address token1); /// @notice Calculate the address of a pool by its' factory. /// Used by all Router functions containing a `Route[]` or `_factory` argument. /// Reverts if _factory is not approved by the FactoryRegistry /// @dev Returns a randomly generated address for a nonexistent pool /// @param tokenA Address of token to query /// @param tokenB Address of token to query /// @param stable True if pool is stable, false if volatile /// @param _factory Address of factory which created the pool function poolFor( address tokenA, address tokenB, bool stable, address _factory ) external view returns (address pool); /// @notice Wraps around poolFor(tokenA,tokenB,stable,_factory) for backwards compatibility to Velodrome v1 function pairFor( address tokenA, address tokenB, bool stable, address _factory ) external view returns (address pool); /// @notice Fetch and sort the reserves for a pool /// @param tokenA . /// @param tokenB . /// @param stable True if pool is stable, false if volatile /// @param _factory Address of PoolFactory for tokenA and tokenB /// @return reserveA Amount of reserves of the sorted token A /// @return reserveB Amount of reserves of the sorted token B function getReserves( address tokenA, address tokenB, bool stable, address _factory ) external view returns (uint256 reserveA, uint256 reserveB); /// @notice Perform chained getAmountOut calculations on any number of pools function getAmountsOut(uint256 amountIn, Route[] memory routes) external view returns (uint256[] memory amounts); // **** ADD LIQUIDITY **** /// @notice Quote the amount deposited into a Pool /// @param tokenA . /// @param tokenB . /// @param stable True if pool is stable, false if volatile /// @param _factory Address of PoolFactory for tokenA and tokenB /// @param amountADesired Amount of tokenA desired to deposit /// @param amountBDesired Amount of tokenB desired to deposit /// @return amountA Amount of tokenA to actually deposit /// @return amountB Amount of tokenB to actually deposit /// @return liquidity Amount of liquidity token returned from deposit function quoteAddLiquidity( address tokenA, address tokenB, bool stable, address _factory, uint256 amountADesired, uint256 amountBDesired ) external view returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @notice Quote the amount of liquidity removed from a Pool /// @param tokenA . /// @param tokenB . /// @param stable True if pool is stable, false if volatile /// @param _factory Address of PoolFactory for tokenA and tokenB /// @param liquidity Amount of liquidity to remove /// @return amountA Amount of tokenA received /// @return amountB Amount of tokenB received function quoteRemoveLiquidity( address tokenA, address tokenB, bool stable, address _factory, uint256 liquidity ) external view returns (uint256 amountA, uint256 amountB); /// @notice Add liquidity of two tokens to a Pool /// @param tokenA . /// @param tokenB . /// @param stable True if pool is stable, false if volatile /// @param amountADesired Amount of tokenA desired to deposit /// @param amountBDesired Amount of tokenB desired to deposit /// @param amountAMin Minimum amount of tokenA to deposit /// @param amountBMin Minimum amount of tokenB to deposit /// @param to Recipient of liquidity token /// @param deadline Deadline to receive liquidity /// @return amountA Amount of tokenA to actually deposit /// @return amountB Amount of tokenB to actually deposit /// @return liquidity Amount of liquidity token returned from deposit function addLiquidity( address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); /// @notice Add liquidity of a token and WETH (transferred as ETH) to a Pool /// @param token . /// @param stable True if pool is stable, false if volatile /// @param amountTokenDesired Amount of token desired to deposit /// @param amountTokenMin Minimum amount of token to deposit /// @param amountETHMin Minimum amount of ETH to deposit /// @param to Recipient of liquidity token /// @param deadline Deadline to add liquidity /// @return amountToken Amount of token to actually deposit /// @return amountETH Amount of tokenETH to actually deposit /// @return liquidity Amount of liquidity token returned from deposit function addLiquidityETH( address token, bool stable, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); // **** REMOVE LIQUIDITY **** /// @notice Remove liquidity of two tokens from a Pool /// @param tokenA . /// @param tokenB . /// @param stable True if pool is stable, false if volatile /// @param liquidity Amount of liquidity to remove /// @param amountAMin Minimum amount of tokenA to receive /// @param amountBMin Minimum amount of tokenB to receive /// @param to Recipient of tokens received /// @param deadline Deadline to remove liquidity /// @return amountA Amount of tokenA received /// @return amountB Amount of tokenB received function removeLiquidity( address tokenA, address tokenB, bool stable, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); /// @notice Remove liquidity of a token and WETH (returned as ETH) from a Pool /// @param token . /// @param stable True if pool is stable, false if volatile /// @param liquidity Amount of liquidity to remove /// @param amountTokenMin Minimum amount of token to receive /// @param amountETHMin Minimum amount of ETH to receive /// @param to Recipient of liquidity token /// @param deadline Deadline to receive liquidity /// @return amountToken Amount of token received /// @return amountETH Amount of ETH received function removeLiquidityETH( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); /// @notice Remove liquidity of a fee-on-transfer token and WETH (returned as ETH) from a Pool /// @param token . /// @param stable True if pool is stable, false if volatile /// @param liquidity Amount of liquidity to remove /// @param amountTokenMin Minimum amount of token to receive /// @param amountETHMin Minimum amount of ETH to receive /// @param to Recipient of liquidity token /// @param deadline Deadline to receive liquidity /// @return amountETH Amount of ETH received function removeLiquidityETHSupportingFeeOnTransferTokens( address token, bool stable, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); // **** SWAP **** /// @notice Swap one token for another /// @param amountIn Amount of token in /// @param amountOutMin Minimum amount of desired token received /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens /// @return amounts Array of amounts returned per route function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); /// @notice Swap ETH for a token /// @param amountOutMin Minimum amount of desired token received /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens /// @return amounts Array of amounts returned per route function swapExactETHForTokens( uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); /// @notice Swap a token for WETH (returned as ETH) /// @param amountIn Amount of token in /// @param amountOutMin Minimum amount of desired ETH /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens /// @return amounts Array of amounts returned per route function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory amounts); /// @notice Swap one token for another without slippage protection /// @return amounts Array of amounts to swap per route /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens function UNSAFE_swapExactTokensForTokens( uint256[] memory amounts, Route[] calldata routes, address to, uint256 deadline ) external returns (uint256[] memory); // **** SWAP (supporting fee-on-transfer tokens) **** /// @notice Swap one token for another supporting fee-on-transfer tokens /// @param amountIn Amount of token in /// @param amountOutMin Minimum amount of desired token received /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external; /// @notice Swap ETH for a token supporting fee-on-transfer tokens /// @param amountOutMin Minimum amount of desired token received /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external payable; /// @notice Swap a token for WETH (returned as ETH) supporting fee-on-transfer tokens /// @param amountIn Amount of token in /// @param amountOutMin Minimum amount of desired ETH /// @param routes Array of trade routes used in the swap /// @param to Recipient of the tokens received /// @param deadline Deadline to receive tokens function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, Route[] calldata routes, address to, uint256 deadline ) external; /// @notice Zap a token A into a pool (B, C). (A can be equal to B or C). /// Supports standard ERC20 tokens only (i.e. not fee-on-transfer tokens etc). /// Slippage is required for the initial swap. /// Additional slippage may be required when adding liquidity as the /// price of the token may have changed. /// @param tokenIn Token you are zapping in from (i.e. input token). /// @param amountInA Amount of input token you wish to send down routesA /// @param amountInB Amount of input token you wish to send down routesB /// @param zapInPool Contains zap struct information. See Zap struct. /// @param routesA Route used to convert input token to tokenA /// @param routesB Route used to convert input token to tokenB /// @param to Address you wish to mint liquidity to. /// @param stake Auto-stake liquidity in corresponding gauge. /// @return liquidity Amount of LP tokens created from zapping in. function zapIn( address tokenIn, uint256 amountInA, uint256 amountInB, Zap calldata zapInPool, Route[] calldata routesA, Route[] calldata routesB, address to, bool stake ) external payable returns (uint256 liquidity); /// @notice Zap out a pool (B, C) into A. /// Supports standard ERC20 tokens only (i.e. not fee-on-transfer tokens etc). /// Slippage is required for the removal of liquidity. /// Additional slippage may be required on the swap as the /// price of the token may have changed. /// @param tokenOut Token you are zapping out to (i.e. output token). /// @param liquidity Amount of liquidity you wish to remove. /// @param zapOutPool Contains zap struct information. See Zap struct. /// @param routesA Route used to convert tokenA into output token. /// @param routesB Route used to convert tokenB into output token. function zapOut( address tokenOut, uint256 liquidity, Zap calldata zapOutPool, Route[] calldata routesA, Route[] calldata routesB ) external; /// @notice Used to generate params required for zapping in. /// Zap in => remove liquidity then swap. /// Apply slippage to expected swap values to account for changes in reserves in between. /// @dev Output token refers to the token you want to zap in from. /// @param tokenA . /// @param tokenB . /// @param stable . /// @param _factory . /// @param amountInA Amount of input token you wish to send down routesA /// @param amountInB Amount of input token you wish to send down routesB /// @param routesA Route used to convert input token to tokenA /// @param routesB Route used to convert input token to tokenB /// @return amountOutMinA Minimum output expected from swapping input token to tokenA. /// @return amountOutMinB Minimum output expected from swapping input token to tokenB. /// @return amountAMin Minimum amount of tokenA expected from depositing liquidity. /// @return amountBMin Minimum amount of tokenB expected from depositing liquidity. function generateZapInParams( address tokenA, address tokenB, bool stable, address _factory, uint256 amountInA, uint256 amountInB, Route[] calldata routesA, Route[] calldata routesB ) external view returns (uint256 amountOutMinA, uint256 amountOutMinB, uint256 amountAMin, uint256 amountBMin); /// @notice Used to generate params required for zapping out. /// Zap out => swap then add liquidity. /// Apply slippage to expected liquidity values to account for changes in reserves in between. /// @dev Output token refers to the token you want to zap out of. /// @param tokenA . /// @param tokenB . /// @param stable . /// @param _factory . /// @param liquidity Amount of liquidity being zapped out of into a given output token. /// @param routesA Route used to convert tokenA into output token. /// @param routesB Route used to convert tokenB into output token. /// @return amountOutMinA Minimum output expected from swapping tokenA into output token. /// @return amountOutMinB Minimum output expected from swapping tokenB into output token. /// @return amountAMin Minimum amount of tokenA expected from withdrawing liquidity. /// @return amountBMin Minimum amount of tokenB expected from withdrawing liquidity. function generateZapOutParams( address tokenA, address tokenB, bool stable, address _factory, uint256 liquidity, Route[] calldata routesA, Route[] calldata routesB ) external view returns (uint256 amountOutMinA, uint256 amountOutMinB, uint256 amountAMin, uint256 amountBMin); /// @notice Used by zapper to determine appropriate ratio of A to B to deposit liquidity. Assumes stable pool. /// @dev Returns stable liquidity ratio of B to (A + B). /// E.g. if ratio is 0.4, it means there is more of A than there is of B. /// Therefore you should deposit more of token A than B. /// @param tokenA tokenA of stable pool you are zapping into. /// @param tokenB tokenB of stable pool you are zapping into. /// @param factory Factory that created stable pool. /// @return ratio Ratio of token0 to token1 required to deposit into zap. function quoteStableLiquidityRatio( address tokenA, address tokenB, address factory ) external view returns (uint256 ratio); } pragma solidity ^0.8.0; interface IOptimizerSonic { error NotEnoughPoints(); function usdc() external view returns (address); function weth() external view returns (address); function hydro() external view returns (address); function factory() external view returns (address); /// @notice Given a token and the amountIn, return the route to return the most token1 given 5 potential routes /// of Hydrometer pools /// If all potential routes return an amountOut of 0, returns 0 /// @dev The potential routes are stored in the Optimizer /// @param token0 Address of token to swap from /// @param token1 Address of token to swap to /// @param amountIn Amount of token to swap /// @return IRouter.Route[] Array of optimal route path to swap function getOptimalTokenToTokenRoute( address token0, address token1, uint256 amountIn ) external view returns (IRouter.Route[] memory); /// @notice Get the minimum amount out allowed in a swap given the TWAP for each swap path /// Returns 0 if the route path does not exist /// @param routes Swap route path /// @param amountIn amount of token swapped in /// @param points Number of points used in TWAP /// @param slippage Percent of allowed slippage in the swap, in basis points /// @return amountOutMin Minimum amount allowed of token received function getOptimalAmountOutMin( IRouter.Route[] calldata routes, uint256 amountIn, uint256 points, uint256 slippage ) external view returns (uint256 amountOutMin); } pragma solidity 0.8.19; /// @notice Helper contract to calculate optimal amountOut from the Hydro Router /// @author velodrome.finance, @pegahcarter, @pedrovalido contract OptimizerSonic is IOptimizerSonic { address public immutable weth; address public immutable usdc; address public immutable hydro; address public immutable factory; IRouter public immutable router; constructor(address _usdc, address _weth, address _hydro, address _factory, address _router) { weth = _weth; usdc = _usdc; hydro = _hydro; factory = _factory; router = IRouter(_router); } function _getRoutesTokenToToken( address token0, address token1 ) internal view returns (IRouter.Route[2][5] memory routesTokenToToken, uint256 length) { // caching address _usdc = usdc; address _weth = weth; address _hydro = hydro; address _factory = factory; // Create routes for routesTokenToToken if (token1 != _usdc) { // token0 <> USDC <> token1 // from <stable v2> USDC <> token1 routesTokenToToken[0][0] = IRouter.Route(token0, _usdc, true, _factory); // from <volatile v2> USDC <> token1 routesTokenToToken[1][0] = IRouter.Route(token0, _usdc, false, _factory); routesTokenToToken[0][1] = IRouter.Route(_usdc, token1, false, _factory); routesTokenToToken[1][1] = IRouter.Route(_usdc, token1, false, _factory); length = 2; } if (token1 != _weth) { // from <> WETH <> token1 // from <stable v2> WETH <> token1 routesTokenToToken[length][0] = IRouter.Route(token0, _weth, true, _factory); // from <volatile v2> WETH <> token1 routesTokenToToken[length + 1][0] = IRouter.Route(token0, _weth, false, _factory); routesTokenToToken[length][1] = IRouter.Route(_weth, token1, false, _factory); routesTokenToToken[length + 1][1] = IRouter.Route(_weth, token1, false, _factory); length += 2; } if (token1 != _hydro) { // token0 <> HYDRO <> token1 // from <stable v2> HYDRO <> token1 routesTokenToToken[length][0] = IRouter.Route(token0, _hydro, true, _factory); // from <volatile v2> HYDRO <> token1 routesTokenToToken[length + 1][0] = IRouter.Route(token0, _hydro, false, _factory); routesTokenToToken[length][1] = IRouter.Route(_hydro, token1, false, _factory); routesTokenToToken[length + 1][1] = IRouter.Route(_hydro, token1, false, _factory); length += 2; } } /// @inheritdoc IOptimizerSonic function getOptimalTokenToTokenRoute( address token0, address token1, uint256 amountIn ) external view returns (IRouter.Route[] memory) { // Get best route from multi-route paths uint256 index; uint256 optimalAmountOut; IRouter.Route[] memory routes = new IRouter.Route[](2); uint256[] memory amountsOut; (IRouter.Route[2][5] memory routesTokenToToken, uint256 length) = _getRoutesTokenToToken(token0, token1); // loop through multi-route paths for (uint256 i = 0; i < length; i++) { routes[0] = routesTokenToToken[i][0]; routes[1] = routesTokenToToken[i][1]; // Go to next route if a trading pool does not exist if (IPoolFactory(routes[0].factory).getPool(routes[0].from, routes[0].to, routes[0].stable) == address(0)) { continue; } try router.getAmountsOut(amountIn, routes) returns (uint256[] memory _amountsOut) { amountsOut = _amountsOut; } catch { continue; } // amountOut is in the third index - 0 is amountIn and 1 is the first route output uint256 amountOut = amountsOut[2]; if (amountOut > optimalAmountOut) { // store the index and amount of the optimal amount out optimalAmountOut = amountOut; index = i; } } // use the optimal route determined from the loop routes[0] = routesTokenToToken[index][0]; routes[1] = routesTokenToToken[index][1]; // Get amountOut from a direct route to token1 IRouter.Route[] memory route = new IRouter.Route[](1); route[0] = IRouter.Route(token0, token1, false, factory); amountsOut = router.getAmountsOut(amountIn, route); uint256 singleSwapAmountOut = amountsOut[1]; // compare output and return the best result return singleSwapAmountOut > optimalAmountOut ? route : routes; } /// @inheritdoc IOptimizerSonic function getOptimalAmountOutMin( IRouter.Route[] calldata routes, uint256 amountIn, uint256 points, uint256 slippage ) external view returns (uint256 amountOutMin) { if (points < 2) revert NotEnoughPoints(); uint256 length = routes.length; for (uint256 i = 0; i < length; i++) { IRouter.Route memory route = routes[i]; if (route.factory == address(0)) route.factory = factory; address pool = IPoolFactory(route.factory).getPool(route.from, route.to, route.stable); // Return 0 if the pool does not exist if (pool == address(0)) return 0; uint256 amountOut = IPool(pool).quote(route.from, amountIn, points); // Overwrite amountIn assuming we're using the TWAP for the next route swap amountIn = amountOut; } // At this point, amountIn is actually amountOut as we finished the loop amountOutMin = (amountIn * (10_000 - slippage)) / 10_000; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_hydro","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotEnoughPoints","type":"error"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"},{"internalType":"address","name":"factory","type":"address"}],"internalType":"struct IRouter.Route[]","name":"routes","type":"tuple[]"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"getOptimalAmountOutMin","outputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"getOptimalTokenToTokenRoute","outputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"},{"internalType":"address","name":"factory","type":"address"}],"internalType":"struct IRouter.Route[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hydro","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b50604051620013a9380380620013a983398101604081905262000035916200007c565b6001600160a01b0393841660805293831660a05290821660c052811660e0521661010052620000ec565b80516001600160a01b03811681146200007757600080fd5b919050565b600080600080600060a086880312156200009557600080fd5b620000a0866200005f565b9450620000b0602087016200005f565b9350620000c0604087016200005f565b9250620000d0606087016200005f565b9150620000e0608087016200005f565b90509295509295909350565b60805160a05160c05160e051610100516112436200016660003960008181610160015281816103bf01526105d10152600081816101390152818161057101528181610706015261090d015260008181608701526108ec01526000818160cb01526108aa01526000818160f201526108cb01526112436000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806350e5a4931161005b57806350e5a49314610114578063c45a015514610134578063f887ea401461015b578063f969351e1461018257600080fd5b806315a75bae146100825780633e413bee146100c65780633fc8cef3146100ed575b600080fd5b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b610127610122366004610e44565b6101a3565b6040516100bd9190610ef0565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b610195610190366004610f0a565b61068d565b6040519081526020016100bd565b60408051600280825260608281019093526000918291829190816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816101c157905050905060606000806102068a8a61089e565b9150915060005b8181101561047d5782816005811061022757610227610fab565b6020020151518551869060009061024057610240610fab565b602002602001018190525082816005811061025d5761025d610fab565b6020020151600160200201518560018151811061027c5761027c610fab565b602002602001018190525060006001600160a01b0316856000815181106102a5576102a5610fab565b6020026020010151606001516001600160a01b03166379bc57d5876000815181106102d2576102d2610fab565b602002602001015160000151886000815181106102f1576102f1610fab565b6020026020010151602001518960008151811061031057610310610fab565b6020026020010151604001516040518463ffffffff1660e01b8152600401610359939291906001600160a01b039384168152919092166020820152901515604082015260600190565b602060405180830381865afa158015610376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039a9190610fc1565b6001600160a01b03161461046b57604051631542686b60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635509a1ac906103f6908c908990600401610fde565b600060405180830381865afa92505050801561043457506040513d6000823e601f3d908101601f191682016040526104319190810190611030565b60015b1561046b57935060008460028151811061045057610450610fab565b6020026020010151905086811115610469578096508197505b505b80610475816110ec565b91505061020d565b5081866005811061049057610490610fab565b602002015151845185906000906104a9576104a9610fab565b60200260200101819052508186600581106104c6576104c6610fab565b602002015160016020020151846001815181106104e5576104e5610fab565b6020908102919091010152604080516001808252818301909252600091816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161050757905050905060405180608001604052808c6001600160a01b031681526020018b6001600160a01b031681526020016000151581526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316815250816000815181106105af576105af610fab565b6020908102919091010152604051631542686b60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635509a1ac90610608908c908590600401610fde565b600060405180830381865afa158015610625573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261064d9190810190611030565b935060008460018151811061066457610664610fab565b6020026020010151905086811161067b578561067d565b815b9c9b505050505050505050505050565b600060028310156106b15760405163cfd1c46b60e01b815260040160405180910390fd5b8460005b8181101561086f5760008888838181106106d1576106d1610fab565b9050608002018036038101906106e79190611105565b60608101519091506001600160a01b031661072c576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660608201525b60608101518151602083015160408085015190516379bc57d560e01b81526001600160a01b03938416600482015291831660248301521515604482015260009291909116906379bc57d590606401602060405180830381865afa158015610797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bb9190610fc1565b90506001600160a01b0381166107d8576000945050505050610895565b8151604051639e8cc04b60e01b81526001600160a01b039182166004820152602481018a905260448101899052600091831690639e8cc04b90606401602060405180830381865afa158015610831573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610855919061118f565b985083925061086791508290506110ec565b9150506106b5565b5061271061087d84826111a8565b61088790876111c1565b61089191906111d8565b9150505b95945050505050565b6108a6610db9565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0387811690851614610a365760408051608080820183526001600160a01b038b8116808452888216602080860182905260018688015287841660608088018290528e51979097528751808701895293845283820183905260008489018190528488018290528e8301519490945287519586018852918552928d1692840192909252938201849052918101919091529087906020020151600160200201819052506040518060800160405280856001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086600160058110610a2557610a25610fab565b602002015160016020020152600294505b826001600160a01b0316876001600160a01b031614610bf2576040518060800160405280896001600160a01b03168152602001846001600160a01b03168152602001600115158152602001826001600160a01b0316815250868660058110610aa057610aa0610fab565b6020020151600060200201819052506040518060800160405280896001600160a01b03168152602001846001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610afc91906111fa565b60058110610b0c57610b0c610fab565b6020020151600060200201819052506040518060800160405280846001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b0316815250868660058110610b6c57610b6c610fab565b6020020151600160200201819052506040518060800160405280846001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610bc891906111fa565b60058110610bd857610bd8610fab565b602002015160016020020152610bef6002866111fa565b94505b816001600160a01b0316876001600160a01b031614610dae576040518060800160405280896001600160a01b03168152602001836001600160a01b03168152602001600115158152602001826001600160a01b0316815250868660058110610c5c57610c5c610fab565b6020020151600060200201819052506040518060800160405280896001600160a01b03168152602001836001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610cb891906111fa565b60058110610cc857610cc8610fab565b6020020151600060200201819052506040518060800160405280836001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b0316815250868660058110610d2857610d28610fab565b6020020151600160200201819052506040518060800160405280836001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610d8491906111fa565b60058110610d9457610d94610fab565b602002015160016020020152610dab6002866111fa565b94505b505050509250929050565b6040518060a001604052806005905b610dd0610de6565b815260200190600190039081610dc85790505090565b60405180604001604052806002905b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610df55790505090565b6001600160a01b0381168114610e4157600080fd5b50565b600080600060608486031215610e5957600080fd5b8335610e6481610e2c565b92506020840135610e7481610e2c565b929592945050506040919091013590565b600081518084526020808501945080840160005b83811015610ee557815180516001600160a01b039081168952848201518116858a01526040808301511515908a0152606091820151169088015260809096019590820190600101610e99565b509495945050505050565b602081526000610f036020830184610e85565b9392505050565b600080600080600060808688031215610f2257600080fd5b853567ffffffffffffffff80821115610f3a57600080fd5b818801915088601f830112610f4e57600080fd5b813581811115610f5d57600080fd5b8960208260071b8501011115610f7257600080fd5b60209283019a909950918801359760408101359750606001359550909350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060208284031215610fd357600080fd5b8151610f0381610e2c565b828152604060208201526000610ff76040830184610e85565b949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561102857611028610f95565b604052919050565b6000602080838503121561104357600080fd5b825167ffffffffffffffff8082111561105b57600080fd5b818501915085601f83011261106f57600080fd5b81518181111561108157611081610f95565b8060051b9150611092848301610fff565b81815291830184019184810190888411156110ac57600080fd5b938501935b838510156110ca578451825293850193908501906110b1565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016110fe576110fe6110d6565b5060010190565b60006080828403121561111757600080fd5b6040516080810181811067ffffffffffffffff8211171561113a5761113a610f95565b604052823561114881610e2c565b8152602083013561115881610e2c565b60208201526040830135801515811461117057600080fd5b6040820152606083013561118381610e2c565b60608201529392505050565b6000602082840312156111a157600080fd5b5051919050565b818103818111156111bb576111bb6110d6565b92915050565b80820281158282048414176111bb576111bb6110d6565b6000826111f557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156111bb576111bb6110d656fea26469706673582212206462dfcaa698654b5352cc4a0c51c8a70eee13a190b8bdfe00f23dece2a5198164736f6c6343000813003300000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c9000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b8
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806350e5a4931161005b57806350e5a49314610114578063c45a015514610134578063f887ea401461015b578063f969351e1461018257600080fd5b806315a75bae146100825780633e413bee146100c65780633fc8cef3146100ed575b600080fd5b6100a97f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a81565b6040516001600160a01b0390911681526020015b60405180910390f35b6100a97f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889481565b6100a97f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3881565b610127610122366004610e44565b6101a3565b6040516100bd9190610ef0565b6100a97f0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c981565b6100a97f000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b881565b610195610190366004610f0a565b61068d565b6040519081526020016100bd565b60408051600280825260608281019093526000918291829190816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816101c157905050905060606000806102068a8a61089e565b9150915060005b8181101561047d5782816005811061022757610227610fab565b6020020151518551869060009061024057610240610fab565b602002602001018190525082816005811061025d5761025d610fab565b6020020151600160200201518560018151811061027c5761027c610fab565b602002602001018190525060006001600160a01b0316856000815181106102a5576102a5610fab565b6020026020010151606001516001600160a01b03166379bc57d5876000815181106102d2576102d2610fab565b602002602001015160000151886000815181106102f1576102f1610fab565b6020026020010151602001518960008151811061031057610310610fab565b6020026020010151604001516040518463ffffffff1660e01b8152600401610359939291906001600160a01b039384168152919092166020820152901515604082015260600190565b602060405180830381865afa158015610376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039a9190610fc1565b6001600160a01b03161461046b57604051631542686b60e21b81526001600160a01b037f000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b81690635509a1ac906103f6908c908990600401610fde565b600060405180830381865afa92505050801561043457506040513d6000823e601f3d908101601f191682016040526104319190810190611030565b60015b1561046b57935060008460028151811061045057610450610fab565b6020026020010151905086811115610469578096508197505b505b80610475816110ec565b91505061020d565b5081866005811061049057610490610fab565b602002015151845185906000906104a9576104a9610fab565b60200260200101819052508186600581106104c6576104c6610fab565b602002015160016020020151846001815181106104e5576104e5610fab565b6020908102919091010152604080516001808252818301909252600091816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161050757905050905060405180608001604052808c6001600160a01b031681526020018b6001600160a01b031681526020016000151581526020017f0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c96001600160a01b0316815250816000815181106105af576105af610fab565b6020908102919091010152604051631542686b60e21b81526001600160a01b037f000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b81690635509a1ac90610608908c908590600401610fde565b600060405180830381865afa158015610625573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261064d9190810190611030565b935060008460018151811061066457610664610fab565b6020026020010151905086811161067b578561067d565b815b9c9b505050505050505050505050565b600060028310156106b15760405163cfd1c46b60e01b815260040160405180910390fd5b8460005b8181101561086f5760008888838181106106d1576106d1610fab565b9050608002018036038101906106e79190611105565b60608101519091506001600160a01b031661072c576001600160a01b037f0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c91660608201525b60608101518151602083015160408085015190516379bc57d560e01b81526001600160a01b03938416600482015291831660248301521515604482015260009291909116906379bc57d590606401602060405180830381865afa158015610797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bb9190610fc1565b90506001600160a01b0381166107d8576000945050505050610895565b8151604051639e8cc04b60e01b81526001600160a01b039182166004820152602481018a905260448101899052600091831690639e8cc04b90606401602060405180830381865afa158015610831573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610855919061118f565b985083925061086791508290506110ec565b9150506106b5565b5061271061087d84826111a8565b61088790876111c1565b61089191906111d8565b9150505b95945050505050565b6108a6610db9565b60007f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388947f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad387f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a7f0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c96001600160a01b0387811690851614610a365760408051608080820183526001600160a01b038b8116808452888216602080860182905260018688015287841660608088018290528e51979097528751808701895293845283820183905260008489018190528488018290528e8301519490945287519586018852918552928d1692840192909252938201849052918101919091529087906020020151600160200201819052506040518060800160405280856001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086600160058110610a2557610a25610fab565b602002015160016020020152600294505b826001600160a01b0316876001600160a01b031614610bf2576040518060800160405280896001600160a01b03168152602001846001600160a01b03168152602001600115158152602001826001600160a01b0316815250868660058110610aa057610aa0610fab565b6020020151600060200201819052506040518060800160405280896001600160a01b03168152602001846001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610afc91906111fa565b60058110610b0c57610b0c610fab565b6020020151600060200201819052506040518060800160405280846001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b0316815250868660058110610b6c57610b6c610fab565b6020020151600160200201819052506040518060800160405280846001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610bc891906111fa565b60058110610bd857610bd8610fab565b602002015160016020020152610bef6002866111fa565b94505b816001600160a01b0316876001600160a01b031614610dae576040518060800160405280896001600160a01b03168152602001836001600160a01b03168152602001600115158152602001826001600160a01b0316815250868660058110610c5c57610c5c610fab565b6020020151600060200201819052506040518060800160405280896001600160a01b03168152602001836001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610cb891906111fa565b60058110610cc857610cc8610fab565b6020020151600060200201819052506040518060800160405280836001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b0316815250868660058110610d2857610d28610fab565b6020020151600160200201819052506040518060800160405280836001600160a01b03168152602001886001600160a01b03168152602001600015158152602001826001600160a01b031681525086866001610d8491906111fa565b60058110610d9457610d94610fab565b602002015160016020020152610dab6002866111fa565b94505b505050509250929050565b6040518060a001604052806005905b610dd0610de6565b815260200190600190039081610dc85790505090565b60405180604001604052806002905b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610df55790505090565b6001600160a01b0381168114610e4157600080fd5b50565b600080600060608486031215610e5957600080fd5b8335610e6481610e2c565b92506020840135610e7481610e2c565b929592945050506040919091013590565b600081518084526020808501945080840160005b83811015610ee557815180516001600160a01b039081168952848201518116858a01526040808301511515908a0152606091820151169088015260809096019590820190600101610e99565b509495945050505050565b602081526000610f036020830184610e85565b9392505050565b600080600080600060808688031215610f2257600080fd5b853567ffffffffffffffff80821115610f3a57600080fd5b818801915088601f830112610f4e57600080fd5b813581811115610f5d57600080fd5b8960208260071b8501011115610f7257600080fd5b60209283019a909950918801359760408101359750606001359550909350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060208284031215610fd357600080fd5b8151610f0381610e2c565b828152604060208201526000610ff76040830184610e85565b949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561102857611028610f95565b604052919050565b6000602080838503121561104357600080fd5b825167ffffffffffffffff8082111561105b57600080fd5b818501915085601f83011261106f57600080fd5b81518181111561108157611081610f95565b8060051b9150611092848301610fff565b81815291830184019184810190888411156110ac57600080fd5b938501935b838510156110ca578451825293850193908501906110b1565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016110fe576110fe6110d6565b5060010190565b60006080828403121561111757600080fd5b6040516080810181811067ffffffffffffffff8211171561113a5761113a610f95565b604052823561114881610e2c565b8152602083013561115881610e2c565b60208201526040830135801515811461117057600080fd5b6040820152606083013561118381610e2c565b60608201529392505050565b6000602082840312156111a157600080fd5b5051919050565b818103818111156111bb576111bb6110d6565b92915050565b80820281158282048414176111bb576111bb6110d6565b6000826111f557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156111bb576111bb6110d656fea26469706673582212206462dfcaa698654b5352cc4a0c51c8a70eee13a190b8bdfe00f23dece2a5198164736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c9000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b8
-----Decoded View---------------
Arg [0] : _usdc (address): 0x29219dd400f2Bf60E5a23d13Be72B486D4038894
Arg [1] : _weth (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [2] : _hydro (address): 0x95F0c274BDa9159DCD69fD0C778776BCe265CC0A
Arg [3] : _factory (address): 0x0BA188D6D09229b9c2eD5083B461726EE8a2e9C9
Arg [4] : _router (address): 0xbBb41073e22B7FEc739E0B45d0c148a3897E53B8
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Arg [1] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [2] : 00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a
Arg [3] : 0000000000000000000000000ba188d6d09229b9c2ed5083b461726ee8a2e9c9
Arg [4] : 000000000000000000000000bbb41073e22b7fec739e0b45d0c148a3897e53b8
Deployed Bytecode Sourcemap
39348:5841:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39470:30;;;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;39470:30:0;;;;;;;;39434:29;;;;;39398;;;;;41996:2098;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;39507:32::-;;;;;39546:31;;;;;44139:1047;;;;;;:::i;:::-;;:::i;:::-;;;3136:25:1;;;3124:2;3109:18;44139:1047:0;2990:177:1;41996:2098:0;42316:22;;;42336:1;42316:22;;;42140;42316;;;;;;42225:13;;;;;;42316:22;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42316:22:0;;-1:-1:-1;;42316:22:0;;;;;;;;;;;42284:54;;42349:27;42390:45;42437:14;42455:38;42478:6;42486;42455:22;:38::i;:::-;42389:104;;;;42552:9;42547:946;42571:6;42567:1;:10;42547:946;;;42611:18;42630:1;42611:21;;;;;;;:::i;:::-;;;;;:24;42599:9;;:6;;42633:1;;42599:9;;;;:::i;:::-;;;;;;:36;;;;42662:18;42681:1;42662:21;;;;;;;:::i;:::-;;;;;42684:1;42662:24;;;;42650:6;42657:1;42650:9;;;;;;;;:::i;:::-;;;;;;:36;;;;42872:1;-1:-1:-1;;;;;42773:101:0;42786:6;42793:1;42786:9;;;;;;;;:::i;:::-;;;;;;;:17;;;-1:-1:-1;;;;;42773:39:0;;42813:6;42820:1;42813:9;;;;;;;;:::i;:::-;;;;;;;:14;;;42829:6;42836:1;42829:9;;;;;;;;:::i;:::-;;;;;;;:12;;;42843:6;42850:1;42843:9;;;;;;;;:::i;:::-;;;;;;;:16;;;42773:87;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3688:15:1;;;3670:34;;3740:15;;;;3735:2;3720:18;;3713:43;3799:14;;3792:22;3787:2;3772:18;;3765:50;3620:2;3605:18;;3436:385;42773:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;42773:101:0;42769:150;42895:8;42769:150;42939:38;;-1:-1:-1;;;42939:38:0;;-1:-1:-1;;;;;42939:6:0;:20;;;;:38;;42960:8;;42970:6;;42939:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;42939:38:0;;;;;;;;;;;;:::i;:::-;;;42935:191;43102:8;42935:191;43049:11;-1:-1:-1;43236:17:0;43256:10;43267:1;43256:13;;;;;;;;:::i;:::-;;;;;;;43236:33;;43300:16;43288:9;:28;43284:198;;;43429:9;43410:28;;43465:1;43457:9;;43284:198;42584:909;42547:946;42579:3;;;;:::i;:::-;;;;42547:946;;;;43574:18;43593:5;43574:25;;;;;;;:::i;:::-;;;;;:28;43562:9;;:6;;43600:1;;43562:9;;;;:::i;:::-;;;;;;:40;;;;43625:18;43644:5;43625:25;;;;;;;:::i;:::-;;;;;43651:1;43625:28;;;;43613:6;43620:1;43613:9;;;;;;;;:::i;:::-;;;;;;;;;;:40;43753:22;;;43773:1;43753:22;;;;;;;;;43722:28;;43753:22;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43753:22:0;;-1:-1:-1;;43753:22:0;;;;;;;;;;;43722:53;;43797:45;;;;;;;;43811:6;-1:-1:-1;;;;;43797:45:0;;;;;43819:6;-1:-1:-1;;;;;43797:45:0;;;;;43827:5;43797:45;;;;;;43834:7;-1:-1:-1;;;;;43797:45:0;;;;43786:5;43792:1;43786:8;;;;;;;;:::i;:::-;;;;;;;;;;:56;43866:37;;-1:-1:-1;;;43866:37:0;;-1:-1:-1;;;;;43866:6:0;:20;;;;:37;;43887:8;;43897:5;;43866:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43866:37:0;;;;;;;;;;;;:::i;:::-;43853:50;;43914:27;43944:10;43955:1;43944:13;;;;;;;;:::i;:::-;;;;;;;43914:43;;44053:16;44031:19;:38;:55;;44080:6;44031:55;;;44072:5;44031:55;44024:62;41996:2098;-1:-1:-1;;;;;;;;;;;;41996:2098:0:o;44139:1047::-;44322:20;44368:1;44359:6;:10;44355:40;;;44378:17;;-1:-1:-1;;;44378:17:0;;;;;;;;;;;44355:40;44423:6;44406:14;44449:579;44473:6;44469:1;:10;44449:579;;;44501:26;44530:6;;44537:1;44530:9;;;;;;;:::i;:::-;;;;;;44501:38;;;;;;;;;;:::i;:::-;44558:13;;;;44501:38;;-1:-1:-1;;;;;;44558:27:0;44554:56;;-1:-1:-1;;;;;44603:7:0;44587:23;:13;;;:23;44554:56;44653:13;;;;44676:10;;44688:8;;;;44698:12;;;;;44640:71;;-1:-1:-1;;;44640:71:0;;-1:-1:-1;;;;;3688:15:1;;;44640:71:0;;;3670:34:1;3740:15;;;3720:18;;;3713:43;3799:14;3792:22;3772:18;;;3765:50;44625:12:0;;44640:35;;;;;;;3605:18:1;;44640:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44625:86;-1:-1:-1;;;;;;44782:18:0;;44778:32;;44809:1;44802:8;;;;;;;;44778:32;44863:10;;44845:47;;-1:-1:-1;;;44845:47:0;;-1:-1:-1;;;;;7138:32:1;;;44845:47:0;;;7120:51:1;7187:18;;;7180:34;;;7230:18;;;7223:34;;;44825:17:0;;44845;;;;;7093:18:1;;44845:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44825:67;-1:-1:-1;44481:3:0;;-1:-1:-1;44481:3:0;;-1:-1:-1;44481:3:0;;-1:-1:-1;44481:3:0;:::i;:::-;;;;44449:579;;;-1:-1:-1;45172:6:0;45150:17;45159:8;45172:6;45150:17;:::i;:::-;45138:30;;:8;:30;:::i;:::-;45137:41;;;;:::i;:::-;45122:56;;44344:842;44139:1047;;;;;;;;:::o;39831:2120::-;39943:45;;:::i;:::-;39990:14;40053:4;40084;40116:5;40151:7;-1:-1:-1;;;;;40224:15:0;;;;;;;40220:546;;40372:44;;;;;;;;;-1:-1:-1;;;;;40372:44:0;;;;;;;;;;;;;;;;40401:4;40372:44;;;;;;;;;;;;;;40345:21;;:71;;;;40508:45;;;;;;;;;;;;;;;;-1:-1:-1;40508:45:0;;;;;;;;;;;;40481:21;;;;:72;;;;40597:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40345:21;;40570;;;;40592:1;40570:24;;;:72;;;;40684:45;;;;;;;;40698:5;-1:-1:-1;;;;;40684:45:0;;;;;40705:6;-1:-1:-1;;;;;40684:45:0;;;;;40713:5;40684:45;;;;;;40720:8;-1:-1:-1;;;;;40684:45:0;;;;40657:18;40676:1;40657:21;;;;;;;:::i;:::-;;;;;40679:1;40657:24;;;:72;40753:1;;-1:-1:-1;40220:546:0;40790:5;-1:-1:-1;;;;;40780:15:0;:6;-1:-1:-1;;;;;40780:15:0;;40776:573;;40931:44;;;;;;;;40945:6;-1:-1:-1;;;;;40931:44:0;;;;;40953:5;-1:-1:-1;;;;;40931:44:0;;;;;40960:4;40931:44;;;;;;40966:8;-1:-1:-1;;;;;40931:44:0;;;;40899:18;40918:6;40899:26;;;;;;;:::i;:::-;;;;;40926:1;40899:29;;;:76;;;;41076:45;;;;;;;;41090:6;-1:-1:-1;;;;;41076:45:0;;;;;41098:5;-1:-1:-1;;;;;41076:45:0;;;;;41105:5;41076:45;;;;;;41112:8;-1:-1:-1;;;;;41076:45:0;;;;41040:18;41059:6;41068:1;41059:10;;;;:::i;:::-;41040:30;;;;;;;:::i;:::-;;;;;41071:1;41040:33;;;:81;;;;41170:45;;;;;;;;41184:5;-1:-1:-1;;;;;41170:45:0;;;;;41191:6;-1:-1:-1;;;;;41170:45:0;;;;;41199:5;41170:45;;;;;;41206:8;-1:-1:-1;;;;;41170:45:0;;;;41138:18;41157:6;41138:26;;;;;;;:::i;:::-;;;;;41165:1;41138:29;;;:77;;;;41266:45;;;;;;;;41280:5;-1:-1:-1;;;;;41266:45:0;;;;;41287:6;-1:-1:-1;;;;;41266:45:0;;;;;41295:5;41266:45;;;;;;41302:8;-1:-1:-1;;;;;41266:45:0;;;;41230:18;41249:6;41258:1;41249:10;;;;:::i;:::-;41230:30;;;;;;;:::i;:::-;;;;;41261:1;41230:33;;;:81;41326:11;41336:1;41326:11;;:::i;:::-;;;40776:573;41375:6;-1:-1:-1;;;;;41365:16:0;:6;-1:-1:-1;;;;;41365:16:0;;41361:583;;41521:45;;;;;;;;41535:6;-1:-1:-1;;;;;41521:45:0;;;;;41543:6;-1:-1:-1;;;;;41521:45:0;;;;;41551:4;41521:45;;;;;;41557:8;-1:-1:-1;;;;;41521:45:0;;;;41489:18;41508:6;41489:26;;;;;;;:::i;:::-;;;;;41516:1;41489:29;;;:77;;;;41668:46;;;;;;;;41682:6;-1:-1:-1;;;;;41668:46:0;;;;;41690:6;-1:-1:-1;;;;;41668:46:0;;;;;41698:5;41668:46;;;;;;41705:8;-1:-1:-1;;;;;41668:46:0;;;;41632:18;41651:6;41660:1;41651:10;;;;:::i;:::-;41632:30;;;;;;;:::i;:::-;;;;;41663:1;41632:33;;;:82;;;;41763:46;;;;;;;;41777:6;-1:-1:-1;;;;;41763:46:0;;;;;41785:6;-1:-1:-1;;;;;41763:46:0;;;;;41793:5;41763:46;;;;;;41800:8;-1:-1:-1;;;;;41763:46:0;;;;41731:18;41750:6;41731:26;;;;;;;:::i;:::-;;;;;41758:1;41731:29;;;:78;;;;41860:46;;;;;;;;41874:6;-1:-1:-1;;;;;41860:46:0;;;;;41882:6;-1:-1:-1;;;;;41860:46:0;;;;;41890:5;41860:46;;;;;;41897:8;-1:-1:-1;;;;;41860:46:0;;;;41824:18;41843:6;41852:1;41843:10;;;;:::i;:::-;41824:30;;;;;;;:::i;:::-;;;;;41855:1;41824:33;;;:82;41921:11;41931:1;41921:11;;:::i;:::-;;;41361:583;40006:1945;;;;39831:2120;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;222:131:1:-;-1:-1:-1;;;;;297:31:1;;287:42;;277:70;;343:1;340;333:12;277:70;222:131;:::o;358:456::-;435:6;443;451;504:2;492:9;483:7;479:23;475:32;472:52;;;520:1;517;510:12;472:52;559:9;546:23;578:31;603:5;578:31;:::i;:::-;628:5;-1:-1:-1;685:2:1;670:18;;657:32;698:33;657:32;698:33;:::i;:::-;358:456;;750:7;;-1:-1:-1;;;804:2:1;789:18;;;;776:32;;358:456::o;819:772::-;877:3;915:5;909:12;942:6;937:3;930:19;968:4;997:2;992:3;988:12;981:19;;1034:2;1027:5;1023:14;1055:1;1065:501;1079:6;1076:1;1073:13;1065:501;;;1138:13;;1222:9;;-1:-1:-1;;;;;1218:18:1;;;1206:31;;1281:11;;;1275:18;1271:27;;1257:12;;;1250:49;1322:4;1380:11;;;1374:18;1367:26;1360:34;1346:12;;;1339:56;1418:4;1466:11;;;1460:18;1456:27;1442:12;;;1435:49;1513:4;1504:14;;;;1541:15;;;;1191:1;1094:9;1065:501;;;-1:-1:-1;1582:3:1;;819:772;-1:-1:-1;;;;;819:772:1:o;1596:310::-;1819:2;1808:9;1801:21;1782:4;1839:61;1896:2;1885:9;1881:18;1873:6;1839:61;:::i;:::-;1831:69;1596:310;-1:-1:-1;;;1596:310:1:o;2135:850::-;2272:6;2280;2288;2296;2304;2357:3;2345:9;2336:7;2332:23;2328:33;2325:53;;;2374:1;2371;2364:12;2325:53;2414:9;2401:23;2443:18;2484:2;2476:6;2473:14;2470:34;;;2500:1;2497;2490:12;2470:34;2538:6;2527:9;2523:22;2513:32;;2583:7;2576:4;2572:2;2568:13;2564:27;2554:55;;2605:1;2602;2595:12;2554:55;2645:2;2632:16;2671:2;2663:6;2660:14;2657:34;;;2687:1;2684;2677:12;2657:34;2742:7;2735:4;2725:6;2722:1;2718:14;2714:2;2710:23;2706:34;2703:47;2700:67;;;2763:1;2760;2753:12;2700:67;2794:4;2786:13;;;;2818:6;;-1:-1:-1;2856:20:1;;;2843:34;;2924:2;2909:18;;2896:32;;-1:-1:-1;2975:2:1;2960:18;2947:32;;-1:-1:-1;2135:850:1;;-1:-1:-1;;;;2135:850:1:o;3172:127::-;3233:10;3228:3;3224:20;3221:1;3214:31;3264:4;3261:1;3254:15;3288:4;3285:1;3278:15;3304:127;3365:10;3360:3;3356:20;3353:1;3346:31;3396:4;3393:1;3386:15;3420:4;3417:1;3410:15;3826:251;3896:6;3949:2;3937:9;3928:7;3924:23;3920:32;3917:52;;;3965:1;3962;3955:12;3917:52;3997:9;3991:16;4016:31;4041:5;4016:31;:::i;4082:381::-;4333:6;4322:9;4315:25;4376:2;4371;4360:9;4356:18;4349:30;4296:4;4396:61;4453:2;4442:9;4438:18;4430:6;4396:61;:::i;:::-;4388:69;4082:381;-1:-1:-1;;;;4082:381:1:o;4468:275::-;4539:2;4533:9;4604:2;4585:13;;-1:-1:-1;;4581:27:1;4569:40;;4639:18;4624:34;;4660:22;;;4621:62;4618:88;;;4686:18;;:::i;:::-;4722:2;4715:22;4468:275;;-1:-1:-1;4468:275:1:o;4748:936::-;4843:6;4874:2;4917;4905:9;4896:7;4892:23;4888:32;4885:52;;;4933:1;4930;4923:12;4885:52;4966:9;4960:16;4995:18;5036:2;5028:6;5025:14;5022:34;;;5052:1;5049;5042:12;5022:34;5090:6;5079:9;5075:22;5065:32;;5135:7;5128:4;5124:2;5120:13;5116:27;5106:55;;5157:1;5154;5147:12;5106:55;5186:2;5180:9;5208:2;5204;5201:10;5198:36;;;5214:18;;:::i;:::-;5260:2;5257:1;5253:10;5243:20;;5283:28;5307:2;5303;5299:11;5283:28;:::i;:::-;5345:15;;;5415:11;;;5411:20;;;5376:12;;;;5443:19;;;5440:39;;;5475:1;5472;5465:12;5440:39;5499:11;;;;5519:135;5535:6;5530:3;5527:15;5519:135;;;5601:10;;5589:23;;5552:12;;;;5632;;;;5519:135;;;5673:5;4748:936;-1:-1:-1;;;;;;;;4748:936:1:o;5689:127::-;5750:10;5745:3;5741:20;5738:1;5731:31;5781:4;5778:1;5771:15;5805:4;5802:1;5795:15;5821:135;5860:3;5881:17;;;5878:43;;5901:18;;:::i;:::-;-1:-1:-1;5948:1:1;5937:13;;5821:135::o;5961:952::-;6042:6;6095:3;6083:9;6074:7;6070:23;6066:33;6063:53;;;6112:1;6109;6102:12;6063:53;6145:2;6139:9;6187:3;6179:6;6175:16;6257:6;6245:10;6242:22;6221:18;6209:10;6206:34;6203:62;6200:88;;;6268:18;;:::i;:::-;6304:2;6297:22;6341:23;;6373:31;6341:23;6373:31;:::i;:::-;6413:21;;6486:2;6471:18;;6458:32;6499:33;6458:32;6499:33;:::i;:::-;6560:2;6548:15;;6541:32;6625:2;6610:18;;6597:32;6667:15;;6660:23;6648:36;;6638:64;;6698:1;6695;6688:12;6638:64;6730:2;6718:15;;6711:32;6795:2;6780:18;;6767:32;6808:33;6767:32;6808:33;:::i;:::-;6869:2;6857:15;;6850:32;6861:6;5961:952;-1:-1:-1;;;5961:952:1:o;7268:184::-;7338:6;7391:2;7379:9;7370:7;7366:23;7362:32;7359:52;;;7407:1;7404;7397:12;7359:52;-1:-1:-1;7430:16:1;;7268:184;-1:-1:-1;7268:184:1:o;7457:128::-;7524:9;;;7545:11;;;7542:37;;;7559:18;;:::i;:::-;7457:128;;;;:::o;7590:168::-;7663:9;;;7694;;7711:15;;;7705:22;;7691:37;7681:71;;7732:18;;:::i;7763:217::-;7803:1;7829;7819:132;;7873:10;7868:3;7864:20;7861:1;7854:31;7908:4;7905:1;7898:15;7936:4;7933:1;7926:15;7819:132;-1:-1:-1;7965:9:1;;7763:217::o;7985:125::-;8050:9;;;8071:10;;;8068:36;;;8084:18;;:::i
Swarm Source
ipfs://6462dfcaa698654b5352cc4a0c51c8a70eee13a190b8bdfe00f23dece2a51981
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.