AdminUpgradeabilityProxy

Verified contract

Proxy

Active on Ethereum with 296 txns
Deployed by via 0x8bdc80a6 at 14046979
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
1 additional variable
ERC-20
Value $301.24
ERC-20
--
0x5239bfcf3dc505606631c0cc5583b629ac8e0522127e201ee690ee8cff147957
0x907ef3fe98588c9405fa7db5d556359a1970716ad049ee0abd39dc5445403e41
0x5e12d69550178d4874176f0da619c1e668d643e766f45b0922ad59b8d294fc4a
0x142025bbfa8193952a8fe4d5c8d388da866c5457c60872328cbf8900345263f0
0x9763f114286482de875be2a953b7f5c321b53205a67e6c4b0dfbf2d51ce4f06d
0xef3516c82efd38c0d4d6316c844945fc2e4fec5b3ead9ffde1562309815a3e5c
0xce23a77ed790c773cc79e40af686bb06917b40b1bc5d3fb4eaf391463eee850f
0x9a1ab06f9cae0bf4bb41e908e0f8ae85f98b3ab79284408b00ef0966befa0ec6
0x1442ab36ee65da9b9ce9f5858aa0a5bd0527b067e8a43eac0c72f912b6388c45
0xa1800a0601ce6c070ad0153c8377b23f8f90ea6e8a3ff68dfd983b55ee99d850

Functions
Getter at block 21286897
ERC1155_ERC165(view returns (bytes4)
0xd9b67a26
ammId(view returns (uint64)
14
currentPeriodIndex(view returns (uint256)
6
getAMMState(view returns (uint8)
2
getFYTAddress(view returns (address)
0xe9720a2e17a4a58381db47329821e455b9b5609c
getFutureAddress(view returns (address)
0x8e6ca2b63b0c231364f85c42bcfc9d0a49786e62
getIBTAddress(view returns (address)
0xea02df45f56a690071022c45c95c46e7f61d3eab
getPTAddress(view returns (address)
0xeeb7f670bf2c092bb4196217b215ba5b4499f71c
 
getPTWeightInPair(view returns (uint256)
getPoolTokenAddress(view returns (address)
0xab1cab9c059b627de5add93834b70e5048923f81
getUnderlyingOfIBTAddress(view returns (address)
0xcafe001067cdef266afb7eb5a286dcfd277f3de5
lastBlockYieldRecorded(view returns (uint256)
16383562
lastYieldRecorded(view returns (uint256)
36650053809824544
swapFee(view returns (uint256)
2500000000000000
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
admin(returns (address)
changeAdmin(address newAdmin
implementation(returns (address)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
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
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
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
constructor(address _logicaddress _adminbytes _data
Fallback and receive
fallback(
receive(
Errors

This contract contains no error objects.