Swap

Verified contract

Proxy

Active on Base with 11,655 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,238,974.87
ERC-20
Value $0.09
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x9384bef37403bc123906a0d64fe151cad601e716b6eb59389e5cca4aca912295
0x73a028f1eb5ad0ab2fae87cb77a6378499012e3016ce312176945703adf7c010
0x41677aafb70f598de21d3f532ea5f0b1cf495c662f1e45024cc834859f66f08b
0x8122626af8264ecef933a34127641e56f6e633197318c3e51ef844f92a05e098
0xa73ce1ffe838b102e502c7e0505c46b77eab3d66690c2d58b62a5c36dc2e6110
0xc1919b0fb2d8e0a45d44cff4a0e2be38b331786b546db4bcb7f95993eda05a25
0x07233f919e64fb797753b6545563004d6682220a02bb073c248603380b8ef3aa
0x887528eb635a7644cbe49b71e70453a0dcd193414fc863f387763dfa68532bba
0x87c1ed6b502bdfe1b4f8265ae8ab79497fe81f43c7488fe365a4495e89d249f8
0xcde628cbea323f88ceeb342aaa9ac19cbcb748fc8a030bda9dbb7b6bfd39a611

Functions
Getter at block 21739858
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.