This contract is being backfilled. You may encounter incomplete storage history.

Swap

Verified contract

Proxy

Active on Base with 11,826 txns
Deployed by via 0xde0dfe08 at 1397207
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 12 additional slots
ERC-20
Value $1,229,961.92
ERC-20
Value $0.07
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x654c5f1f66923bb9282e82940612672bda01e017befc19e0f76db4628dbef32a
0xf55f2dcda11eb264d44b5c604d7cf03aa751893a1757292b3e668385cd64949b
0xcd47a7a19b9d14ed43557b326b0129f459d872ec7ae0003393e97e000f96900c
0xcf95dd79ac41f5fd8a454789a3f9aa6d0b76b79a3d6bfb98eb8e23fd4abed5c7
0xd00e5c7d5720fc3fbe75f35854732900349f342330b984a76dfe43a6cd90583b
0xeaea678f40ca86d3cc51f5d7a606fb1eb7901596f9294a48a83eb889cc5023e6
0x0f94ad924e23514a29953defe4cc3bd62b7896f48cd405d4bbf651fbfeb5c005
0x316faaeca3b6add92eb5533a73c3fbcedf8fe7d2141d9c2801c8aa77fd872660
0x090d31ff67edfe7bc843ea106b1a85c1e481b8796ccd54df4787da39542141b6
0xae88a96fa5faa5801135cff614d8a8e54ed159ef7a331f3c553084820338227c

Functions
Getter at block 22832519
getA(view returns (uint256)
200
getAPrecise(view returns (uint256)
20000
 
getVirtualPrice(view returns (uint256)
swapStorage(view returns (uint256 initialAuint256 futureAuint256 initialATimeuint256 futureATimeuint256 swapFeeuint256 adminFeeuint256 defaultWithdrawFeeaddress lpToken)
(initialA=20000, futureA=20000, initialATime=0, futureATime=0, swapFee=4000000, adminFee=0, defaultWithdrawFee=0, lpToken=0xe9605bec1c5c3e81f974f80b8da9fbeff4845d4d)
 
A_PRECISION(view returns (uint256)
 
MAX_A(view returns (uint256)
 
MAX_ADMIN_FEE(view returns (uint256)
 
MAX_SWAP_FEE(view returns (uint256)
 
MAX_WITHDRAW_FEE(view returns (uint256)
 
POOL_PRECISION_DECIMALS(view returns (uint8)
Read-only
calculateCurrentWithdrawFee(address userview returns (uint256)
calculateRemoveLiquidity(address accountuint256 amountview returns (uint256[])
calculateRemoveLiquidityOneToken(address accountuint256 tokenAmountuint8 tokenIndexview returns (uint256 availableTokenAmount)
calculateSwap(uint8 tokenIndexFromuint8 tokenIndexTouint256 dxview returns (uint256)
calculateTokenAmount(address accountuint256[] amountsbool depositview returns (uint256)
getAdminBalance(uint256 indexview returns (uint256)
getDepositTimestamp(address userview returns (uint256)
getToken(uint8 indexview returns (address)
getTokenBalance(uint8 indexview returns (uint256)
getTokenIndex(address tokenAddressview returns (uint8)
State-modifying
addLiquidity(uint256[] amountsuint256 minToMintuint256 deadlinereturns (uint256)
initialize(address[] _pooledTokensuint8[] decimalsstring lpTokenNamestring lpTokenSymboluint256 _auint256 _feeuint256 _adminFeeuint256 _withdrawFee
removeLiquidity(uint256 amountuint256[] minAmountsuint256 deadlinereturns (uint256[])
removeLiquidityImbalance(uint256[] amountsuint256 maxBurnAmountuint256 deadlinereturns (uint256)
removeLiquidityOneToken(uint256 tokenAmountuint8 tokenIndexuint256 minAmountuint256 deadlinereturns (uint256)
swap(uint8 tokenIndexFromuint8 tokenIndexTouint256 dxuint256 minDyuint256 deadlinereturns (uint256)
updateUserWithdrawFee(address recipientuint256 transferAmount
Events
AddLiquidity(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
NewAdminFee(uint256 newAdminFee
NewSwapFee(uint256 newSwapFee
NewWithdrawFee(uint256 newWithdrawFee
RampA(uint256 oldAuint256 newAuint256 initialTimeuint256 futureTime
RemoveLiquidity(address indexed provideruint256[] tokenAmountsuint256 lpTokenSupply
RemoveLiquidityImbalance(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
RemoveLiquidityOne(address indexed provideruint256 lpTokenAmountuint256 lpTokenSupplyuint256 boughtIduint256 tokensBought
StopRampA(uint256 currentAuint256 time
TokenSwap(address indexed buyeruint256 tokensSolduint256 tokensBoughtuint128 soldIduint128 boughtId
AddLiquidity(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
RemoveLiquidity(address indexed provideruint256[] tokenAmountsuint256 lpTokenSupply
RemoveLiquidityImbalance(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
RemoveLiquidityOne(address indexed provideruint256 lpTokenAmountuint256 lpTokenSupplyuint256 boughtIduint256 tokensBought
TokenSwap(address 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

This contract contains no error objects.