AMM

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xba418264 at 14442778
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "AMM"

No transactions found for "AMM"


Functions
Getter at block 21287459
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
 
getPTWeightInPair(view returns (uint256)
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 _pairIDuint256 _tokenInuint256 _maxAmountInuint256 _tokenOutuint256 _tokenAmountOutview returns (uint256 tokenAmountInuint256 spotPriceAfter)
calcOutAndSpotGivenIn(uint256 _pairIDuint256 _tokenInuint256 _tokenAmountInuint256 _tokenOutuint256 _minAmountOutview returns (uint256 tokenAmountOutuint256 spotPriceAfter)
getExpiredTokensInfo(address _useruint256 _lpTokenIdview returns (uint256uint256uint256)
getLPTokenId(uint256 _ammIduint256 _periodIndexuint256 _pairIDpure returns (uint256)
getPairIDForToken(address _tokenAddressview returns (uint256)
getPairWithID(uint256 _pairIDview returns (struct IAMMPair)
getSpotPrice(uint256 _pairIDuint256 _tokenInuint256 _tokenOutview returns (uint256)
getTotalSupplyWithTokenId(uint256 _tokenIdview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
State-modifying
addLiquidity(uint256 _pairIDuint256 _poolAmountOutuint256[2] _maxAmountsIn
createLiquidity(uint256 _pairIDuint256[2] _tokenAmounts
exitSwapExternAmountOut(uint256 _pairIDuint256 _tokenOutuint256 _tokenAmountOutuint256 _maxPoolAmountInreturns (uint256 poolAmountIn)
exitSwapPoolAmountIn(uint256 _pairIDuint256 _tokenOutuint256 _poolAmountInuint256 _minAmountOutreturns (uint256 tokenAmountOut)
finalize(
grantRole(bytes32 roleaddress account
initialize(uint64 _ammIdaddress _underlyingOfIBTAddressaddress _futureVaultaddress _poolTokensaddress _adminaddress _feesRecipientaddress _router
joinSwapExternAmountIn(uint256 _pairIDuint256 _tokenInuint256 _tokenAmountInuint256 _minPoolAmountOutreturns (uint256 poolAmountOut)
joinSwapPoolAmountOut(uint256 _pairIDuint256 _tokenInuint256 _poolAmountOutuint256 _maxAmountInreturns (uint256 tokenAmountIn)
removeLiquidity(uint256 _pairIDuint256 _poolAmountInuint256[2] _minAmountsOut
rescueFunds(address _tokenaddress _recipient
revokeRole(bytes32 roleaddress account
setSwappingFees(uint256 _swapFee
swapExactAmountIn(uint256 _pairIDuint256 _tokenInuint256 _tokenAmountInuint256 _tokenOutuint256 _minAmountOutaddress _toreturns (uint256 tokenAmountOutuint256 spotPriceAfter)
swapExactAmountOut(uint256 _pairIDuint256 _tokenInuint256 _maxAmountInuint256 _tokenOutuint256 _tokenAmountOutaddress _toreturns (uint256 tokenAmountInuint256 spotPriceAfter)
switchPeriod(
togglePauseAmm(
withdrawExpiredToken(address _useruint256 _lpTokenId
Events
AMMStateChanged(uint8 _newState
ExpiredTokensWithdrawn(address _useruint256 _amount
LiquidityCreated(address _useruint256 _pairID
LiquidityDecreased(address _touint256 _pairIDuint256 _tokenIDuint256 _amount
LiquidityIncreased(address _fromuint256 _pairIDuint256 _tokenIDuint256 _amount
PairCreated(uint256 indexed _pairIDaddress _token
PeriodSwitched(uint256 _newPeriodIndex
PoolExited(address _useruint256 _pairIDuint256 _poolTokenAmount
PoolJoined(address _useruint256 _pairIDuint256 _poolTokenAmount
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Swapped(address _useruint256 _pairIDuint256 _tokenInIDuint256 _tokenOutIDuint256 _tokenAmountInuint256 _tokenAmountOutaddress _to
SwappingFeeSet(uint256 _swapFee
WeightUpdated(address _tokenuint256[2] _newWeights
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.