SwapFlashLoan

Verified contract

Proxy

Active on Base with 1,490 txns
Deployed by via 0xcc7910bf at 3056681
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 9 additional slots
ERC-20
Value $1,171.22
ERC-20
Value $713.49
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xce59729dae4bfae422d7e0e3db21ceaf5504309180cc1c31256043108b0d5539
0x77b525b8e898080570db3ab63cc0289f3542dc9c1b25e6a249509ecd6a6fabea
0xfac8c83e6ea1f2089f746ba8bb5c7b89c482feb639d24655d3deae59709ed99b
0xeb6a79cab8290d3afdcad7c7fbd02f49bd2748ca18249d84580b89024656d417
0xb58537e0ea99e1b32f1c32b9f9351778e03ef9cfd11b19fe7567eff40976f0df
0xf849cbb362efa6395354842b713091067d24990d2cb57094de7baf27ac5e92fd
0xb8a528cc8a51da09fd86f229065c804d4dded5fba61fafb03bf641023aa02813
0xf199ea455190458cdf66f8320acdce1505444dc819710b8743a8b65ec674e003
0x79a2cc61e57aeeb68a21a8793ba607c9bae252ccf978756ce2c6e49dba72738f
0xc4cba06413315cf58f7c51231b6a13f231d7ec0b4fe59067267967595a93b300

Functions
Getter at block 21877231
MAX_BPS(view returns (uint256)
10000
flashLoanFeeBPS(view returns (uint256)
8
getA(view returns (uint256)
1000
getAPrecise(view returns (uint256)
100000
 
getAdminBalances(view returns (uint256[] adminBalances)
getLpToken(view returns (address)
0x840dcb7b4d3ceb906efd00c8b5f5c5dd61d7f8a6
getNumberOfTokens(view returns (uint256)
2
getTokenBalances(view returns (uint256[])
[450277787, 933442536018728696736]
getTokenPrecisionMultipliers(view returns (uint256[])
[1000000000000, 1]
getTokens(view returns (address[])
[0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA, 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb]
 
getVirtualPrice(view returns (uint256)
isFlashLoanEnabled(view returns (bool)
false
owner(view returns (address)
0x845e2f1336d686794f791203ca6733d51672f543
paused(view returns (bool)
false
protocolFeeShareBPS(view returns (uint256)
0
swapStorage(view returns (uint256 initialAuint256 futureAuint256 initialATimeuint256 futureATimeuint256 swapFeeuint256 adminFeeaddress lpToken)
(initialA=100000, futureA=100000, initialATime=0, futureATime=0, swapFee=1000000, adminFee=5000000000, lpToken=0x840dcb7b4d3ceb906efd00c8b5f5c5dd61d7f8a6)
Read-only
calculateRemoveLiquidity(uint256 amountview returns (uint256[])
calculateRemoveLiquidityOneToken(uint256 tokenAmountuint8 tokenIndexview returns (uint256 availableTokenAmount)
calculateSwap(uint8 tokenIndexFromuint8 tokenIndexTouint256 dxview returns (uint256)
calculateTokenAmount(uint256[] amountsbool depositview returns (uint256)
getAdminBalance(uint256 indexview 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)
flashLoan(address receiveraddress tokenuint256 amountbytes params
initialize(address[] _pooledTokensuint8[] decimalsstring lpTokenNamestring lpTokenSymboluint256 _auint256 _feeuint256 _adminFeeaddress lpTokenTargetAddress
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
setFlashLoanFees(uint256 newFlashLoanFeeBPSuint256 newProtocolFeeShareBPS
setSwapFee(uint256 newSwapFee
stopRampA(
swap(uint8 tokenIndexFromuint8 tokenIndexTouint256 dxuint256 minDyuint256 deadlinereturns (uint256)
toggleFlashLoan(bool enableFlashLoan
transferOwnership(address newOwner
unpause(
withdrawAdminFees(
Events
AddLiquidity(address indexed provideruint256[] tokenAmountsuint256[] feesuint256 invariantuint256 lpTokenSupply
FlashLoan(address indexed receiveruint8 tokenIndexuint256 amountuint256 amountFeeuint256 protocolFee
NewAdminFee(uint256 newAdminFee
NewSwapFee(uint256 newSwapFee
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
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.