More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,749 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 21734626 | 23 hrs ago | IN | 0 ETH | 0.00118737 | ||||
Swap | 21731377 | 34 hrs ago | IN | 0.85 ETH | 0.00288257 | ||||
Swap | 21729737 | 39 hrs ago | IN | 0 ETH | 0.00159987 | ||||
Swap | 21729696 | 39 hrs ago | IN | 0 ETH | 0.00125 | ||||
Swap | 21723689 | 2 days ago | IN | 0 ETH | 0.00030765 | ||||
Swap | 21723689 | 2 days ago | IN | 0 ETH | 0.00300367 | ||||
Swap | 21722682 | 2 days ago | IN | 0 ETH | 0.00215292 | ||||
Swap | 21721071 | 2 days ago | IN | 0 ETH | 0.00245265 | ||||
Swap | 21717918 | 3 days ago | IN | 0.06 ETH | 0.00465307 | ||||
Swap | 21711444 | 4 days ago | IN | 0 ETH | 0.00301887 | ||||
Swap | 21700043 | 5 days ago | IN | 0 ETH | 0.00277963 | ||||
Swap | 21698714 | 5 days ago | IN | 0 ETH | 0.00285795 | ||||
Swap | 21698231 | 6 days ago | IN | 0 ETH | 0.00302077 | ||||
Swap | 21671643 | 9 days ago | IN | 0 ETH | 0.00229597 | ||||
Swap | 21670985 | 9 days ago | IN | 0 ETH | 0.00386677 | ||||
Swap | 21669987 | 9 days ago | IN | 0 ETH | 0.00596547 | ||||
Swap | 21663029 | 10 days ago | IN | 0 ETH | 0.01293373 | ||||
Swap | 21647296 | 13 days ago | IN | 0.06 ETH | 0.0035662 | ||||
Swap | 21644773 | 13 days ago | IN | 0 ETH | 0.00041378 | ||||
Swap | 21644773 | 13 days ago | IN | 0 ETH | 0.00421477 | ||||
Swap | 21642342 | 13 days ago | IN | 0 ETH | 0.00195874 | ||||
Swap | 21639290 | 14 days ago | IN | 0 ETH | 0.00305501 | ||||
Swap | 21631957 | 15 days ago | IN | 0 ETH | 0.00603939 | ||||
Swap | 21629277 | 15 days ago | IN | 0 ETH | 0.00136737 | ||||
Swap | 21629199 | 15 days ago | IN | 0.0033 ETH | 0.00143626 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21734626 | 23 hrs ago | 1.07678244 ETH | |||||
21734626 | 23 hrs ago | 1.07678244 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21734626 | 23 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0 ETH | |||||
21731377 | 34 hrs ago | 0.85 ETH | |||||
21729737 | 39 hrs ago | 0 ETH | |||||
21729737 | 39 hrs ago | 0 ETH | |||||
21729737 | 39 hrs ago | 0 ETH | |||||
21729737 | 39 hrs ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FraxswapRouterMultihop
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-20 */ // SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // Sources flattened with hardhat v2.12.0 https://hardhat.org // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @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); } // File @uniswap/v3-core/contracts/libraries/[email protected] /// @title Safe casting methods /// @notice Contains methods for safely casting between types library SafeCast { /// @notice Cast a uint256 to a uint160, revert on overflow /// @param y The uint256 to be downcasted /// @return z The downcasted integer, now type uint160 function toUint160(uint256 y) internal pure returns (uint160 z) { require((z = uint160(y)) == y); } /// @notice Cast a int256 to a int128, revert on overflow or underflow /// @param y The int256 to be downcasted /// @return z The downcasted integer, now type int128 function toInt128(int256 y) internal pure returns (int128 z) { require((z = int128(y)) == y); } /// @notice Cast a uint256 to a int256, revert on overflow /// @param y The uint256 to be casted /// @return z The casted integer, now type int256 function toInt256(uint256 y) internal pure returns (int256 z) { require(y < 2**255); z = int256(y); } } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; } // File @uniswap/v3-periphery/contracts/libraries/[email protected] library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF'); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); } } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Pool state that never changes /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values interface IUniswapV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function fee() external view returns (uint24); /// @notice The pool tick spacing /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... /// This value is an int24 to avoid casting even though it is always positive. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Pool state that can change /// @notice These methods compose the pool's state, and can change with any frequency including multiple times /// per transaction interface IUniswapV3PoolState { /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas /// when accessed externally. /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value /// tick The current tick of the pool, i.e. according to the last tick transition that was run. /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick /// boundary. /// observationIndex The index of the last oracle observation that was written, /// observationCardinality The current maximum number of observations stored in the pool, /// observationCardinalityNext The next maximum number of observations, to be updated when the observation. /// feeProtocol The protocol fee for both tokens of the pool. /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0 /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee. /// unlocked Whether the pool is currently locked to reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper, /// liquidityNet how much liquidity changes when the pool price crosses the tick, /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// secondsOutside the seconds spent on the other side of the tick from the current tick, /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks(int24 tick) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return _liquidity The amount of liquidity in the position, /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions(bytes32 key) external view returns ( uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// Returns initialized whether the observation has been initialized and the values are safe to use function observations(uint256 index) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Pool state that is not stored /// @notice Contains view functions to provide information about the pool that is computed rather than stored on the /// blockchain. The functions here may have variable gas costs. interface IUniswapV3PoolDerivedState { /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, /// you must call it with secondsAgos = [3600, 0]. /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio. /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block /// timestamp function observe(uint32[] calldata secondsAgos) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s); /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed. /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first /// snapshot is taken and the second snapshot is taken. /// @param tickLower The lower tick of the range /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) external view returns ( int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside ); } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface IUniswapV3PoolActions { /// @notice Sets the initial price for the pool /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96 function initialize(uint160 sqrtPriceX96) external; /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends /// on tickLower, tickUpper, the amount of liquidity, and the current price. /// @param recipient The address for which the liquidity will be created /// @param tickLower The lower tick of the position in which to add liquidity /// @param tickUpper The upper tick of the position in which to add liquidity /// @param amount The amount of liquidity to mint /// @param data Any data that should be passed through to the callback /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback function mint( address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IUniswapV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees /// @param feeProtocol0 new protocol fee for token0 of the pool /// @param feeProtocol1 new protocol fee for token1 of the pool function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external; /// @notice Collect the protocol fee accrued to the pool /// @param recipient The address to which collected protocol fees should be sent /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1 /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0 /// @return amount0 The protocol fee collected in token0 /// @return amount1 The protocol fee collected in token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); } // File @uniswap/v3-core/contracts/interfaces/pool/[email protected] /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface IUniswapV3PoolEvents { /// @notice Emitted exactly once by a pool when #initialize is first called on the pool /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96 /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool event Initialize(uint160 sqrtPriceX96, int24 tick); /// @notice Emitted when liquidity is minted for a given position /// @param sender The address that minted the liquidity /// @param owner The owner of the position and recipient of any minted liquidity /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity minted to the position range /// @param amount0 How much token0 was required for the minted liquidity /// @param amount1 How much token1 was required for the minted liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); } // File @uniswap/v3-core/contracts/interfaces/[email protected] /// @title The interface for a Uniswap V3 Pool /// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform /// to the ERC20 specification /// @dev The pool interface is broken up into many smaller pieces interface IUniswapV3Pool is IUniswapV3PoolImmutables, IUniswapV3PoolState, IUniswapV3PoolDerivedState, IUniswapV3PoolActions, IUniswapV3PoolOwnerActions, IUniswapV3PoolEvents { } // File @uniswap/v2-core/contracts/interfaces/[email protected] interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File @uniswap/v3-core/contracts/interfaces/callback/[email protected] /// @title Callback for IUniswapV3PoolActions#swap /// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface interface IUniswapV3SwapCallback { /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap. /// @dev In the implementation you must pay the pool tokens owed for the swap. /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped. /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token0 to the pool. /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token1 to the pool. /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call function uniswapV3SwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata data ) external; } // File contracts/Fraxswap/periphery/FraxswapRouterMultihop.sol pragma abicoder v2; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ===================== Fraxswap Router Multihop ===================== // ==================================================================== // Fraxswap Router Multihop // Frax Finance: https://github.com/FraxFinance // Primary Author(s) // Rich: https://github.com/zer0blockchain // Dennis: https://github.com/denett // Reviewer(s) / Contributor(s) // Travis Moore: https://github.com/FortisFortuna // Sam Kazemian: https://github.com/samkazemian // Drake Evans: https://github.com/DrakeEvans // Jack Corddry: https://github.com/corddry // Justin Moore: https://github.com/0xJM /// @title Fraxswap Router Multihop /// @dev Router for swapping across the majority of the FRAX liquidity contract FraxswapRouterMultihop is ReentrancyGuard, Ownable { using SafeCast for uint256; using SafeCast for int256; IWETH WETH9; address FRAX; constructor(IWETH _WETH9, address _FRAX) { WETH9 = _WETH9; FRAX = _FRAX; } /// @notice modifier for checking deadline modifier checkDeadline(uint256 deadline) { require(block.timestamp <= deadline, "Transaction too old"); _; } /// @notice only accept ETH via fallback from the WETH contract receive() external payable { assert(msg.sender == address(WETH9)); } /// --------------------------- /// --------- Public ---------- /// --------------------------- /// @notice Main external swap function /// @param params all parameters for this swap /// @return amountOut output amount from this swap function swap(FraxswapParams memory params) external payable nonReentrant checkDeadline(params.deadline) returns (uint256 amountOut) { if (params.tokenIn == address(0)) { // ETH sent in via msg.value require(msg.value == params.amountIn, "FSR:II"); // Insufficient input ETH } else { if (params.v != 0) { // use permit instead of approval uint256 amount = params.approveMax ? type(uint256).max : params.amountIn; IERC20Permit(params.tokenIn).permit( msg.sender, address(this), amount, params.deadline, params.v, params.r, params.s ); } // Pull tokens into the Router Contract TransferHelper.safeTransferFrom( params.tokenIn, msg.sender, address(this), params.amountIn ); } FraxswapRoute memory route = abi.decode(params.route, (FraxswapRoute)); route.tokenOut = params.tokenIn; route.amountOut = params.amountIn; for (uint256 i; i < route.nextHops.length; ++i) { FraxswapRoute memory nextRoute = abi.decode( route.nextHops[i], (FraxswapRoute) ); executeAllHops(route, nextRoute); } bool outputETH = params.tokenOut == address(0); // save gas amountOut = outputETH ? address(this).balance : IERC20(params.tokenOut).balanceOf(address(this)); // Check output amounts and send to recipient (IMPORTANT CHECK) require(amountOut >= params.amountOutMinimum, "FSR:IO"); // Insufficient output if (outputETH) { // sending ETH (bool success, ) = payable(params.recipient).call{value: amountOut}( "" ); require(success, "FSR:Invalid transfer"); } else { TransferHelper.safeTransfer( params.tokenOut, params.recipient, amountOut ); } emit Routed( params.tokenIn, params.tokenOut, params.amountIn, amountOut ); } /// @notice Uniswap V3 callback function function uniswapV3SwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata _data ) external { require(amount0Delta > 0 || amount1Delta > 0); SwapCallbackData memory data = abi.decode(_data, (SwapCallbackData)); if (!data.directFundThisPool) { // it isn't directly funded we pay from the router address TransferHelper.safeTransfer( data.tokenIn, msg.sender, uint256(amount0Delta > 0 ? amount0Delta : amount1Delta) ); } } /// --------------------------- /// --------- Internal -------- /// --------------------------- /// @notice Function that will execute a particular swap step /// @param prevRoute previous hop of the route /// @param route current hop of the route /// @param step swap to execute /// @return amountOut actual output from this swap step function executeSwap( FraxswapRoute memory prevRoute, FraxswapRoute memory route, FraxswapStepData memory step ) internal returns (uint256 amountOut) { uint256 amountIn = getAmountForPct( step.percentOfHop, route.percentOfHop, prevRoute.amountOut ); if (step.swapType < 2) { // Fraxswap/Uni v2 bool zeroForOne = prevRoute.tokenOut < step.tokenOut; if (step.swapType == 0) { // Execute virtual orders for Fraxswap PoolInterface(step.pool).executeVirtualOrders(block.timestamp); } if (step.extraParam1 == 1) { // Fraxswap V2 has getAmountOut in the pair (different fees) amountOut = PoolInterface(step.pool).getAmountOut( amountIn, prevRoute.tokenOut ); } else { // use the reserves and helper function for Uniswap V2 and Fraxswap V1 (uint112 reserve0, uint112 reserve1, ) = IUniswapV2Pair( step.pool ).getReserves(); amountOut = getAmountOut( amountIn, zeroForOne ? reserve0 : reserve1, zeroForOne ? reserve1 : reserve0 ); } if (step.directFundThisPool == 0) { // this pool is funded by router TransferHelper.safeTransfer( prevRoute.tokenOut, step.pool, amountIn ); } IUniswapV2Pair(step.pool).swap( zeroForOne ? 0 : amountOut, zeroForOne ? amountOut : 0, step.directFundNextPool == 1 ? getNextDirectFundingPool(route) : address(this), new bytes(0) ); } else if (step.swapType == 2) { // Uni v3 bool zeroForOne = prevRoute.tokenOut < step.tokenOut; (int256 amount0, int256 amount1) = IUniswapV3Pool(step.pool).swap( step.directFundNextPool == 1 ? getNextDirectFundingPool(route) : address(this), zeroForOne, amountIn.toInt256(), zeroForOne ? 4295128740 : 1461446703485210103287273052203988822378723970341, // Do not fail because of price abi.encode( SwapCallbackData({ tokenIn: prevRoute.tokenOut, directFundThisPool: step.directFundThisPool == 1 }) ) ); amountOut = uint256(zeroForOne ? -amount1 : -amount0); } else if (step.swapType == 3) { // Curve exchange V2 TransferHelper.safeApprove(prevRoute.tokenOut, step.pool, amountIn); PoolInterface(step.pool).exchange( step.extraParam1, step.extraParam2, amountIn, 0 ); amountOut = IERC20(step.tokenOut).balanceOf(address(this)); } else if (step.swapType == 4) { // Curve exchange, with returns uint256 value = 0; if (prevRoute.tokenOut == address(WETH9)) { // WETH send as ETH WETH9.withdraw(amountIn); value = amountIn; } else { TransferHelper.safeApprove( prevRoute.tokenOut, step.pool, amountIn ); } amountOut = PoolInterface(step.pool).exchange{value: value}( int128(int256(step.extraParam1)), int128(int256(step.extraParam2)), amountIn, 0 ); if (route.tokenOut == address(WETH9)) { // Wrap the received ETH as WETH WETH9.deposit{value: amountOut}(); } } else if (step.swapType == 5) { // Curve exchange_underlying TransferHelper.safeApprove(prevRoute.tokenOut, step.pool, amountIn); amountOut = PoolInterface(step.pool).exchange_underlying( int128(int256(step.extraParam1)), int128(int256(step.extraParam2)), amountIn, 0 ); } else if (step.swapType == 6) { // Saddle TransferHelper.safeApprove(prevRoute.tokenOut, step.pool, amountIn); amountOut = PoolInterface(step.pool).swap( uint8(step.extraParam1), uint8(step.extraParam2), amountIn, 0, block.timestamp ); } else if (step.swapType == 7) { // FPIController TransferHelper.safeApprove(prevRoute.tokenOut, step.pool, amountIn); if (prevRoute.tokenOut == FRAX) { amountOut = PoolInterface(step.pool).mintFPI(amountIn, 0); } else { amountOut = PoolInterface(step.pool).redeemFPI(amountIn, 0); } } else if (step.swapType == 8) { // Fraxlend TransferHelper.safeApprove(prevRoute.tokenOut, step.pool, amountIn); amountOut = PoolInterface(step.pool).deposit( amountIn, address(this) ); } else if (step.swapType == 9) { // FrxETHMinter if (step.extraParam1 == 0 && prevRoute.tokenOut == address(WETH9)) { // Unwrap WETH WETH9.withdraw(amountIn); } PoolInterface(step.pool).submitAndGive{value: amountIn}( step.directFundNextPool == 1 ? getNextDirectFundingPool(route) : address(this) ); amountOut = amountIn; // exchange 1 for 1 } else if (step.swapType == 10) { // WETH if (prevRoute.tokenOut == address(WETH9)) { // Unwrap WETH WETH9.withdraw(amountIn); } else { // Wrap the ETH WETH9.deposit{value: amountIn}(); } amountOut = amountIn; // exchange 1 for 1 } else if (step.swapType == 999) { // Generic Pool if (step.directFundThisPool == 0) { // this pool is funded by router TransferHelper.safeTransfer( prevRoute.tokenOut, step.pool, amountIn ); } amountOut = PoolInterface(step.pool).swap( prevRoute.tokenOut, route.tokenOut, amountIn, step.directFundNextPool == 1 ? getNextDirectFundingPool(route) : address(this) ); } emit Swapped( step.pool, prevRoute.tokenOut, step.tokenOut, amountIn, amountOut ); } /// @notice Function that will loop through and execute swap steps /// @param prevRoute previous hop of the route /// @param route current hop of the route function executeAllStepsForRoute( FraxswapRoute memory prevRoute, FraxswapRoute memory route ) internal { for (uint256 j; j < route.steps.length; ++j) { FraxswapStepData memory step = abi.decode( route.steps[j], (FraxswapStepData) ); route.amountOut += executeSwap(prevRoute, route, step); } } /// @notice Function that will loop through and execute route hops and execute all steps for each hop /// @param prevRoute previous hop of the route /// @param route current hop of the route function executeAllHops( FraxswapRoute memory prevRoute, FraxswapRoute memory route ) internal { executeAllStepsForRoute(prevRoute, route); for (uint256 i; i < route.nextHops.length; ++i) { FraxswapRoute memory nextRoute = abi.decode( route.nextHops[i], (FraxswapRoute) ); executeAllHops(route, nextRoute); } } /// --------------------------- /// ------ Views / Pure ------- /// --------------------------- /// @notice Utility function to build an encoded hop of route /// @param tokenOut output token address /// @param percentOfHop amount of output tokens from the previous hop going into this hop /// @param steps list of swaps from the same input token to the same output token /// @param nextHops next hops from this one, the next hops' input token is the tokenOut /// @return out encoded FraxswapRoute function encodeRoute( address tokenOut, uint256 percentOfHop, bytes[] memory steps, bytes[] memory nextHops ) external pure returns (bytes memory out) { FraxswapRoute memory route; route.tokenOut = tokenOut; route.amountOut = 0; route.percentOfHop = percentOfHop; route.steps = steps; route.nextHops = nextHops; out = abi.encode(route); } /// @notice Utility function to build an encoded step /// @param swapType type of the swap performed (Uniswap V2, Fraxswap,Curve, etc) /// @param directFundNextPool 0 = funds go via router, 1 = fund are sent directly to pool /// @param directFundThisPool 0 = funds go via router, 1 = fund are sent directly to pool /// @param tokenOut the target token of the step. output token address /// @param pool address of the pool to use in the step /// @param extraParam1 extra data used in the step /// @param extraParam2 extra data used in the step /// @param percentOfHop percentage of all of the steps in this route (hop) /// @return out encoded FraxswapStepData function encodeStep( uint8 swapType, uint8 directFundNextPool, uint8 directFundThisPool, address tokenOut, address pool, uint256 extraParam1, uint256 extraParam2, uint256 percentOfHop ) external pure returns (bytes memory out) { FraxswapStepData memory step; step.swapType = swapType; step.directFundNextPool = directFundNextPool; step.directFundThisPool = directFundThisPool; step.tokenOut = tokenOut; step.pool = pool; step.extraParam1 = extraParam1; step.extraParam2 = extraParam2; step.percentOfHop = percentOfHop; out = abi.encode(step); } /// @notice Utility function to calculate the amount given the percentage of hop and route 10000 = 100% /// @return amountOut amount of input token function getAmountForPct( uint256 pctOfHop1, uint256 pctOfHop2, uint256 amountIn ) internal pure returns (uint256 amountOut) { return (pctOfHop1 * pctOfHop2 * amountIn) / 100_000_000; } /// @notice Utility function to get the next pool to directly fund /// @return nextPoolAddress address of the next pool function getNextDirectFundingPool(FraxswapRoute memory route) internal pure returns (address nextPoolAddress) { require( route.steps.length == 1 && route.nextHops.length == 1, "FSR: DFRoutes" ); // directFunding FraxswapRoute memory nextRoute = abi.decode( route.nextHops[0], (FraxswapRoute) ); require(nextRoute.steps.length == 1, "FSR: DFSteps"); // directFunding FraxswapStepData memory nextStep = abi.decode( nextRoute.steps[0], (FraxswapStepData) ); return nextStep.pool; // pool to send funds to } /// @notice given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset /// @return amountOut constant product curve expected output amount function getAmountOut( uint amountIn, uint reserveIn, uint reserveOut ) internal pure returns (uint amountOut) { require(amountIn > 0, "UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT"); require( reserveIn > 0 && reserveOut > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY" ); uint amountInWithFee = amountIn * 997; uint numerator = amountInWithFee * reserveOut; uint denominator = reserveIn * 1000 + amountInWithFee; amountOut = numerator / denominator; } /// --------------------------- /// --------- Structs --------- /// --------------------------- /// @notice Input to the swap function /// @dev contains the top level info for the swap /// @param tokenIn input token address /// @param amountIn input token amount /// @param tokenOut output token address /// @param amountOutMinimum output token minimum amount (reverts if lower) /// @param recipient recipient of the output token /// @param deadline deadline for this swap transaction (reverts if exceeded) /// @param v v value for permit signature if supported /// @param r r value for permit signature if supported /// @param s s value for permit signature if supported /// @param route byte encoded struct FraxswapParams { address tokenIn; uint256 amountIn; address tokenOut; uint256 amountOutMinimum; address recipient; uint256 deadline; bool approveMax; uint8 v; bytes32 r; bytes32 s; bytes route; } /// @notice A hop along the swap route /// @dev a series of swaps (steps) containing the same input token and output token /// @param tokenOut output token address /// @param amountOut output token amount /// @param percentOfHop amount of output tokens from the previous hop going into this hop /// @param steps list of swaps from the same input token to the same output token /// @param nextHops next hops from this one, the next hops' input token is the tokenOut struct FraxswapRoute { address tokenOut; uint256 amountOut; uint256 percentOfHop; bytes[] steps; bytes[] nextHops; } /// @notice A swap step in a specific route. routes can have multiple swap steps /// @dev a single swap to a token from the token of the previous hop in the route /// @param swapType type of the swap performed (Uniswap V2, Fraxswap,Curve, etc) /// @param directFundNextPool 0 = funds go via router, 1 = fund are sent directly to pool /// @param directFundThisPool 0 = funds go via router, 1 = fund are sent directly to pool /// @param tokenOut the target token of the step. output token address /// @param pool address of the pool to use in the step /// @param extraParam1 extra data used in the step /// @param extraParam2 extra data used in the step /// @param percentOfHop percentage of all of the steps in this route (hop) struct FraxswapStepData { uint8 swapType; uint8 directFundNextPool; uint8 directFundThisPool; address tokenOut; address pool; uint256 extraParam1; uint256 extraParam2; uint256 percentOfHop; } /// @notice struct for Uniswap V3 callback /// @param tokenIn address of input token /// @param directFundThisPool this pool already been funded struct SwapCallbackData { address tokenIn; bool directFundThisPool; } /// --------------------------- /// --------- Events ---------- /// --------------------------- /// @notice Swap event emitted every swap /// @param pool address of the pool to used in the step /// @param tokenIn token address of the input token /// @param tokenOut token address of the output token /// @param amountIn amount of input token /// @param amountOut amount of output token event Swapped( address pool, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut ); /// @notice Routing event emitted every swap /// @param tokenIn address of the original input token /// @param tokenOut address of the final output token /// @param amountIn input amount for original input token /// @param amountOut output amount for the final output token event Routed( address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut ); } // Interface for ERC20 Permit interface IERC20Permit is IERC20 { function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } // Interface used to call pool specific functions interface PoolInterface { // Fraxswap function executeVirtualOrders(uint256 blockNumber) external; function getAmountOut(uint amountIn, address tokenIn) external view returns (uint); // Fraxlend function deposit(uint256 userId, address userAddress) external returns (uint256 _sharesReceived); // FrxETHMinter function submitAndGive(address recipient) external payable; // Curve function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external; function exchange( int128 i, int128 j, uint256 dx, uint256 min_dy ) external payable returns (uint256); function exchange_underlying( int128 i, int128 j, uint256 dx, uint256 min_dy ) external returns (uint256); // Saddle function swap( uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline ) external returns (uint256); //FPI Mint/Redeem function mintFPI(uint256 frax_in, uint256 min_fpi_out) external returns (uint256 fpi_out); function redeemFPI(uint256 fpi_in, uint256 min_frax_out) external returns (uint256 frax_out); // generic swap wrapper function swap( address tokenIn, address tokenOut, uint256 amountIn, address target ) external returns (uint256 amountOut); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IWETH","name":"_WETH9","type":"address"},{"internalType":"address","name":"_FRAX","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Routed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"percentOfHop","type":"uint256"},{"internalType":"bytes[]","name":"steps","type":"bytes[]"},{"internalType":"bytes[]","name":"nextHops","type":"bytes[]"}],"name":"encodeRoute","outputs":[{"internalType":"bytes","name":"out","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"swapType","type":"uint8"},{"internalType":"uint8","name":"directFundNextPool","type":"uint8"},{"internalType":"uint8","name":"directFundThisPool","type":"uint8"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"extraParam1","type":"uint256"},{"internalType":"uint256","name":"extraParam2","type":"uint256"},{"internalType":"uint256","name":"percentOfHop","type":"uint256"}],"name":"encodeStep","outputs":[{"internalType":"bytes","name":"out","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"bytes","name":"route","type":"bytes"}],"internalType":"struct FraxswapRouterMultihop.FraxswapParams","name":"params","type":"tuple"}],"name":"swap","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003120380380620031208339810160408190526200003491620000e1565b6001600055620000443362000076565b600280546001600160a01b039384166001600160a01b0319918216179091556003805492909316911617905562000120565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381168114620000de57600080fd5b50565b60008060408385031215620000f557600080fd5b82516200010281620000c8565b60208401519092506200011581620000c8565b809150509250929050565b612ff080620001306000396000f3fe6080604052600436106100745760003560e01c8063b60650d71161004e578063b60650d714610127578063d2c9041114610147578063f2fde38b14610168578063fa461e331461018857600080fd5b80634a264940146100a7578063715018a6146100dd5780638da5cb5b146100f257600080fd5b366100a25760025473ffffffffffffffffffffffffffffffffffffffff1633146100a0576100a061238e565b005b600080fd5b3480156100b357600080fd5b506100c76100c2366004612409565b6101a8565b6040516100d49190612501565b60405180910390f35b3480156100e957600080fd5b506100a06102e6565b3480156100fe57600080fd5b5060015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d4565b34801561013357600080fd5b506100c7610142366004612731565b6102fa565b61015a6101553660046127ca565b6103a5565b6040519081526020016100d4565b34801561017457600080fd5b506100a06101833660046128c5565b610966565b34801561019457600080fd5b506100a06101a33660046128e2565b610a1d565b604080516101008101825260008082526020820181905291810182905260608181018390526080820183905260a0820183905260c0820183905260e082019290925260ff808b16825289811660208084019190915290891660408084019190915273ffffffffffffffffffffffffffffffffffffffff808a1660608501528816608084015260a0830187905260c0830186905260e08301859052516102c89183910160006101008201905060ff835116825260ff602084015116602083015260ff6040840151166040830152606083015173ffffffffffffffffffffffffffffffffffffffff8082166060850152806080860151166080850152505060a083015160a083015260c083015160c083015260e083015160e083015292915050565b60405160208183030381529060405291505098975050505050505050565b6102ee610a70565b6102f86000610af1565b565b60606103446040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160608152602001606081525090565b73ffffffffffffffffffffffffffffffffffffffff861681526000602080830191909152604080830187905260608301869052608083018590525161038b918391016129b4565b604051602081830303815290604052915050949350505050565b6000600260005403610418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560a08201514281101561048c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5472616e73616374696f6e20746f6f206f6c6400000000000000000000000000604482015260640161040f565b825173ffffffffffffffffffffffffffffffffffffffff1661051a5782602001513414610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f4653523a49490000000000000000000000000000000000000000000000000000604482015260640161040f565b610636565b60e083015160ff16156106225760008360c0015161053c57836020015161055e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b845160a086015160e08701516101008801516101208901516040517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101879052606481019490945260ff909216608484015260a483015260c482015291925073ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b15801561060857600080fd5b505af115801561061c573d6000803e3d6000fd5b50505050505b610636836000015133308660200151610b68565b60008361014001518060200190518101906106519190612b0f565b845173ffffffffffffffffffffffffffffffffffffffff16815260208086015190820152905060005b8160800151518110156106d75760008260800151828151811061069f5761069f612bc9565b60200260200101518060200190518101906106ba9190612b0f565b90506106c68382610ce1565b506106d081612c27565b905061067a565b50604084015173ffffffffffffffffffffffffffffffffffffffff1615806107925760408086015190517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d9190612c5f565b610794565b475b93508460600151841015610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f4653523a494f0000000000000000000000000000000000000000000000000000604482015260640161040f565b80156108de576000856080015173ffffffffffffffffffffffffffffffffffffffff168560405160006040518083038185875af1925050503d8060008114610868576040519150601f19603f3d011682016040523d82523d6000602084013e61086d565b606091505b50509050806108d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4653523a496e76616c6964207472616e73666572000000000000000000000000604482015260640161040f565b506108f1565b6108f18560400151866080015186610d50565b8451604080870151602080890151835173ffffffffffffffffffffffffffffffffffffffff958616815294909216908401528282015260608201869052517f95c81fee1a892bf5851845efaa51f1f7941266f2f0da809680e6d37fbd3562b39181900360800190a15050600160005550919050565b61096e610a70565b73ffffffffffffffffffffffffffffffffffffffff8116610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161040f565b610a1a81610af1565b50565b6000841380610a2c5750600083135b610a3557600080fd5b6000610a4382840184612c78565b90508060200151610a69578051610a69903360008813610a635786610d50565b87610d50565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146102f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161040f565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691610c079190612cd7565b6000604051808303816000865af19150503d8060008114610c44576040519150601f19603f3d011682016040523d82523d6000602084013e610c49565b606091505b5091509150818015610c73575080511580610c73575080806020019051810190610c739190612cf3565b610cd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015260640161040f565b505050505050565b610ceb8282610eb9565b60005b816080015151811015610d4b57600082608001518281518110610d1357610d13612bc9565b6020026020010151806020019051810190610d2e9190612b0f565b9050610d3a8382610ce1565b50610d4481612c27565b9050610cee565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610de79190612cd7565b6000604051808303816000865af19150503d8060008114610e24576040519150601f19603f3d011682016040523d82523d6000602084013e610e29565b606091505b5091509150818015610e53575080511580610e53575080806020019051810190610e539190612cf3565b610a69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161040f565b60005b816060015151811015610d4b57600082606001518281518110610ee157610ee1612bc9565b6020026020010151806020019051810190610efc9190612d1b565b9050610f09848483610f2f565b83602001818151610f1a9190612dd3565b905250610f28905081612c27565b9050610ebc565b600080610f498360e0015185604001518760200151611ee3565b90506002836000015160ff1610156112845760608301518551845173ffffffffffffffffffffffffffffffffffffffff92831691909216109060ff166000036110125760808401516040517f2e0ae37500000000000000000000000000000000000000000000000000000000815242600482015273ffffffffffffffffffffffffffffffffffffffff90911690632e0ae37590602401600060405180830381600087803b158015610ff957600080fd5b505af115801561100d573d6000803e3d6000fd5b505050505b8360a001516001036110c357608084015186516040517ff140a35a0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff918216602482015291169063f140a35a90604401602060405180830381865afa158015611098573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bc9190612c5f565b9250611186565b600080856080015173ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111399190612e0a565b5091509150611181848461114d578261114f565b835b6dffffffffffffffffffffffffffff168561116a578461116c565b835b6dffffffffffffffffffffffffffff16611f11565b945050505b836040015160ff166000036111a8576111a88660000151856080015184610d50565b836080015173ffffffffffffffffffffffffffffffffffffffff1663022c0d9f826111d357846111d6565b60005b836111e25760006111e4565b855b876020015160ff166001146111f95730611202565b6112028961208c565b604080516000815260208101918290527fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1690915261124c9392919060248101612e5a565b600060405180830381600087803b15801561126657600080fd5b505af115801561127a573d6000803e3d6000fd5b5050505050611e6b565b825160ff16600203611423576000836060015173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16109050600080856080015173ffffffffffffffffffffffffffffffffffffffff1663128acb08876020015160ff16600114611303573061130c565b61130c8961208c565b85611316886121f3565b876113355773fffd8963efd1fc6a506488495d951d5263988d2561133c565b6401000276a45b6040805180820182528f5173ffffffffffffffffffffffffffffffffffffffff168082528e83015160ff166001146020928301908152835192830191909152511515918101919091526060016040516020818303038152906040526040518663ffffffff1660e01b81526004016113b7959493929190612e9f565b60408051808303816000875af11580156113d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f99190612ee6565b91509150826114105761140b82612f0a565b611419565b61141981612f0a565b9450505050611e6b565b825160ff16600303611581576114428560000151846080015183612225565b608083015160a084015160c08501516040517f5b41b90800000000000000000000000000000000000000000000000000000000815260048101929092526024820152604481018390526000606482015273ffffffffffffffffffffffffffffffffffffffff90911690635b41b90890608401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b50505060608401516040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff90911691506370a0823190602401602060405180830381865afa158015611556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157a9190612c5f565b9150611e6b565b825160ff166004036117bf57600254855160009173ffffffffffffffffffffffffffffffffffffffff908116911603611640576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b50505050819050611653565b6116538660000151856080015184612225565b608084015160a085015160c08601516040517f3df02124000000000000000000000000000000000000000000000000000000008152600f92830b6004820152910b6024820152604481018490526000606482015273ffffffffffffffffffffffffffffffffffffffff90911690633df0212490839060840160206040518083038185885af11580156116e9573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061170e9190612c5f565b600254865191945073ffffffffffffffffffffffffffffffffffffffff9081169116036117b957600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561179f57600080fd5b505af11580156117b3573d6000803e3d6000fd5b50505050505b50611e6b565b825160ff16600503611874576117de8560000151846080015183612225565b608083015160a084015160c08501516040517fa6417ed6000000000000000000000000000000000000000000000000000000008152600f92830b6004820152910b6024820152604481018390526000606482015273ffffffffffffffffffffffffffffffffffffffff9091169063a6417ed6906084015b6020604051808303816000875af1158015611556573d6000803e3d6000fd5b825160ff16600603611914576118938560000151846080015183612225565b608083015160a084015160c08501516040517f9169558600000000000000000000000000000000000000000000000000000000815260ff928316600482015291166024820152604481018390526000606482015242608482015273ffffffffffffffffffffffffffffffffffffffff9091169063916955869060a401611855565b825160ff16600703611a17576119338560000151846080015183612225565b600354855173ffffffffffffffffffffffffffffffffffffffff9182169116036119b75760808301516040517f4d6f9ef2000000000000000000000000000000000000000000000000000000008152600481018390526000602482015273ffffffffffffffffffffffffffffffffffffffff90911690634d6f9ef290604401611855565b60808301516040517fc5a36df1000000000000000000000000000000000000000000000000000000008152600481018390526000602482015273ffffffffffffffffffffffffffffffffffffffff9091169063c5a36df190604401611855565b825160ff16600803611a9557611a368560000151846080015183612225565b60808301516040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810183905230602482015273ffffffffffffffffffffffffffffffffffffffff90911690636e553f6590604401611855565b825160ff16600903611c1e5760a0830151158015611acf5750600254855173ffffffffffffffffffffffffffffffffffffffff9081169116145b15611b59576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015611b4057600080fd5b505af1158015611b54573d6000803e3d6000fd5b505050505b826080015173ffffffffffffffffffffffffffffffffffffffff1663bfda0c8c82856020015160ff16600114611b8f5730611b98565b611b988761208c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024016000604051808303818588803b158015611bfd57600080fd5b505af1158015611c11573d6000803e3d6000fd5b5050505050809150611e6b565b825160ff16600a03611d4957600254855173ffffffffffffffffffffffffffffffffffffffff918216911603611cd7576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015611cba57600080fd5b505af1158015611cce573d6000803e3d6000fd5b50505050611d41565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015611bfd57600080fd5b809150611e6b565b825160ff166103e703611e6b57826040015160ff16600003611d7857611d788560000151846080015183610d50565b826080015173ffffffffffffffffffffffffffffffffffffffff16636e81221c8660000151866000015184876020015160ff16600114611db85730611dc1565b611dc18961208c565b60405160e086901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff94851660048201529284166024840152604483019190915290911660648201526084016020604051808303816000875af1158015611e44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e689190612c5f565b91505b60808381015186516060808701516040805173ffffffffffffffffffffffffffffffffffffffff958616815293851660208501529316828401528101849052918201849052517f6782190c91d4a7e8ad2a867deed6ec0a970cab8ff137ae2bd4abd92b3810f4d39181900360a00190a1509392505050565b60006305f5e10082611ef58587612f42565b611eff9190612f42565b611f099190612f7f565b949350505050565b6000808411611fa2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960448201527f4e5055545f414d4f554e54000000000000000000000000000000000000000000606482015260840161040f565b600083118015611fb25750600082115b61203e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c60448201527f4951554944495459000000000000000000000000000000000000000000000000606482015260840161040f565b600061204c856103e5612f42565b9050600061205a8483612f42565b905060008261206b876103e8612f42565b6120759190612dd3565b90506120818183612f7f565b979650505050505050565b600081606001515160011480156120a857508160800151516001145b61210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4653523a204446526f7574657300000000000000000000000000000000000000604482015260640161040f565b6000826080015160008151811061212757612127612bc9565b60200260200101518060200190518101906121429190612b0f565b90508060600151516001146121b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4653523a20444653746570730000000000000000000000000000000000000000604482015260640161040f565b600081606001516000815181106121cc576121cc612bc9565b60200260200101518060200190518101906121e79190612d1b565b60800151949350505050565b60007f8000000000000000000000000000000000000000000000000000000000000000821061222157600080fd5b5090565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916122bc9190612cd7565b6000604051808303816000865af19150503d80600081146122f9576040519150601f19603f3d011682016040523d82523d6000602084013e6122fe565b606091505b50915091508180156123285750805115806123285750808060200190518101906123289190612cf3565b610a69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f5341000000000000000000000000000000000000000000000000000000000000604482015260640161040f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60ff81168114610a1a57600080fd5b80356123d7816123bd565b919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610a1a57600080fd5b80356123d7816123dc565b600080600080600080600080610100898b03121561242657600080fd5b8835612431816123bd565b97506020890135612441816123bd565b96506040890135612451816123bd565b95506060890135612461816123dc565b94506080890135612471816123dc565b979a969950949793969560a0850135955060c08501359460e001359350915050565b60005b838110156124ae578181015183820152602001612496565b50506000910152565b600081518084526124cf816020860160208601612493565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061251460208301846124b7565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff8111828210171561256e5761256e61251b565b60405290565b60405160a0810167ffffffffffffffff8111828210171561256e5761256e61251b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156125de576125de61251b565b604052919050565b600067ffffffffffffffff8211156126005761260061251b565b5060051b60200190565b600067ffffffffffffffff8211156126245761262461251b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f83011261266157600080fd5b813561267461266f8261260a565b612597565b81815284602083860101111561268957600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f8301126126b757600080fd5b813560206126c761266f836125e6565b82815260059290921b840181019181810190868411156126e657600080fd5b8286015b8481101561272657803567ffffffffffffffff81111561270a5760008081fd5b6127188986838b0101612650565b8452509183019183016126ea565b509695505050505050565b6000806000806080858703121561274757600080fd5b8435612752816123dc565b935060208501359250604085013567ffffffffffffffff8082111561277657600080fd5b612782888389016126a6565b9350606087013591508082111561279857600080fd5b506127a5878288016126a6565b91505092959194509250565b8015158114610a1a57600080fd5b80356123d7816127b1565b6000602082840312156127dc57600080fd5b813567ffffffffffffffff808211156127f457600080fd5b90830190610160828603121561280957600080fd5b61281161254a565b61281a836123fe565b815260208301356020820152612832604084016123fe565b60408201526060830135606082015261284d608084016123fe565b608082015260a083013560a082015261286860c084016127bf565b60c082015261287960e084016123cc565b60e08201526101008381013590820152610120808401359082015261014080840135838111156128a857600080fd5b6128b488828701612650565b918301919091525095945050505050565b6000602082840312156128d757600080fd5b8135612514816123dc565b600080600080606085870312156128f857600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561291e57600080fd5b818701915087601f83011261293257600080fd5b81358181111561294157600080fd5b88602082850101111561295357600080fd5b95989497505060200194505050565b6000815180845260208085019450848260051b860182860160005b858110156129a75783830389526129958383516124b7565b9885019892509084019060010161297d565b5090979650505050505050565b6020815273ffffffffffffffffffffffffffffffffffffffff825116602082015260208201516040820152604082015160608201526000606083015160a06080840152612a0460c0840182612962565b905060808401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08483030160a0850152612a3f8282612962565b95945050505050565b80516123d7816123dc565b600082601f830112612a6457600080fd5b81516020612a7461266f836125e6565b82815260059290921b84018101918181019086841115612a9357600080fd5b8286015b8481101561272657805167ffffffffffffffff811115612ab75760008081fd5b8701603f81018913612ac95760008081fd5b848101516040612adb61266f8361260a565b8281528b82848601011115612af05760008081fd5b612aff83898301848701612493565b8652505050918301918301612a97565b600060208284031215612b2157600080fd5b815167ffffffffffffffff80821115612b3957600080fd5b9083019060a08286031215612b4d57600080fd5b612b55612574565b8251612b60816123dc565b808252506020830151602082015260408301516040820152606083015182811115612b8a57600080fd5b612b9687828601612a53565b606083015250608083015182811115612bae57600080fd5b612bba87828601612a53565b60808301525095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612c5857612c58612bf8565b5060010190565b600060208284031215612c7157600080fd5b5051919050565b600060408284031215612c8a57600080fd5b6040516040810181811067ffffffffffffffff82111715612cad57612cad61251b565b6040528235612cbb816123dc565b81526020830135612ccb816127b1565b60208201529392505050565b60008251612ce9818460208701612493565b9190910192915050565b600060208284031215612d0557600080fd5b8151612514816127b1565b80516123d7816123bd565b6000610100808385031215612d2f57600080fd5b6040519081019067ffffffffffffffff82118183101715612d5257612d5261251b565b8160405283519150612d63826123bd565b818152612d7260208501612d10565b6020820152612d8360408501612d10565b6040820152612d9460608501612a48565b6060820152612da560808501612a48565b608082015260a084015160a082015260c084015160c082015260e084015160e0820152809250505092915050565b80820180821115612de657612de6612bf8565b92915050565b80516dffffffffffffffffffffffffffff811681146123d757600080fd5b600080600060608486031215612e1f57600080fd5b612e2884612dec565b9250612e3660208501612dec565b9150604084015163ffffffff81168114612e4f57600080fd5b809150509250925092565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff83166040820152608060608201526000612e9560808301846124b7565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a0608083015261208160a08301846124b7565b60008060408385031215612ef957600080fd5b505080516020909101519092909150565b60007f80000000000000000000000000000000000000000000000000000000000000008203612f3b57612f3b612bf8565b5060000390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612f7a57612f7a612bf8565b500290565b600082612fb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220a793b82112d86ded69df9813ab6f8e9139b752afeb23ab77b574b89815cfd1b464736f6c63430008100033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000853d955acef822db058eb8505911ed77f175b99e
Deployed Bytecode
0x6080604052600436106100745760003560e01c8063b60650d71161004e578063b60650d714610127578063d2c9041114610147578063f2fde38b14610168578063fa461e331461018857600080fd5b80634a264940146100a7578063715018a6146100dd5780638da5cb5b146100f257600080fd5b366100a25760025473ffffffffffffffffffffffffffffffffffffffff1633146100a0576100a061238e565b005b600080fd5b3480156100b357600080fd5b506100c76100c2366004612409565b6101a8565b6040516100d49190612501565b60405180910390f35b3480156100e957600080fd5b506100a06102e6565b3480156100fe57600080fd5b5060015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d4565b34801561013357600080fd5b506100c7610142366004612731565b6102fa565b61015a6101553660046127ca565b6103a5565b6040519081526020016100d4565b34801561017457600080fd5b506100a06101833660046128c5565b610966565b34801561019457600080fd5b506100a06101a33660046128e2565b610a1d565b604080516101008101825260008082526020820181905291810182905260608181018390526080820183905260a0820183905260c0820183905260e082019290925260ff808b16825289811660208084019190915290891660408084019190915273ffffffffffffffffffffffffffffffffffffffff808a1660608501528816608084015260a0830187905260c0830186905260e08301859052516102c89183910160006101008201905060ff835116825260ff602084015116602083015260ff6040840151166040830152606083015173ffffffffffffffffffffffffffffffffffffffff8082166060850152806080860151166080850152505060a083015160a083015260c083015160c083015260e083015160e083015292915050565b60405160208183030381529060405291505098975050505050505050565b6102ee610a70565b6102f86000610af1565b565b60606103446040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160608152602001606081525090565b73ffffffffffffffffffffffffffffffffffffffff861681526000602080830191909152604080830187905260608301869052608083018590525161038b918391016129b4565b604051602081830303815290604052915050949350505050565b6000600260005403610418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560a08201514281101561048c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5472616e73616374696f6e20746f6f206f6c6400000000000000000000000000604482015260640161040f565b825173ffffffffffffffffffffffffffffffffffffffff1661051a5782602001513414610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f4653523a49490000000000000000000000000000000000000000000000000000604482015260640161040f565b610636565b60e083015160ff16156106225760008360c0015161053c57836020015161055e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b845160a086015160e08701516101008801516101208901516040517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101879052606481019490945260ff909216608484015260a483015260c482015291925073ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b15801561060857600080fd5b505af115801561061c573d6000803e3d6000fd5b50505050505b610636836000015133308660200151610b68565b60008361014001518060200190518101906106519190612b0f565b845173ffffffffffffffffffffffffffffffffffffffff16815260208086015190820152905060005b8160800151518110156106d75760008260800151828151811061069f5761069f612bc9565b60200260200101518060200190518101906106ba9190612b0f565b90506106c68382610ce1565b506106d081612c27565b905061067a565b50604084015173ffffffffffffffffffffffffffffffffffffffff1615806107925760408086015190517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d9190612c5f565b610794565b475b93508460600151841015610804576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f4653523a494f0000000000000000000000000000000000000000000000000000604482015260640161040f565b80156108de576000856080015173ffffffffffffffffffffffffffffffffffffffff168560405160006040518083038185875af1925050503d8060008114610868576040519150601f19603f3d011682016040523d82523d6000602084013e61086d565b606091505b50509050806108d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4653523a496e76616c6964207472616e73666572000000000000000000000000604482015260640161040f565b506108f1565b6108f18560400151866080015186610d50565b8451604080870151602080890151835173ffffffffffffffffffffffffffffffffffffffff958616815294909216908401528282015260608201869052517f95c81fee1a892bf5851845efaa51f1f7941266f2f0da809680e6d37fbd3562b39181900360800190a15050600160005550919050565b61096e610a70565b73ffffffffffffffffffffffffffffffffffffffff8116610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161040f565b610a1a81610af1565b50565b6000841380610a2c5750600083135b610a3557600080fd5b6000610a4382840184612c78565b90508060200151610a69578051610a69903360008813610a635786610d50565b87610d50565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146102f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161040f565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691610c079190612cd7565b6000604051808303816000865af19150503d8060008114610c44576040519150601f19603f3d011682016040523d82523d6000602084013e610c49565b606091505b5091509150818015610c73575080511580610c73575080806020019051810190610c739190612cf3565b610cd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015260640161040f565b505050505050565b610ceb8282610eb9565b60005b816080015151811015610d4b57600082608001518281518110610d1357610d13612bc9565b6020026020010151806020019051810190610d2e9190612b0f565b9050610d3a8382610ce1565b50610d4481612c27565b9050610cee565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610de79190612cd7565b6000604051808303816000865af19150503d8060008114610e24576040519150601f19603f3d011682016040523d82523d6000602084013e610e29565b606091505b5091509150818015610e53575080511580610e53575080806020019051810190610e539190612cf3565b610a69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161040f565b60005b816060015151811015610d4b57600082606001518281518110610ee157610ee1612bc9565b6020026020010151806020019051810190610efc9190612d1b565b9050610f09848483610f2f565b83602001818151610f1a9190612dd3565b905250610f28905081612c27565b9050610ebc565b600080610f498360e0015185604001518760200151611ee3565b90506002836000015160ff1610156112845760608301518551845173ffffffffffffffffffffffffffffffffffffffff92831691909216109060ff166000036110125760808401516040517f2e0ae37500000000000000000000000000000000000000000000000000000000815242600482015273ffffffffffffffffffffffffffffffffffffffff90911690632e0ae37590602401600060405180830381600087803b158015610ff957600080fd5b505af115801561100d573d6000803e3d6000fd5b505050505b8360a001516001036110c357608084015186516040517ff140a35a0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff918216602482015291169063f140a35a90604401602060405180830381865afa158015611098573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bc9190612c5f565b9250611186565b600080856080015173ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111399190612e0a565b5091509150611181848461114d578261114f565b835b6dffffffffffffffffffffffffffff168561116a578461116c565b835b6dffffffffffffffffffffffffffff16611f11565b945050505b836040015160ff166000036111a8576111a88660000151856080015184610d50565b836080015173ffffffffffffffffffffffffffffffffffffffff1663022c0d9f826111d357846111d6565b60005b836111e25760006111e4565b855b876020015160ff166001146111f95730611202565b6112028961208c565b604080516000815260208101918290527fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1690915261124c9392919060248101612e5a565b600060405180830381600087803b15801561126657600080fd5b505af115801561127a573d6000803e3d6000fd5b5050505050611e6b565b825160ff16600203611423576000836060015173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16109050600080856080015173ffffffffffffffffffffffffffffffffffffffff1663128acb08876020015160ff16600114611303573061130c565b61130c8961208c565b85611316886121f3565b876113355773fffd8963efd1fc6a506488495d951d5263988d2561133c565b6401000276a45b6040805180820182528f5173ffffffffffffffffffffffffffffffffffffffff168082528e83015160ff166001146020928301908152835192830191909152511515918101919091526060016040516020818303038152906040526040518663ffffffff1660e01b81526004016113b7959493929190612e9f565b60408051808303816000875af11580156113d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f99190612ee6565b91509150826114105761140b82612f0a565b611419565b61141981612f0a565b9450505050611e6b565b825160ff16600303611581576114428560000151846080015183612225565b608083015160a084015160c08501516040517f5b41b90800000000000000000000000000000000000000000000000000000000815260048101929092526024820152604481018390526000606482015273ffffffffffffffffffffffffffffffffffffffff90911690635b41b90890608401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b50505060608401516040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff90911691506370a0823190602401602060405180830381865afa158015611556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157a9190612c5f565b9150611e6b565b825160ff166004036117bf57600254855160009173ffffffffffffffffffffffffffffffffffffffff908116911603611640576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b50505050819050611653565b6116538660000151856080015184612225565b608084015160a085015160c08601516040517f3df02124000000000000000000000000000000000000000000000000000000008152600f92830b6004820152910b6024820152604481018490526000606482015273ffffffffffffffffffffffffffffffffffffffff90911690633df0212490839060840160206040518083038185885af11580156116e9573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061170e9190612c5f565b600254865191945073ffffffffffffffffffffffffffffffffffffffff9081169116036117b957600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561179f57600080fd5b505af11580156117b3573d6000803e3d6000fd5b50505050505b50611e6b565b825160ff16600503611874576117de8560000151846080015183612225565b608083015160a084015160c08501516040517fa6417ed6000000000000000000000000000000000000000000000000000000008152600f92830b6004820152910b6024820152604481018390526000606482015273ffffffffffffffffffffffffffffffffffffffff9091169063a6417ed6906084015b6020604051808303816000875af1158015611556573d6000803e3d6000fd5b825160ff16600603611914576118938560000151846080015183612225565b608083015160a084015160c08501516040517f9169558600000000000000000000000000000000000000000000000000000000815260ff928316600482015291166024820152604481018390526000606482015242608482015273ffffffffffffffffffffffffffffffffffffffff9091169063916955869060a401611855565b825160ff16600703611a17576119338560000151846080015183612225565b600354855173ffffffffffffffffffffffffffffffffffffffff9182169116036119b75760808301516040517f4d6f9ef2000000000000000000000000000000000000000000000000000000008152600481018390526000602482015273ffffffffffffffffffffffffffffffffffffffff90911690634d6f9ef290604401611855565b60808301516040517fc5a36df1000000000000000000000000000000000000000000000000000000008152600481018390526000602482015273ffffffffffffffffffffffffffffffffffffffff9091169063c5a36df190604401611855565b825160ff16600803611a9557611a368560000151846080015183612225565b60808301516040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810183905230602482015273ffffffffffffffffffffffffffffffffffffffff90911690636e553f6590604401611855565b825160ff16600903611c1e5760a0830151158015611acf5750600254855173ffffffffffffffffffffffffffffffffffffffff9081169116145b15611b59576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015611b4057600080fd5b505af1158015611b54573d6000803e3d6000fd5b505050505b826080015173ffffffffffffffffffffffffffffffffffffffff1663bfda0c8c82856020015160ff16600114611b8f5730611b98565b611b988761208c565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024016000604051808303818588803b158015611bfd57600080fd5b505af1158015611c11573d6000803e3d6000fd5b5050505050809150611e6b565b825160ff16600a03611d4957600254855173ffffffffffffffffffffffffffffffffffffffff918216911603611cd7576002546040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90602401600060405180830381600087803b158015611cba57600080fd5b505af1158015611cce573d6000803e3d6000fd5b50505050611d41565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015611bfd57600080fd5b809150611e6b565b825160ff166103e703611e6b57826040015160ff16600003611d7857611d788560000151846080015183610d50565b826080015173ffffffffffffffffffffffffffffffffffffffff16636e81221c8660000151866000015184876020015160ff16600114611db85730611dc1565b611dc18961208c565b60405160e086901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff94851660048201529284166024840152604483019190915290911660648201526084016020604051808303816000875af1158015611e44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e689190612c5f565b91505b60808381015186516060808701516040805173ffffffffffffffffffffffffffffffffffffffff958616815293851660208501529316828401528101849052918201849052517f6782190c91d4a7e8ad2a867deed6ec0a970cab8ff137ae2bd4abd92b3810f4d39181900360a00190a1509392505050565b60006305f5e10082611ef58587612f42565b611eff9190612f42565b611f099190612f7f565b949350505050565b6000808411611fa2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960448201527f4e5055545f414d4f554e54000000000000000000000000000000000000000000606482015260840161040f565b600083118015611fb25750600082115b61203e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c60448201527f4951554944495459000000000000000000000000000000000000000000000000606482015260840161040f565b600061204c856103e5612f42565b9050600061205a8483612f42565b905060008261206b876103e8612f42565b6120759190612dd3565b90506120818183612f7f565b979650505050505050565b600081606001515160011480156120a857508160800151516001145b61210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4653523a204446526f7574657300000000000000000000000000000000000000604482015260640161040f565b6000826080015160008151811061212757612127612bc9565b60200260200101518060200190518101906121429190612b0f565b90508060600151516001146121b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4653523a20444653746570730000000000000000000000000000000000000000604482015260640161040f565b600081606001516000815181106121cc576121cc612bc9565b60200260200101518060200190518101906121e79190612d1b565b60800151949350505050565b60007f8000000000000000000000000000000000000000000000000000000000000000821061222157600080fd5b5090565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916122bc9190612cd7565b6000604051808303816000865af19150503d80600081146122f9576040519150601f19603f3d011682016040523d82523d6000602084013e6122fe565b606091505b50915091508180156123285750805115806123285750808060200190518101906123289190612cf3565b610a69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f5341000000000000000000000000000000000000000000000000000000000000604482015260640161040f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60ff81168114610a1a57600080fd5b80356123d7816123bd565b919050565b73ffffffffffffffffffffffffffffffffffffffff81168114610a1a57600080fd5b80356123d7816123dc565b600080600080600080600080610100898b03121561242657600080fd5b8835612431816123bd565b97506020890135612441816123bd565b96506040890135612451816123bd565b95506060890135612461816123dc565b94506080890135612471816123dc565b979a969950949793969560a0850135955060c08501359460e001359350915050565b60005b838110156124ae578181015183820152602001612496565b50506000910152565b600081518084526124cf816020860160208601612493565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061251460208301846124b7565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff8111828210171561256e5761256e61251b565b60405290565b60405160a0810167ffffffffffffffff8111828210171561256e5761256e61251b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156125de576125de61251b565b604052919050565b600067ffffffffffffffff8211156126005761260061251b565b5060051b60200190565b600067ffffffffffffffff8211156126245761262461251b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f83011261266157600080fd5b813561267461266f8261260a565b612597565b81815284602083860101111561268957600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f8301126126b757600080fd5b813560206126c761266f836125e6565b82815260059290921b840181019181810190868411156126e657600080fd5b8286015b8481101561272657803567ffffffffffffffff81111561270a5760008081fd5b6127188986838b0101612650565b8452509183019183016126ea565b509695505050505050565b6000806000806080858703121561274757600080fd5b8435612752816123dc565b935060208501359250604085013567ffffffffffffffff8082111561277657600080fd5b612782888389016126a6565b9350606087013591508082111561279857600080fd5b506127a5878288016126a6565b91505092959194509250565b8015158114610a1a57600080fd5b80356123d7816127b1565b6000602082840312156127dc57600080fd5b813567ffffffffffffffff808211156127f457600080fd5b90830190610160828603121561280957600080fd5b61281161254a565b61281a836123fe565b815260208301356020820152612832604084016123fe565b60408201526060830135606082015261284d608084016123fe565b608082015260a083013560a082015261286860c084016127bf565b60c082015261287960e084016123cc565b60e08201526101008381013590820152610120808401359082015261014080840135838111156128a857600080fd5b6128b488828701612650565b918301919091525095945050505050565b6000602082840312156128d757600080fd5b8135612514816123dc565b600080600080606085870312156128f857600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561291e57600080fd5b818701915087601f83011261293257600080fd5b81358181111561294157600080fd5b88602082850101111561295357600080fd5b95989497505060200194505050565b6000815180845260208085019450848260051b860182860160005b858110156129a75783830389526129958383516124b7565b9885019892509084019060010161297d565b5090979650505050505050565b6020815273ffffffffffffffffffffffffffffffffffffffff825116602082015260208201516040820152604082015160608201526000606083015160a06080840152612a0460c0840182612962565b905060808401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08483030160a0850152612a3f8282612962565b95945050505050565b80516123d7816123dc565b600082601f830112612a6457600080fd5b81516020612a7461266f836125e6565b82815260059290921b84018101918181019086841115612a9357600080fd5b8286015b8481101561272657805167ffffffffffffffff811115612ab75760008081fd5b8701603f81018913612ac95760008081fd5b848101516040612adb61266f8361260a565b8281528b82848601011115612af05760008081fd5b612aff83898301848701612493565b8652505050918301918301612a97565b600060208284031215612b2157600080fd5b815167ffffffffffffffff80821115612b3957600080fd5b9083019060a08286031215612b4d57600080fd5b612b55612574565b8251612b60816123dc565b808252506020830151602082015260408301516040820152606083015182811115612b8a57600080fd5b612b9687828601612a53565b606083015250608083015182811115612bae57600080fd5b612bba87828601612a53565b60808301525095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612c5857612c58612bf8565b5060010190565b600060208284031215612c7157600080fd5b5051919050565b600060408284031215612c8a57600080fd5b6040516040810181811067ffffffffffffffff82111715612cad57612cad61251b565b6040528235612cbb816123dc565b81526020830135612ccb816127b1565b60208201529392505050565b60008251612ce9818460208701612493565b9190910192915050565b600060208284031215612d0557600080fd5b8151612514816127b1565b80516123d7816123bd565b6000610100808385031215612d2f57600080fd5b6040519081019067ffffffffffffffff82118183101715612d5257612d5261251b565b8160405283519150612d63826123bd565b818152612d7260208501612d10565b6020820152612d8360408501612d10565b6040820152612d9460608501612a48565b6060820152612da560808501612a48565b608082015260a084015160a082015260c084015160c082015260e084015160e0820152809250505092915050565b80820180821115612de657612de6612bf8565b92915050565b80516dffffffffffffffffffffffffffff811681146123d757600080fd5b600080600060608486031215612e1f57600080fd5b612e2884612dec565b9250612e3660208501612dec565b9150604084015163ffffffff81168114612e4f57600080fd5b809150509250925092565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff83166040820152608060608201526000612e9560808301846124b7565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a0608083015261208160a08301846124b7565b60008060408385031215612ef957600080fd5b505080516020909101519092909150565b60007f80000000000000000000000000000000000000000000000000000000000000008203612f3b57612f3b612bf8565b5060000390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612f7a57612f7a612bf8565b500290565b600082612fb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220a793b82112d86ded69df9813ab6f8e9139b752afeb23ab77b574b89815cfd1b464736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000853d955acef822db058eb8505911ed77f175b99e
-----Decoded View---------------
Arg [0] : _WETH9 (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _FRAX (address): 0x853d955aCEf822Db058eb8505911ED77F175b99e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000853d955acef822db058eb8505911ed77f175b99e
Deployed Bytecode Sourcemap
43943:21690:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44544:5;;;;44522:10;:28;44515:36;;;;:::i;:::-;43943:21690;;;;;58797:716;;;;;;;;;;-1:-1:-1;58797:716:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5613:103;;;;;;;;;;;;;:::i;4965:87::-;;;;;;;;;;-1:-1:-1;5038:6:0;;4965:87;;5038:6;;;;2725:74:1;;2713:2;2698:18;4965:87:0;2579:226:1;57633:447:0;;;;;;;;;;-1:-1:-1;57633:447:0;;;;;:::i;:::-;;:::i;44833:2533::-;;;;;;:::i;:::-;;:::i;:::-;;;8169:25:1;;;8157:2;8142:18;44833:2533:0;8023:177:1;5871:201:0;;;;;;;;;;-1:-1:-1;5871:201:0;;;;;:::i;:::-;;:::i;47420:596::-;;;;;;;;;;-1:-1:-1;47420:596:0;;;;;:::i;:::-;;:::i;58797:716::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;59083:16:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59151:24:0;;;;;;59186:44;;;:23;;;;:44;;;;59241;;;:23;;;;:44;;;;59296:24;;;;:13;;;:24;59331:16;;:9;;;:16;59358;;;:30;;;59399:16;;;:30;;;59440:17;;;:32;;;59489:16;;;59151:4;;59489:16;9347:4:1;9389:3;9378:9;9374:19;9366:27;;9439:4;9430:6;9424:13;9420:24;9409:9;9402:43;9513:4;9505;9497:6;9493:17;9487:24;9483:35;9476:4;9465:9;9461:20;9454:65;9587:4;9579;9571:6;9567:17;9561:24;9557:35;9550:4;9539:9;9535:20;9528:65;9640:4;9632:6;9628:17;9622:24;9665:42;9763:2;9749:12;9745:21;9738:4;9727:9;9723:20;9716:51;9835:2;9827:4;9819:6;9815:17;9809:24;9805:33;9798:4;9787:9;9783:20;9776:63;;;9895:4;9887:6;9883:17;9877:24;9870:4;9859:9;9855:20;9848:54;9958:4;9950:6;9946:17;9940:24;9933:4;9922:9;9918:20;9911:54;10021:4;10013:6;10009:17;10003:24;9996:4;9985:9;9981:20;9974:54;9187:847;;;;;59489:16:0;;;;;;;;;;;;;59483:22;;59101:412;58797:716;;;;;;;;;;:::o;5613:103::-;4851:13;:11;:13::i;:::-;5678:30:::1;5705:1;5678:18;:30::i;:::-;5613:103::o:0;57633:447::-;57807:16;57836:26;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57836:26:0;57873:25;;;;;:14;57909:15;;;;:19;;;;57939:18;;;;:33;;;57983:11;;;:19;;;58013:14;;;:25;;;58055:17;;;57873:5;;58055:17;;:::i;:::-;;;;;;;;;;;;;58049:23;;57825:255;57633:447;;;;;;:::o;44833:2533::-;44992:17;1930:1;2528:7;;:19;2520:63;;;;;;;11665:2:1;2520:63:0;;;11647:21:1;11704:2;11684:18;;;11677:30;11743:33;11723:18;;;11716:61;11794:18;;2520:63:0;;;;;;;;;1930:1;2661:7;:18;44957:15:::1;::::0;::::1;::::0;44329::::1;:27:::0;-1:-1:-1;44329:27:0::1;44321:59;;;::::0;::::1;::::0;;12025:2:1;44321:59:0::1;::::0;::::1;12007:21:1::0;12064:2;12044:18;;;12037:30;12103:21;12083:18;;;12076:49;12142:18;;44321:59:0::1;11823:343:1::0;44321:59:0::1;45031:14:::0;;:28:::2;;45027:971;;45139:6;:15;;;45126:9;:28;45118:47;;;::::0;::::2;::::0;;12373:2:1;45118:47:0::2;::::0;::::2;12355:21:1::0;12412:1;12392:18;;;12385:29;12450:8;12430:18;;;12423:36;12476:18;;45118:47:0::2;12171:329:1::0;45118:47:0::2;45027:971;;;45228:8;::::0;::::2;::::0;:13:::2;;::::0;45224:521:::2;;45313:14;45330:6;:17;;;:97;;45412:6;:15;;;45330:97;;;45371:17;45330:97;45459:14:::0;;45602:15:::2;::::0;::::2;::::0;45640:8:::2;::::0;::::2;::::0;45671::::2;::::0;::::2;::::0;45702::::2;::::0;::::2;::::0;45446:283:::2;::::0;;;;45504:10:::2;45446:283;::::0;::::2;12877:34:1::0;45545:4:0::2;12927:18:1::0;;;12920:43;12979:18;;;12972:34;;;13022:18;;;13015:34;;;;13098:4;13086:17;;;13065:19;;;13058:46;13120:19;;;13113:35;13164:19;;;13157:35;45313:114:0;;-1:-1:-1;45446:35:0::2;;::::0;::::2;::::0;12788:19:1;;45446:283:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;45243:502;45224:521;45812:174;45862:6;:14;;;45895:10;45932:4;45956:6;:15;;;45812:31;:174::i;:::-;46010:26;46050:6;:12;;;46039:41;;;;;;;;;;;;:::i;:::-;46108:14:::0;;46091:31:::2;;::::0;;46151:15:::2;::::0;;::::2;::::0;46133;;::::2;:33:::0;46010:70;-1:-1:-1;46108:14:0::2;46179:250;46199:5;:14;;;:21;46195:1;:25;46179:250;;;46242:30;46304:5;:14;;;46319:1;46304:17;;;;;;;;:::i;:::-;;;;;;;46275:95;;;;;;;;;;;;:::i;:::-;46242:128;;46385:32;46400:5;46407:9;46385:14;:32::i;:::-;-1:-1:-1::0;46222:3:0::2;::::0;::::2;:::i;:::-;;;46179:250;;;-1:-1:-1::0;46458:15:0::2;::::0;::::2;::::0;:29:::2;;::::0;;46524:110:::2;;46593:15;::::0;;::::2;::::0;46586:48;;;;;46628:4:::2;46586:48;::::0;::::2;2725:74:1::0;46586:33:0::2;::::0;;::::2;::::0;::::2;::::0;2698:18:1;;46586:48:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;46524:110;;;46549:21;46524:110;46512:122;;46741:6;:23;;;46728:9;:36;;46720:55;;;::::0;::::2;::::0;;16770:2:1;46720:55:0::2;::::0;::::2;16752:21:1::0;16809:1;16789:18;;;16782:29;16847:8;16827:18;;;16820:36;16873:18;;46720:55:0::2;16568:329:1::0;46720:55:0::2;46815:9;46811:400;;;46870:12;46896:6;:16;;;46888:30;;46926:9;46888:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46869:103;;;46995:7;46987:40;;;::::0;::::2;::::0;;17314:2:1;46987:40:0::2;::::0;::::2;17296:21:1::0;17353:2;17333:18;;;17326:30;17392:22;17372:18;;;17365:50;17432:18;;46987:40:0::2;17112:344:1::0;46987:40:0::2;46826:213;46811:400;;;47060:139;47106:6;:15;;;47140:6;:16;;;47175:9;47060:27;:139::i;:::-;47249:14:::0;;47278:15:::2;::::0;;::::2;::::0;47308::::2;::::0;;::::2;::::0;47228:130;;17702:42:1;17771:15;;;17753:34;;17823:15;;;;17803:18;;;17796:43;17855:18;;;17848:34;17913:2;17898:18;;17891:34;;;47228:130:0;::::2;::::0;;;;17679:3:1;47228:130:0;;::::2;-1:-1:-1::0;;1886:1:0;2840:7;:22;-1:-1:-1;44833:2533:0;;-1:-1:-1;44833:2533:0:o;5871:201::-;4851:13;:11;:13::i;:::-;5960:22:::1;::::0;::::1;5952:73;;;::::0;::::1;::::0;;18138:2:1;5952:73:0::1;::::0;::::1;18120:21:1::0;18177:2;18157:18;;;18150:30;18216:34;18196:18;;;18189:62;18287:8;18267:18;;;18260:36;18313:19;;5952:73:0::1;17936:402:1::0;5952:73:0::1;6036:28;6055:8;6036:18;:28::i;:::-;5871:201:::0;:::o;47420:596::-;47592:1;47577:12;:16;:36;;;;47612:1;47597:12;:16;47577:36;47569:45;;;;;;47625:28;47656:37;;;;47667:5;47656:37;:::i;:::-;47625:68;;47709:4;:23;;;47704:305;;47867:12;;47821:176;;47898:10;47867:12;47935:16;;:46;;47969:12;47821:27;:176::i;47935:46::-;47954:12;47821:27;:176::i;:::-;47558:458;47420:596;;;;:::o;5130:132::-;5038:6;;5194:23;5038:6;3617:10;5194:23;5186:68;;;;;;;19200:2:1;5186:68:0;;;19182:21:1;;;19219:18;;;19212:30;19278:34;19258:18;;;19251:62;19330:18;;5186:68:0;18998:356:1;6232:191:0;6325:6;;;;6342:17;;;;;;;;;;;6375:40;;6325:6;;;6342:17;6325:6;;6375:40;;6306:16;;6375:40;6295:128;6232:191;:::o;11147:367::-;11352:69;;;11341:10;19640:15:1;;;11352:69:0;;;19622:34:1;19692:15;;;19672:18;;;19665:43;19724:18;;;;19717:34;;;11352:69:0;;;;;;;;;;19534:18:1;;;;11352:69:0;;;;;;;;;11375:28;11352:69;;;11341:81;;-1:-1:-1;;;;11341:10:0;;;;:81;;11352:69;11341:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11292:130;;;;11441:7;:57;;;;-1:-1:-1;11453:11:0;;:16;;:44;;;11484:4;11473:24;;;;;;;;;;;;:::i;:::-;11433:73;;;;;;;20506:2:1;11433:73:0;;;20488:21:1;20545:1;20525:18;;;20518:29;20583:5;20563:18;;;20556:33;20606:18;;11433:73:0;20304:326:1;11433:73:0;11281:233;;11147:367;;;;:::o;56643:438::-;56772:41;56796:9;56807:5;56772:23;:41::i;:::-;56829:9;56824:250;56844:5;:14;;;:21;56840:1;:25;56824:250;;;56887:30;56949:5;:14;;;56964:1;56949:17;;;;;;;;:::i;:::-;;;;;;;56920:95;;;;;;;;;;;;:::i;:::-;56887:128;;57030:32;57045:5;57052:9;57030:14;:32::i;:::-;-1:-1:-1;56867:3:0;;;:::i;:::-;;;56824:250;;;;56643:438;;:::o;11813:316::-;11978:59;;;11967:10;20827:55:1;;;11978:59:0;;;20809:74:1;20899:18;;;;20892:34;;;11978:59:0;;;;;;;;;;20782:18:1;;;;11978:59:0;;;;;;;;;12001:24;11978:59;;;11967:71;;-1:-1:-1;;;;11967:10:0;;;;:71;;11978:59;11967:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11931:107;;;;12057:7;:57;;;;-1:-1:-1;12069:11:0;;:16;;:44;;;12100:4;12089:24;;;;;;;;;;;;:::i;:::-;12049:72;;;;;;;21139:2:1;12049:72:0;;;21121:21:1;21178:1;21158:18;;;21151:29;21216:4;21196:18;;;21189:32;21238:18;;12049:72:0;20937:325:1;56017:412:0;56160:9;56155:267;56175:5;:11;;;:18;56171:1;:22;56155:267;;;56215:28;56275:5;:11;;;56287:1;56275:14;;;;;;;;:::i;:::-;;;;;;;56246:95;;;;;;;;;;;;:::i;:::-;56215:126;;56375:35;56387:9;56398:5;56405:4;56375:11;:35::i;:::-;56356:5;:15;;:54;;;;;;;:::i;:::-;;;-1:-1:-1;56195:3:0;;-1:-1:-1;56195:3:0;;:::i;:::-;;;56155:267;;48401:7437;48564:17;48594:16;48613:125;48643:4;:17;;;48675:5;:18;;;48708:9;:19;;;48613:15;:125::i;:::-;48594:144;;48769:1;48753:4;:13;;;:17;;;48749:6914;;;48858:13;;;;48837:18;;48890:13;;48837:34;;;;;;;;;;48890:18;;48819:15;48890:18;48886:177;;48999:9;;;;48985:62;;;;;49031:15;48985:62;;;8169:25:1;48985:45:0;;;;;;;8142:18:1;;48985:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48886:177;49081:4;:16;;;49101:1;49081:21;49077:732;;49227:9;;;;49304:18;;49213:128;;;;;;;;22766:25:1;;;49213:37:0;22827:55:1;;;22807:18;;;22800:83;49213:37:0;;;;;22739:18:1;;49213:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49201:140;;49077:732;;;49471:16;49489;49548:4;:9;;;49511:77;;;:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49470:120;;;;;49621:172;49656:8;49687:10;:32;;49711:8;49687:32;;;49700:8;49687:32;49621:172;;49742:10;:32;;49766:8;49742:32;;;49755:8;49742:32;49621:172;;:12;:172::i;:::-;49609:184;;49363:446;;49077:732;49827:4;:23;;;:28;;49854:1;49827:28;49823:269;;49926:150;49976:9;:18;;;50017:4;:9;;;50049:8;49926:27;:150::i;:::-;50121:4;:9;;;50106:30;;;50155:10;:26;;50172:9;50155:26;;;50168:1;50155:26;50200:10;:26;;50225:1;50200:26;;;50213:9;50200:26;50245:4;:23;;;:28;;50272:1;50245:28;:120;;50360:4;50245:120;;;50297:31;50322:5;50297:24;:31::i;:::-;50384:12;;;50394:1;50384:12;;;;;;;;;50106:305;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48772:1651;48749:6914;;;50433:13;;:18;;50450:1;50433:18;50429:5234;;50491:15;50530:4;:13;;;50509:34;;:9;:18;;;:34;;;50491:52;;50559:14;50575;50608:4;:9;;;50593:30;;;50642:4;:23;;;:28;;50669:1;50642:28;:120;;50757:4;50642:120;;;50694:31;50719:5;50694:24;:31::i;:::-;50781:10;50810:19;:8;:17;:19::i;:::-;50848:10;:117;;50916:49;50848:117;;;50882:10;50848:117;51049:170;;;;;;;;51102:18;;51049:170;;;;;51167:23;;;;:28;;51194:1;51167:28;51049:170;;;;;;;51016:222;;;;;24242:81:1;;;;24375:24;24368:32;24361:40;24339:20;;;24332:70;;;;24215:18;;51016:222:0;;;;;;;;;;;;50593:660;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50558:695;;;;51288:10;:32;;51312:8;51313:7;51312:8;:::i;:::-;51288:32;;;51301:8;51302:7;51301:8;:::i;:::-;51268:53;;50453:880;;;50429:5234;;;51343:13;;:18;;51360:1;51343:18;51339:4324;;51412:67;51439:9;:18;;;51459:4;:9;;;51470:8;51412:26;:67::i;:::-;51508:9;;;;51546:16;;;;51581;;;;51494:165;;;;;;;;25692:25:1;;;;25733:18;;;25726:34;25776:18;;;25769:34;;;51643:1:0;25819:18:1;;;25812:34;51494:33:0;;;;;;;25664:19:1;;51494:165:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51693:13:0;;;;51686:46;;;;;51726:4;51686:46;;;2725:74:1;51686:31:0;;;;;-1:-1:-1;51686:31:0;;2698:18:1;;51686:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51674:58;;51339:4324;;;51754:13;;:18;;51771:1;51754:18;51750:3913;;51900:5;;51870:18;;51834:13;;51900:5;;;;51870:36;;;51866:363;;51964:5;;:24;;;;;;;;8169:25:1;;;51964:5:0;;;;;:14;;8142:18:1;;51964:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52015:8;52007:16;;51866:363;;;52064:149;52113:9;:18;;;52154:4;:9;;;52186:8;52064:26;:149::i;:::-;52269:9;;;;52335:16;;;;52386;;;;52255:211;;;;;26121:2:1;26110:22;;;52255:211:0;;;26092:41:1;26169:22;;26149:18;;;26142:50;26208:18;;;26201:34;;;52450:1:0;26251:18:1;;;26244:34;52255:33:0;;;;;;;52296:5;;26064:19:1;;52255:211:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52511:5;;52485:14;;52243:223;;-1:-1:-1;52511:5:0;;;;52485:32;;;52481:156;;52588:5;;;;;;;;;;;:13;;;52609:9;52588:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52481:156;51774:874;51750:3913;;;52658:13;;:18;;52675:1;52658:18;52654:3009;;52735:67;52762:9;:18;;;52782:4;:9;;;52793:8;52735:26;:67::i;:::-;52843:9;;;;52906:16;;;;52957;;;;52829:208;;;;;26121:2:1;26110:22;;;52829:208:0;;;26092:41:1;26169:22;;26149:18;;;26142:50;26208:18;;;26201:34;;;53021:1:0;26251:18:1;;;26244:34;52829:44:0;;;;;;;26064:19:1;;52829:208:0;;;;;;;;;;;;;;;;;;;;;;;;52654:3009;53059:13;;:18;;53076:1;53059:18;53055:2608;;53117:67;53144:9;:18;;;53164:4;:9;;;53175:8;53117:26;:67::i;:::-;53225:9;;;;53265:16;;;;53307;;;;53211:209;;;;;26578:4:1;26566:17;;;53211:209:0;;;26548:36:1;26620:17;;26600:18;;;26593:45;26654:18;;;26647:34;;;53370:1:0;26697:18:1;;;26690:34;53390:15:0;26740:19:1;;;26733:35;53211:29:0;;;;;;;26520:19:1;;53211:209:0;26289:485:1;53055:2608:0;53442:13;;:18;;53459:1;53442:18;53438:2225;;53507:67;53534:9;:18;;;53554:4;:9;;;53565:8;53507:26;:67::i;:::-;53615:4;;53593:18;;53615:4;;;;53593:26;;;53589:224;;53666:9;;;;53652:45;;;;;;;;26961:25:1;;;53695:1:0;27002:18:1;;;26995:34;53652:32:0;;;;;;;26934:18:1;;53652:45:0;26779:256:1;53589:224:0;53764:9;;;;53750:47;;;;;;;;26961:25:1;;;53795:1:0;27002:18:1;;;26995:34;53750::0;;;;;;;26934:18:1;;53750:47:0;26779:256:1;53438:2225:0;53834:13;;:18;;53851:1;53834:18;53830:1833;;53894:67;53921:9;:18;;;53941:4;:9;;;53952:8;53894:26;:67::i;:::-;54002:9;;;;53988:106;;;;;;;;22766:25:1;;;54074:4:0;22807:18:1;;;22800:83;53988:32:0;;;;;;;22739:18:1;;53988:106:0;22592:297:1;53830:1833:0;54116:13;;:18;;54133:1;54116:18;54112:1551;;54184:16;;;;:21;:61;;;;-1:-1:-1;54239:5:0;;54209:18;;54239:5;54209:36;;;54239:5;;54209:36;54184:61;54180:158;;;54298:5;;:24;;;;;;;;8169:25:1;;;54298:5:0;;;;;:14;;8142:18:1;;54298:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54180:158;54366:4;:9;;;54352:38;;;54398:8;54426:4;:23;;;:28;;54453:1;54426:28;:120;;54541:4;54426:120;;;54478:31;54503:5;54478:24;:31::i;:::-;54352:209;;;;;;;;;;2755:42:1;2743:55;;;54352:209:0;;;2725:74:1;2698:18;;54352:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54588:8;54576:20;;54112:1551;;;54638:13;;:19;;54655:2;54638:19;54634:1029;;54729:5;;54699:18;;54729:5;;;;54699:36;;;54695:239;;54788:5;;:24;;;;;;;;8169:25:1;;;54788:5:0;;;;;:14;;8142:18:1;;54788:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54695:239;;;54886:5;;;;;;;;;;;:13;;;54907:8;54886:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54695:239;54960:8;54948:20;;54634:1029;;;55010:13;;:20;;55027:3;55010:20;55006:657;;55080:4;:23;;;:28;;55107:1;55080:28;55076:269;;55179:150;55229:9;:18;;;55270:4;:9;;;55302:8;55179:27;:150::i;:::-;55385:4;:9;;;55371:29;;;55419:9;:18;;;55456:5;:14;;;55489:8;55516:4;:23;;;:28;;55543:1;55516:28;:120;;55631:4;55516:120;;;55568:31;55593:5;55568:24;:31::i;:::-;55371:280;;;;;;;;;;27281:42:1;27350:15;;;55371:280:0;;;27332:34:1;27402:15;;;27382:18;;;27375:43;27434:18;;;27427:34;;;;27497:15;;;27477:18;;;27470:43;27243:19;;55371:280:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55359:292;;55006:657;55702:9;;;;;55726:18;;55759:13;;;;;55680:150;;;27793:42:1;27862:15;;;27844:34;;27914:15;;;27909:2;27894:18;;27887:43;27966:15;;27946:18;;;27939:43;27998:18;;27991:34;;;28041:19;;;28034:35;;;55680:150:0;;;;;;27770:3:1;55680:150:0;;;48583:7255;48401:7437;;;;;:::o;59679:231::-;59817:17;59891:11;59879:8;59855:21;59867:9;59855;:21;:::i;:::-;:32;;;;:::i;:::-;59854:48;;;;:::i;:::-;59847:55;59679:231;-1:-1:-1;;;;59679:231:0:o;60946:576::-;61073:14;61119:1;61108:8;:12;61100:68;;;;;;;28794:2:1;61100:68:0;;;28776:21:1;28833:2;28813:18;;;28806:30;28872:34;28852:18;;;28845:62;28943:13;28923:18;;;28916:41;28974:19;;61100:68:0;28592:407:1;61100:68:0;61213:1;61201:9;:13;:31;;;;;61231:1;61218:10;:14;61201:31;61179:121;;;;;;;29206:2:1;61179:121:0;;;29188:21:1;29245:2;29225:18;;;29218:30;29284:34;29264:18;;;29257:62;29355:10;29335:18;;;29328:38;29383:19;;61179:121:0;29004:404:1;61179:121:0;61311:20;61334:14;:8;61345:3;61334:14;:::i;:::-;61311:37;-1:-1:-1;61359:14:0;61376:28;61394:10;61311:37;61376:28;:::i;:::-;61359:45;-1:-1:-1;61415:16:0;61453:15;61434:16;:9;61446:4;61434:16;:::i;:::-;:34;;;;:::i;:::-;61415:53;-1:-1:-1;61491:23:0;61415:53;61491:9;:23;:::i;:::-;61479:35;60946:576;-1:-1:-1;;;;;;;60946:576:0:o;60048:694::-;60160:23;60223:5;:11;;;:18;60245:1;60223:23;:53;;;;;60250:5;:14;;;:21;60275:1;60250:26;60223:53;60201:116;;;;;;;29615:2:1;60201:116:0;;;29597:21:1;29654:2;29634:18;;;29627:30;29693:15;29673:18;;;29666:43;29726:18;;60201:116:0;29413:337:1;60201:116:0;60345:30;60403:5;:14;;;60418:1;60403:17;;;;;;;;:::i;:::-;;;;;;;60378:83;;;;;;;;;;;;:::i;:::-;60345:116;;60482:9;:15;;;:22;60508:1;60482:27;60474:52;;;;;;;29957:2:1;60474:52:0;;;29939:21:1;29996:2;29976:18;;;29969:30;30035:14;30015:18;;;30008:42;30067:18;;60474:52:0;29755:336:1;60474:52:0;60554:32;60614:9;:15;;;60630:1;60614:18;;;;;;;;:::i;:::-;;;;;;;60589:87;;;;;;;;;;;;:::i;:::-;60696:13;;;;60048:694;-1:-1:-1;;;;60048:694:0:o;10235:124::-;10287:8;10320:6;10316:1;:10;10308:19;;;;;;-1:-1:-1;10349:1:0;10235:124::o;12489:314::-;12653:58;;;12642:10;20827:55:1;;;12653:58:0;;;20809:74:1;20899:18;;;;20892:34;;;12653:58:0;;;;;;;;;;20782:18:1;;;;12653:58:0;;;;;;;;;12676:23;12653:58;;;12642:70;;-1:-1:-1;;;;12642:10:0;;;;:70;;12653:58;12642:70;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12606:106;;;;12731:7;:57;;;;-1:-1:-1;12743:11:0;;:16;;:44;;;12774:4;12763:24;;;;;;;;;;;;:::i;:::-;12723:72;;;;;;;30298:2:1;12723:72:0;;;30280:21:1;30337:1;30317:18;;;30310:29;30375:4;30355:18;;;30348:32;30397:18;;12723:72:0;30096:325:1;14:184;66:77;63:1;56:88;163:4;160:1;153:15;187:4;184:1;177:15;203:114;287:4;280:5;276:16;269:5;266:27;256:55;;307:1;304;297:12;322:130;388:20;;417:29;388:20;417:29;:::i;:::-;322:130;;;:::o;457:154::-;543:42;536:5;532:54;525:5;522:65;512:93;;601:1;598;591:12;616:134;684:20;;713:31;684:20;713:31;:::i;755:1008::-;871:6;879;887;895;903;911;919;927;980:3;968:9;959:7;955:23;951:33;948:53;;;997:1;994;987:12;948:53;1036:9;1023:23;1055:29;1078:5;1055:29;:::i;:::-;1103:5;-1:-1:-1;1160:2:1;1145:18;;1132:32;1173:31;1132:32;1173:31;:::i;:::-;1223:7;-1:-1:-1;1282:2:1;1267:18;;1254:32;1295:31;1254:32;1295:31;:::i;:::-;1345:7;-1:-1:-1;1404:2:1;1389:18;;1376:32;1417:33;1376:32;1417:33;:::i;:::-;1469:7;-1:-1:-1;1528:3:1;1513:19;;1500:33;1542;1500;1542;:::i;:::-;755:1008;;;;-1:-1:-1;755:1008:1;;;;1594:7;1648:3;1633:19;;1620:33;;-1:-1:-1;1700:3:1;1685:19;;1672:33;;1752:3;1737:19;1724:33;;-1:-1:-1;755:1008:1;-1:-1:-1;;755:1008:1:o;1768:250::-;1853:1;1863:113;1877:6;1874:1;1871:13;1863:113;;;1953:11;;;1947:18;1934:11;;;1927:39;1899:2;1892:10;1863:113;;;-1:-1:-1;;2010:1:1;1992:16;;1985:27;1768:250::o;2023:329::-;2064:3;2102:5;2096:12;2129:6;2124:3;2117:19;2145:76;2214:6;2207:4;2202:3;2198:14;2191:4;2184:5;2180:16;2145:76;:::i;:::-;2266:2;2254:15;2271:66;2250:88;2241:98;;;;2341:4;2237:109;;2023:329;-1:-1:-1;;2023:329:1:o;2357:217::-;2504:2;2493:9;2486:21;2467:4;2524:44;2564:2;2553:9;2549:18;2541:6;2524:44;:::i;:::-;2516:52;2357:217;-1:-1:-1;;;2357:217:1:o;2810:184::-;2862:77;2859:1;2852:88;2959:4;2956:1;2949:15;2983:4;2980:1;2973:15;2999:255;3071:2;3065:9;3113:6;3101:19;;3150:18;3135:34;;3171:22;;;3132:62;3129:88;;;3197:18;;:::i;:::-;3233:2;3226:22;2999:255;:::o;3259:253::-;3331:2;3325:9;3373:4;3361:17;;3408:18;3393:34;;3429:22;;;3390:62;3387:88;;;3455:18;;:::i;3517:334::-;3588:2;3582:9;3644:2;3634:13;;3649:66;3630:86;3618:99;;3747:18;3732:34;;3768:22;;;3729:62;3726:88;;;3794:18;;:::i;:::-;3830:2;3823:22;3517:334;;-1:-1:-1;3517:334:1:o;3856:181::-;3914:4;3947:18;3939:6;3936:30;3933:56;;;3969:18;;:::i;:::-;-1:-1:-1;4014:1:1;4010:14;4026:4;4006:25;;3856:181::o;4042:245::-;4090:4;4123:18;4115:6;4112:30;4109:56;;;4145:18;;:::i;:::-;-1:-1:-1;4202:2:1;4190:15;4207:66;4186:88;4276:4;4182:99;;4042:245::o;4292:462::-;4334:5;4387:3;4380:4;4372:6;4368:17;4364:27;4354:55;;4405:1;4402;4395:12;4354:55;4441:6;4428:20;4472:48;4488:31;4516:2;4488:31;:::i;:::-;4472:48;:::i;:::-;4545:2;4536:7;4529:19;4591:3;4584:4;4579:2;4571:6;4567:15;4563:26;4560:35;4557:55;;;4608:1;4605;4598:12;4557:55;4673:2;4666:4;4658:6;4654:17;4647:4;4638:7;4634:18;4621:55;4721:1;4696:16;;;4714:4;4692:27;4685:38;;;;4700:7;4292:462;-1:-1:-1;;;4292:462:1:o;4759:884::-;4811:5;4864:3;4857:4;4849:6;4845:17;4841:27;4831:55;;4882:1;4879;4872:12;4831:55;4918:6;4905:20;4944:4;4968:58;4984:41;5022:2;4984:41;:::i;4968:58::-;5060:15;;;5146:1;5142:10;;;;5130:23;;5126:32;;;5091:12;;;;5170:15;;;5167:35;;;5198:1;5195;5188:12;5167:35;5234:2;5226:6;5222:15;5246:368;5262:6;5257:3;5254:15;5246:368;;;5348:3;5335:17;5384:18;5371:11;5368:35;5365:125;;;5444:1;5473:2;5469;5462:14;5365:125;5515:56;5567:3;5562:2;5548:11;5540:6;5536:24;5532:33;5515:56;:::i;:::-;5503:69;;-1:-1:-1;5592:12:1;;;;5279;;5246:368;;;-1:-1:-1;5632:5:1;4759:884;-1:-1:-1;;;;;;4759:884:1:o;5648:813::-;5802:6;5810;5818;5826;5879:3;5867:9;5858:7;5854:23;5850:33;5847:53;;;5896:1;5893;5886:12;5847:53;5935:9;5922:23;5954:31;5979:5;5954:31;:::i;:::-;6004:5;-1:-1:-1;6056:2:1;6041:18;;6028:32;;-1:-1:-1;6111:2:1;6096:18;;6083:32;6134:18;6164:14;;;6161:34;;;6191:1;6188;6181:12;6161:34;6214:59;6265:7;6256:6;6245:9;6241:22;6214:59;:::i;:::-;6204:69;;6326:2;6315:9;6311:18;6298:32;6282:48;;6355:2;6345:8;6342:16;6339:36;;;6371:1;6368;6361:12;6339:36;;6394:61;6447:7;6436:8;6425:9;6421:24;6394:61;:::i;:::-;6384:71;;;5648:813;;;;;;;:::o;6466:118::-;6552:5;6545:13;6538:21;6531:5;6528:32;6518:60;;6574:1;6571;6564:12;6589:128;6654:20;;6683:28;6654:20;6683:28;:::i;6722:1296::-;6813:6;6866:2;6854:9;6845:7;6841:23;6837:32;6834:52;;;6882:1;6879;6872:12;6834:52;6922:9;6909:23;6951:18;6992:2;6984:6;6981:14;6978:34;;;7008:1;7005;6998:12;6978:34;7031:22;;;;7087:6;7069:16;;;7065:29;7062:49;;;7107:1;7104;7097:12;7062:49;7133:22;;:::i;:::-;7178;7197:2;7178:22;:::i;:::-;7171:5;7164:37;7254:2;7250;7246:11;7233:25;7228:2;7221:5;7217:14;7210:49;7291:31;7318:2;7314;7310:11;7291:31;:::i;:::-;7286:2;7279:5;7275:14;7268:55;7376:2;7372;7368:11;7355:25;7350:2;7343:5;7339:14;7332:49;7414:32;7441:3;7437:2;7433:12;7414:32;:::i;:::-;7408:3;7401:5;7397:15;7390:57;7501:3;7497:2;7493:12;7480:26;7474:3;7467:5;7463:15;7456:51;7540:29;7564:3;7560:2;7556:12;7540:29;:::i;:::-;7534:3;7527:5;7523:15;7516:54;7603:30;7628:3;7624:2;7620:12;7603:30;:::i;:::-;7597:3;7586:15;;7579:55;7653:3;7701:11;;;7688:25;7672:14;;;7665:49;7733:3;7781:11;;;7768:25;7752:14;;;7745:49;7813:3;7854:11;;;7841:25;7878:16;;;7875:36;;;7907:1;7904;7897:12;7875:36;7943:44;7979:7;7968:8;7964:2;7960:17;7943:44;:::i;:::-;7927:14;;;7920:68;;;;-1:-1:-1;7931:5:1;6722:1296;-1:-1:-1;;;;;6722:1296:1:o;8205:247::-;8264:6;8317:2;8305:9;8296:7;8292:23;8288:32;8285:52;;;8333:1;8330;8323:12;8285:52;8372:9;8359:23;8391:31;8416:5;8391:31;:::i;8457:725::-;8543:6;8551;8559;8567;8620:2;8608:9;8599:7;8595:23;8591:32;8588:52;;;8636:1;8633;8626:12;8588:52;8672:9;8659:23;8649:33;;8729:2;8718:9;8714:18;8701:32;8691:42;;8784:2;8773:9;8769:18;8756:32;8807:18;8848:2;8840:6;8837:14;8834:34;;;8864:1;8861;8854:12;8834:34;8902:6;8891:9;8887:22;8877:32;;8947:7;8940:4;8936:2;8932:13;8928:27;8918:55;;8969:1;8966;8959:12;8918:55;9009:2;8996:16;9035:2;9027:6;9024:14;9021:34;;;9051:1;9048;9041:12;9021:34;9096:7;9091:2;9082:6;9078:2;9074:15;9070:24;9067:37;9064:57;;;9117:1;9114;9107:12;9064:57;8457:725;;;;-1:-1:-1;;9148:2:1;9140:11;;-1:-1:-1;;;8457:725:1:o;10039:565::-;10090:3;10128:5;10122:12;10155:6;10150:3;10143:19;10181:4;10210:2;10205:3;10201:12;10194:19;;10235:3;10275:6;10272:1;10268:14;10263:3;10259:24;10317:2;10310:5;10306:14;10338:1;10348:230;10362:6;10359:1;10356:13;10348:230;;;10433:5;10427:4;10423:16;10418:3;10411:29;10461:37;10493:4;10484:6;10478:13;10461:37;:::i;:::-;10556:12;;;;10453:45;-1:-1:-1;10521:15:1;;;;10384:1;10377:9;10348:230;;;-1:-1:-1;10594:4:1;;10039:565;-1:-1:-1;;;;;;;10039:565:1:o;10609:849::-;10800:2;10789:9;10782:21;10858:42;10849:6;10843:13;10839:62;10834:2;10823:9;10819:18;10812:90;10956:2;10948:6;10944:15;10938:22;10933:2;10922:9;10918:18;10911:50;11015:2;11007:6;11003:15;10997:22;10992:2;10981:9;10977:18;10970:50;10763:4;11067:2;11059:6;11055:15;11049:22;11108:4;11102:3;11091:9;11087:19;11080:33;11136:61;11192:3;11181:9;11177:19;11163:12;11136:61;:::i;:::-;11122:75;;11246:3;11238:6;11234:16;11228:23;11317:66;11305:9;11297:6;11293:22;11289:95;11282:4;11271:9;11267:20;11260:125;11402:50;11445:6;11429:14;11402:50;:::i;:::-;11394:58;10609:849;-1:-1:-1;;;;;10609:849:1:o;13203:138::-;13282:13;;13304:31;13282:13;13304:31;:::i;13346:1399::-;13409:5;13462:3;13455:4;13447:6;13443:17;13439:27;13429:55;;13480:1;13477;13470:12;13429:55;13509:6;13503:13;13535:4;13559:58;13575:41;13613:2;13575:41;:::i;13559:58::-;13651:15;;;13737:1;13733:10;;;;13721:23;;13717:32;;;13682:12;;;;13761:15;;;13758:35;;;13789:1;13786;13779:12;13758:35;13825:2;13817:6;13813:15;13837:879;13853:6;13848:3;13845:15;13837:879;;;13932:3;13926:10;13968:18;13955:11;13952:35;13949:125;;;14028:1;14057:2;14053;14046:14;13949:125;14097:24;;14156:2;14148:11;;14144:21;-1:-1:-1;14134:119:1;;14207:1;14236:2;14232;14225:14;14134:119;14290:2;14286;14282:11;14276:18;14317:2;14347:48;14363:31;14391:2;14363:31;:::i;14347:48::-;14424:2;14415:7;14408:19;14468:3;14463:2;14458;14454;14450:11;14446:20;14443:29;14440:119;;;14513:1;14542:2;14538;14531:14;14440:119;14572:69;14638:2;14633;14624:7;14620:16;14615:2;14611;14607:11;14572:69;:::i;:::-;14654:20;;-1:-1:-1;;;14694:12:1;;;;13870;;13837:879;;14750:1046;14851:6;14904:2;14892:9;14883:7;14879:23;14875:32;14872:52;;;14920:1;14917;14910:12;14872:52;14953:9;14947:16;14982:18;15023:2;15015:6;15012:14;15009:34;;;15039:1;15036;15029:12;15009:34;15062:22;;;;15118:4;15100:16;;;15096:27;15093:47;;;15136:1;15133;15126:12;15093:47;15162:22;;:::i;:::-;15214:2;15208:9;15226:33;15251:7;15226:33;:::i;:::-;15282:7;15275:5;15268:22;;15336:2;15332;15328:11;15322:18;15317:2;15310:5;15306:14;15299:42;15387:2;15383;15379:11;15373:18;15368:2;15361:5;15357:14;15350:42;15431:2;15427;15423:11;15417:18;15460:2;15450:8;15447:16;15444:36;;;15476:1;15473;15466:12;15444:36;15512:65;15569:7;15558:8;15554:2;15550:17;15512:65;:::i;:::-;15507:2;15500:5;15496:14;15489:89;;15617:3;15613:2;15609:12;15603:19;15647:2;15637:8;15634:16;15631:36;;;15663:1;15660;15653:12;15631:36;15700:65;15757:7;15746:8;15742:2;15738:17;15700:65;:::i;:::-;15694:3;15683:15;;15676:90;-1:-1:-1;15687:5:1;14750:1046;-1:-1:-1;;;;;14750:1046:1:o;15801:184::-;15853:77;15850:1;15843:88;15950:4;15947:1;15940:15;15974:4;15971:1;15964:15;15990:184;16042:77;16039:1;16032:88;16139:4;16136:1;16129:15;16163:4;16160:1;16153:15;16179:195;16218:3;16249:66;16242:5;16239:77;16236:103;;16319:18;;:::i;:::-;-1:-1:-1;16366:1:1;16355:13;;16179:195::o;16379:184::-;16449:6;16502:2;16490:9;16481:7;16477:23;16473:32;16470:52;;;16518:1;16515;16508:12;16470:52;-1:-1:-1;16541:16:1;;16379:184;-1:-1:-1;16379:184:1:o;18343:650::-;18436:6;18489:2;18477:9;18468:7;18464:23;18460:32;18457:52;;;18505:1;18502;18495:12;18457:52;18538:2;18532:9;18580:2;18572:6;18568:15;18649:6;18637:10;18634:22;18613:18;18601:10;18598:34;18595:62;18592:88;;;18660:18;;:::i;:::-;18696:2;18689:22;18733:23;;18765:31;18733:23;18765:31;:::i;:::-;18805:21;;18878:2;18863:18;;18850:32;18891:30;18850:32;18891:30;:::i;:::-;18949:2;18937:15;;18930:32;18941:6;18343:650;-1:-1:-1;;;18343:650:1:o;19762:287::-;19891:3;19929:6;19923:13;19945:66;20004:6;19999:3;19992:4;19984:6;19980:17;19945:66;:::i;:::-;20027:16;;;;;19762:287;-1:-1:-1;;19762:287:1:o;20054:245::-;20121:6;20174:2;20162:9;20153:7;20149:23;20145:32;20142:52;;;20190:1;20187;20180:12;20142:52;20222:9;20216:16;20241:28;20263:5;20241:28;:::i;21267:134::-;21344:13;;21366:29;21344:13;21366:29;:::i;21406:1051::-;21510:6;21541:3;21585:2;21573:9;21564:7;21560:23;21556:32;21553:52;;;21601:1;21598;21591:12;21553:52;21634:2;21628:9;21664:15;;;;21709:18;21694:34;;21730:22;;;21691:62;21688:88;;;21756:18;;:::i;:::-;21796:10;21792:2;21785:22;21835:9;21829:16;21816:29;;21854;21877:5;21854:29;:::i;:::-;21907:5;21899:6;21892:21;21946:47;21989:2;21978:9;21974:18;21946:47;:::i;:::-;21941:2;21933:6;21929:15;21922:72;22027:47;22070:2;22059:9;22055:18;22027:47;:::i;:::-;22022:2;22014:6;22010:15;22003:72;22108:49;22153:2;22142:9;22138:18;22108:49;:::i;:::-;22103:2;22095:6;22091:15;22084:74;22192:50;22237:3;22226:9;22222:19;22192:50;:::i;:::-;22186:3;22178:6;22174:16;22167:76;22298:3;22287:9;22283:19;22277:26;22271:3;22263:6;22259:16;22252:52;22359:3;22348:9;22344:19;22338:26;22332:3;22324:6;22320:16;22313:52;22420:3;22409:9;22405:19;22399:26;22393:3;22385:6;22381:16;22374:52;22445:6;22435:16;;;;21406:1051;;;;:::o;22462:125::-;22527:9;;;22548:10;;;22545:36;;;22561:18;;:::i;:::-;22462:125;;;;:::o;22894:188::-;22973:13;;23026:30;23015:42;;23005:53;;22995:81;;23072:1;23069;23062:12;23087:450;23174:6;23182;23190;23243:2;23231:9;23222:7;23218:23;23214:32;23211:52;;;23259:1;23256;23249:12;23211:52;23282:40;23312:9;23282:40;:::i;:::-;23272:50;;23341:49;23386:2;23375:9;23371:18;23341:49;:::i;:::-;23331:59;;23433:2;23422:9;23418:18;23412:25;23477:10;23470:5;23466:22;23459:5;23456:33;23446:61;;23503:1;23500;23493:12;23446:61;23526:5;23516:15;;;23087:450;;;;;:::o;23542:481::-;23773:6;23762:9;23755:25;23816:6;23811:2;23800:9;23796:18;23789:34;23871:42;23863:6;23859:55;23854:2;23843:9;23839:18;23832:83;23951:3;23946:2;23935:9;23931:18;23924:31;23736:4;23972:45;24012:3;24001:9;23997:19;23989:6;23972:45;:::i;:::-;23964:53;23542:481;-1:-1:-1;;;;;;23542:481:1:o;24413:591::-;24627:4;24656:42;24737:2;24729:6;24725:15;24714:9;24707:34;24791:6;24784:14;24777:22;24772:2;24761:9;24757:18;24750:50;24836:6;24831:2;24820:9;24816:18;24809:34;24891:2;24883:6;24879:15;24874:2;24863:9;24859:18;24852:43;;24932:3;24926;24915:9;24911:19;24904:32;24953:45;24993:3;24982:9;24978:19;24970:6;24953:45;:::i;25009:243::-;25086:6;25094;25147:2;25135:9;25126:7;25122:23;25118:32;25115:52;;;25163:1;25160;25153:12;25115:52;-1:-1:-1;;25186:16:1;;25242:2;25227:18;;;25221:25;25186:16;;25221:25;;-1:-1:-1;25009:243:1:o;25257:191::-;25292:3;25323:66;25316:5;25313:77;25310:103;;25393:18;;:::i;:::-;-1:-1:-1;25433:1:1;25429:13;;25257:191::o;28080:228::-;28120:7;28246:1;28178:66;28174:74;28171:1;28168:81;28163:1;28156:9;28149:17;28145:105;28142:131;;;28253:18;;:::i;:::-;-1:-1:-1;28293:9:1;;28080:228::o;28313:274::-;28353:1;28379;28369:189;;28414:77;28411:1;28404:88;28515:4;28512:1;28505:15;28543:4;28540:1;28533:15;28369:189;-1:-1:-1;28572:9:1;;28313:274::o
Swarm Source
ipfs://a793b82112d86ded69df9813ab6f8e9139b752afeb23ab77b574b89815cfd1b4
Loading...
Loading
Loading...
Loading
OVERVIEW
The Frax Protocol introduced the world to the concept of a cryptocurrency being partially backed by collateral and partially stabilized algorithmically. With the vision to create highly scalable, decentralized money in place of fixed-supply digital assets.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $3,251.53 | 0.0001 | $0.325153 |
Loading...
Loading
[ 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.