TornPowerIndexConnector

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x069b40e9 at 14749319
Slot Value
0x0000000000000000000000000000000000000000000000000000000000000000 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000001 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000002 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000003 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000004 0x0000000000000000000000000000000000000000000000000000000000000000

No balances found for "TornPowerIndexConnector"

No transactions found for "TornPowerIndexConnector"


Functions
Getter at block 21229601
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
 
getTornPriceRatio(view returns (uint256)
getUnderlyingStaked(view returns (uint256)
2984693312345136089833
Read-only
calcTornOutByWethIn(uint256 _wethAmountview returns (uint256)
calcWethOutByTornIn(uint256 _tornAmountInview returns (uint256)
calculateLockedProfit(bytes _stakeDataview returns (uint256)
calculateLockedProfit(uint256 _lockedProfituint256 _lastRewardDistributionview returns (uint256)
forecastReward(uint256 _accRewardPerTornuint256 _accRewardRateOnLastUpdateuint256 _reinvestDurationuint256 _lastRewardsUpdateuint256 _lockedBalanceview returns (uint256)
getPendingAndForecastReward(uint256 _lastClaimRewardsAtuint256 _lastChangeStakeAtuint256 _reinvestDurationview returns (uint256 pendinguint256 forecastuint256 forecastByPending)
getTornUsedToReinvest(uint256 _gasUseduint256 _gasPriceview returns (uint256)
isClaimAvailable(bytes _claimParamsuint256 _lastClaimRewardsAtuint256 _lastChangeStakeAtview returns (bool)
packClaimParams(uint256 paybackDurationuint256 gasToReinvestpure returns (bytes)
packStakeData(uint256 lockedProfituint256 lastRewardDistributionuint256 performanceFeeDebtpure returns (bytes)
pendingReward(uint256 _accRewardPerTornuint256 _accRewardRateOnLastUpdateuint256 _lockedBalanceview returns (uint256)
unpackClaimParams(bytes _claimParamspure returns (uint256 paybackDurationuint256 gasToReinvest)
unpackStakeData(bytes _stakeDatapure returns (uint256 lockedProfituint256 lastRewardDistributionuint256 performanceFeeDebt)
State-modifying
afterPoke(uint8boolreturns (bytes)
beforePoke(bytes _pokeDatastruct IRouterConnectorDistributeData _distributeDatabool _willClaimReward
claimRewards(uint8 _statusstruct IRouterConnectorDistributeData _distributeDatareturns (bytes stakeData)
initRouter(bytes
redeem(uint256 _amountstruct IRouterConnectorDistributeDatareturns (bytes resultbool claimed)
stake(uint256 _amountstruct IRouterConnectorDistributeDatareturns (bytes resultbool claimed)
Events
DistributePerformanceFee(uint256 performanceFeeDebtBeforeuint256 performanceFeeDebtAfteruint256 underlyingBalanceuint256 performance
DistributeReward(address indexed senderuint256 totalRewarduint256 performanceFeeuint256 piTokenRewarduint256 lockedProfitBeforeuint256 lockedProfitAfter
Redeem(address indexed senderaddress indexed stakingaddress indexed underlyinguint256 amount
Redeem(address indexed senderuint256 amountuint256 rewardReceived
Stake(address indexed senderaddress indexed stakingaddress indexed underlyinguint256 amount
Stake(address indexed senderuint256 amountuint256 rewardReceived
Constructor
constructor(address _stakingaddress _underlyingaddress _piTokenaddress _governance
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.