Getters
Description of all getters
getAllPendingStakes() returns (DepositRequest[] memory) - returns all stakes that are ready to be finalisedgetAllPendingWithdrawals(address _user) returns (UnStakeRequest[] memory) - returns all stakes that are scheduled to be withdrawnfunction pending(
address _user,
uint256 stakeId
) returns (uint256) - returnes amount that user earned for specific stakefunction totalPending() returns (uint256) - amount that is waiting to be withdrawn on global levelfunction getUserStakesAndPendingAmounts(address user)
returns (
uint256[] memory,
uint256[] memory,
uint256[] memory
) - returnes all user stakes, pending amount for those stakes and deposit time for those stakesfunction getTotalRewardsLockedUnlocked() returns (uint256, uint256)
- returnes rewards locked and unlockedfunction getStatsForUser(
address _user
) returns (uint256, uint256, uint256) - returns totalStakedCurrently, totalEarnedForLifeTime, currentPendingAmountLast updated
Was this helpful?
