SwapFlashLoan
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
12
Slot
XX
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
Balances ($0.00)
No balances found for "SwapFlashLoan"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "SwapFlashLoan"
ABI
ABI objects
Getter at block 21304057 getVirtualPrice() view returns (uint256)
MAX_BPS() view returns (uint256)
10000
flashLoanFeeBPS() view returns (uint256)
0
getA() view returns (uint256)
0
getAPrecise() view returns (uint256)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
paused() view returns (bool)
false
protocolFeeShareBPS() view returns (uint256)
0
swapStorage() view returns (uint256 initialA, uint256 futureA, uint256 initialATime, uint256 futureATime, uint256 swapFee, uint256 adminFee, address lpToken)
(initialA=0, futureA=0, initialATime=0, futureATime=0, swapFee=0, adminFee=0, lpToken=0x0000000000000000000000000000000000000000)
Read-only
calculateRemoveLiquidity(uint256 amount) view returns (uint256[])
calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns (uint256 availableTokenAmount)
calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns (uint256)
calculateTokenAmount(uint256[] amounts, bool deposit) view returns (uint256)
getAdminBalance(uint256 index) view returns (uint256)
getToken(uint8 index) view returns (address)
getTokenBalance(uint8 index) view returns (uint256)
getTokenIndex(address tokenAddress) view returns (uint8)
State-modifying
Events addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) returns (uint256)
flashLoan(address receiver, address token, uint256 amount, bytes params)
initialize(address[] _pooledTokens, uint8[] decimals, string lpTokenName, string lpTokenSymbol, uint256 _a, uint256 _fee, uint256 _adminFee, address lpTokenTargetAddress)
pause()
rampA(uint256 futureA, uint256 futureTime)
removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) returns (uint256[])
removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) returns (uint256)
removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) returns (uint256)
renounceOwnership()
setAdminFee(uint256 newAdminFee)
setFlashLoanFees(uint256 newFlashLoanFeeBPS, uint256 newProtocolFeeShareBPS)
setSwapFee(uint256 newSwapFee)
stopRampA()
swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns (uint256)
transferOwnership(address newOwner)
unpause()
withdrawAdminFees()
AddLiquidity(address indexed provider, uint256[] tokenAmounts, uint256[] fees, uint256 invariant, uint256 lpTokenSupply)
FlashLoan(address indexed receiver, uint8 tokenIndex, uint256 amount, uint256 amountFee, uint256 protocolFee)
NewAdminFee(uint256 newAdminFee)
NewSwapFee(uint256 newSwapFee)
NewWithdrawFee(uint256 newWithdrawFee)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
RampA(uint256 oldA, uint256 newA, uint256 initialTime, uint256 futureTime)
RemoveLiquidity(address indexed provider, uint256[] tokenAmounts, uint256 lpTokenSupply)
RemoveLiquidityImbalance(address indexed provider, uint256[] tokenAmounts, uint256[] fees, uint256 invariant, uint256 lpTokenSupply)
RemoveLiquidityOne(address indexed provider, uint256 lpTokenAmount, uint256 lpTokenSupply, uint256 boughtId, uint256 tokensBought)
StopRampA(uint256 currentA, uint256 time)
TokenSwap(address indexed buyer, uint256 tokensSold, uint256 tokensBought, uint128 soldId, uint128 boughtId)
Unpaused(address account)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.