TornPowerIndexConnector
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Raw
Slot | Value |
---|---|
0x0000000000000000000000000000000000000000000000000000000000000000 | 0x0000000000000000000000000000000000000000000000000000000000000000 |
0x0000000000000000000000000000000000000000000000000000000000000001 | 0x0000000000000000000000000000000000000000000000000000000000000000 |
0x0000000000000000000000000000000000000000000000000000000000000002 | 0x0000000000000000000000000000000000000000000000000000000000000000 |
0x0000000000000000000000000000000000000000000000000000000000000003 | 0x0000000000000000000000000000000000000000000000000000000000000000 |
0x0000000000000000000000000000000000000000000000000000000000000004 | 0x0000000000000000000000000000000000000000000000000000000000000000 |
Balances ($0.00)
No balances found for "TornPowerIndexConnector"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "TornPowerIndexConnector"
ABI
ABI objects
Getter at block 21229601 getTornPriceRatio() view returns (uint256)
DEGRADATION_COEFFICIENT() view returns (uint256)
1000000000000000000
GOVERNANCE() view returns (address)
0x5efda50f22d34f262c29268506c5fa42cb56a1ce
HUNDRED_PCT() view returns (uint256)
1000000000000000000
LOCKED_PROFIT_DEGRADATION() view returns (uint256)
46000000000000
PI_TOKEN() view returns (address)
0xa1ebc8bde2f1f87fe24f384497b6bd9ce3b14345
RATIO_CONSTANT() view returns (uint256)
10000000000000000000000000
STAKING() view returns (address)
0x2fc93484614a34f26f7970cbb94615ba109bb4bf
UNDERLYING() view returns (address)
0x77777feddddffc19ff86db637967013e6c6a116c
getPendingRewards() view returns (uint256)
4073314964079675141480709727062900517338
getUnderlyingStaked() view returns (uint256)
2984693312345136089833
Read-only
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 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)
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 _staking, address _underlying, address _piToken, address _governance)
This contract contains no fallback and receive objects.
This contract contains no error objects.