FluidStakingRewardsResolver
Inherits:Structs
Fluid Lending protocol Staking Rewards (for fTokens) resolver Implements various view-only methods to give easy access to Lending protocol staked fToken rewards data.
State Variables
LENDING_RESOLVER
IFluidLendingResolver public immutable LENDING_RESOLVER;
Functions
constructor
constructor(address lendingResolver_);
getFTokenStakingRewardsEntireData
function getFTokenStakingRewardsEntireData(address reward_)
public
view
returns (FTokenStakingRewardsDetails memory r_);
getFTokensStakingRewardsEntireData
function getFTokensStakingRewardsEntireData(address[] memory rewards_)
public
view
returns (FTokenStakingRewardsDetails[] memory r_);
getUserRewardsData
function getUserRewardsData(
address user_,
address reward_,
FluidLendingResolverStructs.FTokenDetails memory fTokenDetails_
) public view returns (UserRewardDetails memory u_);
getUserAllRewardsData
function getUserAllRewardsData(
address user_,
address[] memory rewards_,
FluidLendingResolverStructs.FTokenDetails[] memory fTokensDetails_
) public view returns (UserRewardDetails[] memory u_);
getUserPositions
function getUserPositions(address user_, underlyingTokenToRewardsMap[] memory rewardsMap_)
public
view
returns (UserFTokenRewardsEntireData[] memory u_);
Errors
FluidStakingRewardsResolver__AddressZero
thrown if an input param address is zero
error FluidStakingRewardsResolver__AddressZero();
Structs
underlyingTokenToRewardsMap
struct underlyingTokenToRewardsMap {
address underlyingToken;
address rewardContract;
}