PowerIndexRouter
Verified contract
Proxy
Active on
Ethereum with 66 txns
Unified storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x6989…fcdc
0x04d7…5b96
Balances ($0.00)
No balances found for "PowerIndexRouter"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 16476412 | 2 years ago | | | 0 | 0.0049887907 | |
| 16049462 | 2 years ago | | | 0 | 0.0034507639 | |
| 15516334 | 2 years ago | | | 0 | 0.0041834592 | |
| 15483469 | 2 years ago | | | 0 | 0.0021766096 | |
| 15438093 | 2 years ago | | | 0 | 0.0070808943 | |
| 15431827 | 2 years ago | | | 0 | 0.0035633546 | |
| 15407999 | 2 years ago | | | 0 | 0.0030445495 | |
| 15401737 | 2 years ago | | | 0 | 0.0029370895 | |
| 15387284 | 2 years ago | | | 0 | 0.0021168078 | |
| 15380423 | 2 years ago | | | 0 | 0.0030362982 |
ABI
ABI objects
Getter at block 21228205 getUnderlyingAvailable() view returns (uint256) DEGRADATION_COEFFICIENT() view returns (uint256) GOVERNANCE() view returns (address) LOCKED_PROFIT_DEGRADATION() view returns (uint256) PI_TOKEN() view returns (address) RATIO_CONSTANT() view returns (uint256) STAKING() view returns (address) UNDERLYING() view returns (address) getPendingRewards() view returns (uint256) getTornPriceRatio() view returns (uint256)
HUNDRED_PCT() view returns (uint256)
1000000000000000000
calculateLockedProfit() view returns (uint256)
0
claimRewardsInterval() view returns (uint256)
86400
getUnderlyingReserve() view returns (uint256)
0
getUnderlyingStaked() view returns (uint256)
2984693312345136089833
getUnderlyingTotal() view returns (uint256)
2984693312345136089833
lastRebalancedByPokerAt() view returns (uint256)
1674560183
owner() view returns (address)
0xb258302c3f209491d604165549079680708581cc
performanceFee() view returns (uint256)
0
performanceFeeReceiver() view returns (address)
0xd132973eaebbd6d7ca7b88e9170f2cca058de430
piToken() view returns (address)
0xa1ebc8bde2f1f87fe24f384497b6bd9ce3b14345
poolRestrictions() view returns (address)
0x698967ca2fb85a6d9a7d2bed4d2f6d32bbc5fcdc
powerPoke() view returns (address)
0x04d7aa22ef7181ee3142f5063e026af1bbbe5b96
reserveRatio() view returns (uint256)
0
reserveRatioLowerBound() view returns (uint256)
0
reserveRatioUpperBound() view returns (uint256)
0
underlying() view returns (address)
0x77777feddddffc19ff86db637967013e6c6a116c
HUNDRED_PCT() view returns (uint256)
1000000000000000000
getUnderlyingStaked() view returns (uint256)
2984693312345136089833
Read-only
claimRewardsIntervalReached(uint256 _lastClaimRewardsAt) view returns (bool)
connectors(uint256) view returns (address connector, uint256 share, bool callBeforeAfterPoke, uint256 lastClaimRewardsAt, uint256 lastChangeStakeAt, bytes stakeData, bytes pokeData, bytes stakeParams, bytes claimParams)
getExpectedStakeAmount(uint256 _reserveRatioPct, uint256 _leftOnPiToken, uint256 _stakedBalance, uint256 _share) pure returns (uint256)
getPiEquivalentForUnderlying(uint256 _underlyingAmount, uint256 _piTotalSupply) view returns (uint256)
getPiEquivalentForUnderlyingPure(uint256 _underlyingAmount, uint256 _totalUnderlyingWrapped, uint256 _piTotalSupply) pure returns (uint256)
getStakeAndClaimStatus(uint256 _leftOnPiTokenBalance, uint256 _totalStakedBalance, uint256 _stakedBalance, uint256 _subFromExpectedStakeAmount, bool _claimAndDistributeRewards, struct PowerIndexRouterConnector _c) view returns (uint8 status, uint256 diff, bool shouldClaim, bool forceRebalance)
getStakeStatus(uint256 _leftOnPiTokenBalance, uint256 _totalStakedBalance, uint256 _stakedBalance, uint256 _subFromExpectedStakeAmount, uint256 _share) view returns (uint8 status, uint256 diff, bool forceRebalance)
getStakeStatusForBalance(uint256 _stakedBalance, uint256 _share) view returns (uint8 status, uint256 diff, bool forceRebalance)
getStakeStatusPure(uint256 _reserveRatioPct, uint256 _leftOnPiToken, uint256 _totalStakedBalance, uint256 _stakedBalance, uint256 _share, uint256 _subFromExpectedStakeAmount) view returns (uint8 status, uint256 diff, uint256 expectedStakeAmount)
getUnderlyingEquivalentForPi(uint256 _piAmount, uint256 _piTotalSupply) view returns (uint256)
getUnderlyingEquivalentForPiPure(uint256 _piAmount, uint256 _totalUnderlyingWrapped, uint256 _piTotalSupply) pure returns (uint256)
calcTornOutByWethIn(uint256 _wethAmount) view returns (uint256)
calcWethOutByTornIn(uint256 _tornAmountIn) view returns (uint256)
calculateLockedProfit(bytes _stakeData) view returns (uint256)
calculateLockedProfit(uint256 _lockedProfit, uint256 _lastRewardDistribution) view returns (uint256)
forecastReward(uint256 _accRewardPerTorn, uint256 _accRewardRateOnLastUpdate, uint256 _reinvestDuration, uint256 _lastRewardsUpdate, uint256 _lockedBalance) view returns (uint256)
getPendingAndForecastReward(uint256 _lastClaimRewardsAt, uint256 _lastChangeStakeAt, uint256 _reinvestDuration) view returns (uint256 pending, uint256 forecast, uint256 forecastByPending)
getTornUsedToReinvest(uint256 _gasUsed, uint256 _gasPrice) view returns (uint256)
isClaimAvailable(bytes _claimParams, uint256 _lastClaimRewardsAt, uint256 _lastChangeStakeAt) view returns (bool)
packClaimParams(uint256 paybackDuration, uint256 gasToReinvest) pure returns (bytes)
packStakeData(uint256 lockedProfit, uint256 lastRewardDistribution, uint256 performanceFeeDebt) pure returns (bytes)
pendingReward(uint256 _accRewardPerTorn, uint256 _accRewardRateOnLastUpdate, uint256 _lockedBalance) view returns (uint256)
unpackClaimParams(bytes _claimParams) pure returns (uint256 paybackDuration, uint256 gasToReinvest)
unpackStakeData(bytes _stakeData) pure returns (uint256 lockedProfit, uint256 lastRewardDistribution, uint256 performanceFeeDebt)
State-modifying
Events enableRouterCallback(address _piToken, bool _enable)
initRouterByConnector(uint256 _connectorIndex, bytes _data)
migrateToNewRouter(address _piToken, address _newRouter, address[] _tokens)
piTokenCallback(address, uint256 _withdrawAmount) payable
pokeFromReporter(uint256 _reporterId, bool _claimAndDistributeRewards, bytes _rewardOpts)
pokeFromSlasher(uint256 _reporterId, bool _claimAndDistributeRewards, bytes _rewardOpts)
redeem(uint256 _connectorIndex, uint256 _diff)
renounceOwnership()
setClaimParams(uint256 _connectorIndex, bytes _claimParams)
setConnectorList(struct PowerIndexRouterConnectorInput[] _connectorList)
setPerformanceFee(uint256 _performanceFee)
setPiTokenEthFee(uint256 _ethFee)
setPiTokenNoFee(address _for, bool _noFee)
setReserveConfig(uint256 _reserveRatio, uint256 _reserveRatioLowerBound, uint256 _reserveRatioUpperBound, uint256 _claimRewardsInterval)
setStakeParams(uint256 _connectorIndex, bytes _stakeParams)
stake(uint256 _connectorIndex, uint256 _diff)
transferOwnership(address newOwner)
withdrawEthFee(address _receiver)
afterPoke(uint8, bool) returns (bytes)
beforePoke(bytes _pokeData, struct IRouterConnectorDistributeData _distributeData, bool _willClaimReward)
claimRewards(uint8 _status, struct IRouterConnectorDistributeData _distributeData) returns (bytes stakeData)
initRouter(bytes)
redeem(uint256 _amount, struct IRouterConnectorDistributeData) returns (bytes result, bool claimed)
stake(uint256 _amount, struct IRouterConnectorDistributeData) returns (bytes result, bool claimed)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SetConnector(address indexed connector, uint256 share, bool callBeforeAfterPoke, uint256 indexed connectorIndex, bool indexed isNewConnector)
SetConnectorClaimParams(address connector, bytes claimParams)
SetConnectorStakeParams(address connector, bytes stakeParams)
SetPerformanceFee(uint256 performanceFee)
SetReserveConfig(uint256 ratio, uint256 ratioLowerBound, uint256 ratioUpperBound, uint256 claimRewardsInterval)
DistributePerformanceFee(uint256 performanceFeeDebtBefore, uint256 performanceFeeDebtAfter, uint256 underlyingBalance, uint256 performance)
DistributeReward(address indexed sender, uint256 totalReward, uint256 performanceFee, uint256 piTokenReward, uint256 lockedProfitBefore, uint256 lockedProfitAfter)
Redeem(address indexed sender, address indexed staking, address indexed underlying, uint256 amount)
Redeem(address indexed sender, uint256 amount, uint256 rewardReceived)
Stake(address indexed sender, address indexed staking, address indexed underlying, uint256 amount)
Stake(address indexed sender, uint256 amount, uint256 rewardReceived)
constructor(address _piToken, struct PowerIndexRouterBasicConfig _basicConfig)
receive()
This contract contains no error objects.