AdminUpgradeabilityProxy
Verified contract
Proxy
Active on
Ethereum with 296 txns
Unified storage
Map
Table
Raw
Constants and immutables
2
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x8e6c…6e62
0xea02…3eab
0xeeb7…f71c
0xcafe…3de5
0xe972…609c
0xab1c…3f81
1 additional
variable
Balances ($301.24)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
PSP | ERC-20 | 15.933783K | $0.018906 |
$301.24 | |
SPSP_PP3 | ERC-20 | 11.880634K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19597953 | 8 months ago | | | 0 | 0.0038499022 | |
| 17264998 | 2 years ago | | | 0 | 0.0067927102 | |
| 17264997 | 2 years ago | | | 0 | 0.0056593031 | |
| 17087779 | 2 years ago | | | 0 | 0.0020403744 | |
| 17087778 | 2 years ago | | | 0 | 0.0085795946 | |
| 16783929 | 2 years ago | | | 0 | 0.0034355263 | |
| 16466895 | 2 years ago | | | 0 | 0.0025659244 | |
| 16453880 | 2 years ago | | | 0 | 0.0024675438 | |
| 16453789 | 2 years ago | | | 0 | 0.0031373499 | |
| 16450080 | 2 years ago | | | 0 | 0.0032539890 |
ABI
ABI objects
Getter at block 21286897 getPTWeightInPair() view returns (uint256)
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
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 _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 admin() returns (address)
changeAdmin(address newAdmin)
implementation() returns (address)
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
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)
AdminChanged(address previousAdmin, address newAdmin)
Upgraded(address indexed implementation)
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)
constructor(address _logic, address _admin, bytes _data)
fallback()
receive()
This contract contains no error objects.