FluidStakingRewardsResolver

Fluid Lending protocol Staking Rewards (for fTokens) resolver Implements various view-only methods to give easy access to Lending protocol staked fToken rewards data.

LENDING_RESOLVER

contract IFluidLendingResolver LENDING_RESOLVER

FluidStakingRewardsResolver__AddressZero

error FluidStakingRewardsResolver__AddressZero()

thrown if an input param address is zero

constructor

constructor(address lendingResolver_) public

getFTokenStakingRewardsEntireData

function getFTokenStakingRewardsEntireData(address reward_) public view returns (struct Structs.FTokenStakingRewardsDetails r_)

getFTokensStakingRewardsEntireData

function getFTokensStakingRewardsEntireData(address[] rewards_) public view returns (struct Structs.FTokenStakingRewardsDetails[] r_)

getUserRewardsData

function getUserRewardsData(address user_, address reward_, struct Structs.FTokenDetails fTokenDetails_) public view returns (struct Structs.UserRewardDetails u_)

getUserAllRewardsData

function getUserAllRewardsData(address user_, address[] rewards_, struct Structs.FTokenDetails[] fTokensDetails_) public view returns (struct Structs.UserRewardDetails[] u_)

underlyingTokenToRewardsMap

struct underlyingTokenToRewardsMap {
  address underlyingToken;
  address rewardContract;
}

getUserPositions

function getUserPositions(address user_, struct FluidStakingRewardsResolver.underlyingTokenToRewardsMap[] rewardsMap_) public view returns (struct Structs.UserFTokenRewardsEntireData[] u_)