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 ​
solidity
IFluidLendingResolver public immutable LENDING_RESOLVER;
Functions ​
constructor ​
solidity
constructor(address lendingResolver_);
getFTokenStakingRewardsEntireData ​
solidity
function getFTokenStakingRewardsEntireData(address reward_)
public
view
returns (FTokenStakingRewardsDetails memory r_);
getFTokensStakingRewardsEntireData ​
solidity
function getFTokensStakingRewardsEntireData(address[] memory rewards_)
public
view
returns (FTokenStakingRewardsDetails[] memory r_);
getUserRewardsData ​
solidity
function getUserRewardsData(
address user_,
address reward_,
FluidLendingResolverStructs.FTokenDetails memory fTokenDetails_
) public view returns (UserRewardDetails memory u_);
getUserAllRewardsData ​
solidity
function getUserAllRewardsData(
address user_,
address[] memory rewards_,
FluidLendingResolverStructs.FTokenDetails[] memory fTokensDetails_
) public view returns (UserRewardDetails[] memory u_);
getUserPositions ​
solidity
function getUserPositions(address user_, underlyingTokenToRewardsMap[] memory rewardsMap_)
public
view
returns (UserFTokenRewardsEntireData[] memory u_);
Errors ​
FluidStakingRewardsResolver__AddressZero ​
thrown if an input param address is zero
solidity
error FluidStakingRewardsResolver__AddressZero();
Structs ​
underlyingTokenToRewardsMap ​
solidity
struct underlyingTokenToRewardsMap {
address underlyingToken;
address rewardContract;
}