Swap

Verified contract

Proxy

Active on Ethereum with 2,988 txns
Deployed by via 0x66918f56 at 11685572
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 12 additional slots
ERC-20
Value $260,367.81
ERC-20
Value $236,624.07
ERC-20
Value $80,250.12
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xeea8519145ea2cb8c9bc5d336433e3132d38e62759601f31efe7bd3a666d64ef
0xe6d5465a21bfd5a4484094bdb9b3fb3c322356702673d425ad06eabbb0cfc6bb
0x56c50ce950597d411b3ce65d00e5def11ec37051e98400acf073328cc289e2ae
0x46c2d1dfac06f802287bd86d8ca8e00697b39b424a8e84fa3eafd86d99983151
0xc468d857cbfc94a21730e1ac736b33d231a9e6aa18854c4e484caab40dd9941b
0xa5cf81921ae7b2a532a6b4501df0564c994e9d7bb10d8632cbff016d100e8308
0x6ef29671c83d158bf074ac87e9afc3e04a27a01e27800e2b560c8ada506f85f6
0x981f48b2523d568bcb694967ce26ab7e378af5baa93c05ceb5c8de2593dadff1
0xcb03d01970af677702fdd38a87cca18e27e404159f675d83820f6ee50bf86a7f
0xe54b64f97e38c4d1c0d5c51864b2796b93c150f9527e4cc6ce7a0529f52ae3c8

Functions
Getter at block 21305686
getA(view returns (uint256)
200
getAPrecise(view returns (uint256)
20000
getAllowlist(view returns (address)
0xf5d2e84e816175dfb2c38bd7549d4bd37b1c0559
 
getVirtualPrice(view returns (uint256)
isGuarded(view returns (bool)
false
owner(view returns (address)
0x3f8e527af4e0c6e763e8f368ac679c44c45626ae
paused(view returns (bool)
true
swapStorage(view returns (uint256 initialAuint256 futureAuint256 initialATimeuint256 futureATimeuint256 swapFeeuint256 adminFeeuint256 defaultWithdrawFeeaddress lpToken)
(initialA=20000, futureA=20000, initialATime=0, futureATime=0, swapFee=4000000, adminFee=5000000000, defaultWithdrawFee=0, lpToken=0xc28df698475dec994be00c9c9d8658a548e6304f)
 
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 deadlinebytes32[] merkleProofreturns (uint256)
disableGuard(
pause(
rampA(uint256 futureAuint256 futureTime
removeLiquidity(uint256 amountuint256[] minAmountsuint256 deadlinereturns (uint256[])
removeLiquidityImbalance(uint256[] amountsuint256 maxBurnAmountuint256 deadlinereturns (uint256)
removeLiquidityOneToken(uint256 tokenAmountuint8 tokenIndexuint256 minAmountuint256 deadlinereturns (uint256)
renounceOwnership(
setAdminFee(uint256 newAdminFee
setDefaultWithdrawFee(uint256 newWithdrawFee
setSwapFee(uint256 newSwapFee
stopRampA(
swap(uint8 tokenIndexFromuint8 tokenIndexTouint256 dxuint256 minDyuint256 deadlinereturns (uint256)
transferOwnership(address newOwner
unpause(
updateUserWithdrawFee(address recipientuint256 transferAmount
withdrawAdminFees(
Events
AddLiquidity(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
NewAdminFee(uint256 newAdminFee
NewSwapFee(uint256 newSwapFee
NewWithdrawFee(uint256 newWithdrawFee
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
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
Unpaused(address account
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
Constructor
constructor(address[] _pooledTokensuint8[] decimalsstring lpTokenNamestring lpTokenSymboluint256 _auint256 _feeuint256 _adminFeeuint256 _withdrawFeeaddress _allowlist
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.