AMM
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
16
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "AMM"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "AMM"
ABI
ABI objects
Getter at block 21287459 getPTWeightInPair() view returns (uint256)
ERC1155_ERC165() view returns (bytes4)
0xd9b67a26
ammId() view returns (uint64)
0
currentPeriodIndex() view returns (uint256)
0
getAMMState() view returns (uint8)
0
getFYTAddress() view returns (address)
0x0000000000000000000000000000000000000000
getFutureAddress() view returns (address)
0x0000000000000000000000000000000000000000
getIBTAddress() view returns (address)
0x0000000000000000000000000000000000000000
getPTAddress() view returns (address)
0x0000000000000000000000000000000000000000
getPoolTokenAddress() view returns (address)
0x0000000000000000000000000000000000000000
getUnderlyingOfIBTAddress() view returns (address)
0x0000000000000000000000000000000000000000
lastBlockYieldRecorded() view returns (uint256)
0
lastYieldRecorded() view returns (uint256)
0
swapFee() view returns (uint256)
0
Read-only
calcInAndSpotGivenOut(uint256 _pairID, uint256 _tokenIn, uint256 _maxAmountIn, uint256 _tokenOut, uint256 _tokenAmountOut) view returns (uint256 tokenAmountIn, uint256 spotPriceAfter)
calcOutAndSpotGivenIn(uint256 _pairID, uint256 _tokenIn, uint256 _tokenAmountIn, uint256 _tokenOut, uint256 _minAmountOut) view returns (uint256 tokenAmountOut, uint256 spotPriceAfter)
getExpiredTokensInfo(address _user, uint256 _lpTokenId) view returns (uint256, uint256, uint256)
getLPTokenId(uint256 _ammId, uint256 _periodIndex, uint256 _pairID) pure returns (uint256)
getPairIDForToken(address _tokenAddress) view returns (uint256)
getPairWithID(uint256 _pairID) view returns (struct IAMMPair)
getSpotPrice(uint256 _pairID, uint256 _tokenIn, uint256 _tokenOut) view returns (uint256)
getTotalSupplyWithTokenId(uint256 _tokenId) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
State-modifying
Events addLiquidity(uint256 _pairID, uint256 _poolAmountOut, uint256[2] _maxAmountsIn)
createLiquidity(uint256 _pairID, uint256[2] _tokenAmounts)
exitSwapExternAmountOut(uint256 _pairID, uint256 _tokenOut, uint256 _tokenAmountOut, uint256 _maxPoolAmountIn) returns (uint256 poolAmountIn)
exitSwapPoolAmountIn(uint256 _pairID, uint256 _tokenOut, uint256 _poolAmountIn, uint256 _minAmountOut) returns (uint256 tokenAmountOut)
finalize()
grantRole(bytes32 role, address account)
initialize(uint64 _ammId, address _underlyingOfIBTAddress, address _futureVault, address _poolTokens, address _admin, address _feesRecipient, address _router)
joinSwapExternAmountIn(uint256 _pairID, uint256 _tokenIn, uint256 _tokenAmountIn, uint256 _minPoolAmountOut) returns (uint256 poolAmountOut)
joinSwapPoolAmountOut(uint256 _pairID, uint256 _tokenIn, uint256 _poolAmountOut, uint256 _maxAmountIn) returns (uint256 tokenAmountIn)
removeLiquidity(uint256 _pairID, uint256 _poolAmountIn, uint256[2] _minAmountsOut)
rescueFunds(address _token, address _recipient)
revokeRole(bytes32 role, address account)
setSwappingFees(uint256 _swapFee)
swapExactAmountIn(uint256 _pairID, uint256 _tokenIn, uint256 _tokenAmountIn, uint256 _tokenOut, uint256 _minAmountOut, address _to) returns (uint256 tokenAmountOut, uint256 spotPriceAfter)
swapExactAmountOut(uint256 _pairID, uint256 _tokenIn, uint256 _maxAmountIn, uint256 _tokenOut, uint256 _tokenAmountOut, address _to) returns (uint256 tokenAmountIn, uint256 spotPriceAfter)
switchPeriod()
togglePauseAmm()
withdrawExpiredToken(address _user, uint256 _lpTokenId)
AMMStateChanged(uint8 _newState)
ExpiredTokensWithdrawn(address _user, uint256 _amount)
LiquidityCreated(address _user, uint256 _pairID)
LiquidityDecreased(address _to, uint256 _pairID, uint256 _tokenID, uint256 _amount)
LiquidityIncreased(address _from, uint256 _pairID, uint256 _tokenID, uint256 _amount)
PairCreated(uint256 indexed _pairID, address _token)
PeriodSwitched(uint256 _newPeriodIndex)
PoolExited(address _user, uint256 _pairID, uint256 _poolTokenAmount)
PoolJoined(address _user, uint256 _pairID, uint256 _poolTokenAmount)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Swapped(address _user, uint256 _pairID, uint256 _tokenInID, uint256 _tokenOutID, uint256 _tokenAmountIn, uint256 _tokenAmountOut, address _to)
SwappingFeeSet(uint256 _swapFee)
WeightUpdated(address _token, uint256[2] _newWeights)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.