StableSwapFacet

Verified contract

Active on Ethereum with 0 txns
Deployed by via 0xa3dc7df5 at 16233058
Slot
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"

No transactions found for "StableSwapFacet"


Functions
Getter at block 21260319

This contract contains no getter function objects.

Read-only
calculateRemoveSwapLiquidity(bytes32 keyuint256 amountview returns (uint256[])
calculateRemoveSwapLiquidityOneToken(bytes32 keyuint256 tokenAmountuint8 tokenIndexview returns (uint256 availableTokenAmount)
calculateSwap(bytes32 keyuint8 tokenIndexFromuint8 tokenIndexTouint256 dxview returns (uint256)
calculateSwapTokenAmount(bytes32 keyuint256[] amountsbool depositview returns (uint256)
getSwapA(bytes32 keyview returns (uint256)
getSwapAPrecise(bytes32 keyview returns (uint256)
getSwapAdminBalance(bytes32 keyuint256 indexview returns (uint256)
getSwapLPToken(bytes32 keyview returns (address)
getSwapStorage(bytes32 keyview returns (struct SwapUtilsSwap)
getSwapToken(bytes32 keyuint8 indexview returns (address)
getSwapTokenBalance(bytes32 keyuint8 indexview returns (uint256)
getSwapTokenIndex(bytes32 keyaddress tokenAddressview returns (uint8)
getSwapVirtualPrice(bytes32 keyview returns (uint256)
State-modifying
addSwapLiquidity(bytes32 keyuint256[] amountsuint256 minToMintuint256 deadlinereturns (uint256)
removeSwapLiquidity(bytes32 keyuint256 amountuint256[] minAmountsuint256 deadlinereturns (uint256[])
removeSwapLiquidityImbalance(bytes32 keyuint256[] amountsuint256 maxBurnAmountuint256 deadlinereturns (uint256)
removeSwapLiquidityOneToken(bytes32 keyuint256 tokenAmountuint8 tokenIndexuint256 minAmountuint256 deadlinereturns (uint256)
swap(bytes32 keyuint8 tokenIndexFromuint8 tokenIndexTouint256 dxuint256 minDyuint256 deadlinereturns (uint256)
swapExact(bytes32 keyuint256 amountInaddress assetInaddress assetOutuint256 minAmountOutuint256 deadlinereturns (uint256)
swapExactOut(bytes32 keyuint256 amountOutaddress assetInaddress assetOutuint256 maxAmountInuint256 deadlinereturns (uint256)
Events
AddLiquidity(bytes32 indexed keyaddress indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
NewAdminFee(bytes32 indexed keyuint256 newAdminFee
NewSwapFee(bytes32 indexed keyuint256 newSwapFee
RemoveLiquidity(bytes32 indexed keyaddress indexed provideruint256[] tokenAmountsuint256 lpTokenSupply
RemoveLiquidityImbalance(bytes32 indexed keyaddress indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
RemoveLiquidityOne(bytes32 indexed keyaddress indexed provideruint256 lpTokenAmountuint256 lpTokenSupplyuint256 boughtIduint256 tokensBought
TokenSwap(bytes32 indexed keyaddress indexed buyeruint256 tokensSolduint256 tokensBoughtuint128 soldIduint128 boughtId
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
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(