StableSwapFacet
Verified contract
Active on
Ethereum with 0 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 32 additional slots
No balances found for "StableSwapFacet"
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "StableSwapFacet"
ABI
ABI objects
Getter at block 21260319
This contract contains no getter function objects.
Read-only
calculateRemoveSwapLiquidity(bytes32 key, uint256 amount) view returns (uint256[])
calculateRemoveSwapLiquidityOneToken(bytes32 key, uint256 tokenAmount, uint8 tokenIndex) view returns (uint256 availableTokenAmount)
calculateSwap(bytes32 key, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns (uint256)
calculateSwapTokenAmount(bytes32 key, uint256[] amounts, bool deposit) view returns (uint256)
getSwapA(bytes32 key) view returns (uint256)
getSwapAPrecise(bytes32 key) view returns (uint256)
getSwapAdminBalance(bytes32 key, uint256 index) view returns (uint256)
getSwapLPToken(bytes32 key) view returns (address)
getSwapStorage(bytes32 key) view returns (struct SwapUtilsSwap)
getSwapToken(bytes32 key, uint8 index) view returns (address)
getSwapTokenBalance(bytes32 key, uint8 index) view returns (uint256)
getSwapTokenIndex(bytes32 key, address tokenAddress) view returns (uint8)
getSwapVirtualPrice(bytes32 key) view returns (uint256)
State-modifying
Events addSwapLiquidity(bytes32 key, uint256[] amounts, uint256 minToMint, uint256 deadline) returns (uint256)
removeSwapLiquidity(bytes32 key, uint256 amount, uint256[] minAmounts, uint256 deadline) returns (uint256[])
removeSwapLiquidityImbalance(bytes32 key, uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) returns (uint256)
removeSwapLiquidityOneToken(bytes32 key, uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) returns (uint256)
swap(bytes32 key, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns (uint256)
swapExact(bytes32 key, uint256 amountIn, address assetIn, address assetOut, uint256 minAmountOut, uint256 deadline) returns (uint256)
swapExactOut(bytes32 key, uint256 amountOut, address assetIn, address assetOut, uint256 maxAmountIn, uint256 deadline) returns (uint256)
AddLiquidity(bytes32 indexed key, address indexed provider, uint256[] tokenAmounts, uint256[] fees, uint256 invariant, uint256 lpTokenSupply)
NewAdminFee(bytes32 indexed key, uint256 newAdminFee)
NewSwapFee(bytes32 indexed key, uint256 newSwapFee)
RemoveLiquidity(bytes32 indexed key, address indexed provider, uint256[] tokenAmounts, uint256 lpTokenSupply)
RemoveLiquidityImbalance(bytes32 indexed key, address indexed provider, uint256[] tokenAmounts, uint256[] fees, uint256 invariant, uint256 lpTokenSupply)
RemoveLiquidityOne(bytes32 indexed key, address indexed provider, uint256 lpTokenAmount, uint256 lpTokenSupply, uint256 boughtId, uint256 tokensBought)
TokenSwap(bytes32 indexed key, address indexed buyer, uint256 tokensSold, uint256 tokensBought, uint128 soldId, uint128 boughtId)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AssetLogic__handleIncomingAsset_feeOnTransferNotSupported()
AssetLogic__handleIncomingAsset_nativeAssetNotSupported()
AssetLogic__handleOutgoingAsset_notNative()
BaseConnextFacet__getAdoptedAsset_assetNotFound()
BaseConnextFacet__getApprovedCanonicalId_notAllowlisted()
BaseConnextFacet__nonReentrant_reentrantCall()
BaseConnextFacet__nonXCallReentrant_reentrantCall()
BaseConnextFacet__onlyOwnerOrAdmin_notOwnerOrAdmin()
BaseConnextFacet__onlyOwnerOrRouter_notOwnerOrRouter()
BaseConnextFacet__onlyOwnerOrWatcher_notOwnerOrWatcher()
BaseConnextFacet__onlyOwner_notOwner()
BaseConnextFacet__onlyProposed_notProposedOwner()
BaseConnextFacet__whenNotPaused_paused()
StableSwapFacet__deadlineCheck_deadlineNotMet()
StableSwapFacet__getSwapTokenBalance_indexOutOfRange()
StableSwapFacet__getSwapTokenIndex_notExist()
StableSwapFacet__getSwapToken_outOfRange()