LenderLens

Git Source

Functions

readBasics

function readBasics(Lender lender)
    external
    view
    returns (
        ERC20 asset,
        uint256 interestRate,
        uint256 utilization,
        uint256 inventory,
        uint256 totalBorrows,
        uint256 totalSupply,
        uint8 reserveFactor,
        uint64 rewardsRate
    );

isMaxRedeemDynamic

Indicates whether lender.maxRedeem(owner) is dynamic, i.e. whether it's changing over time or not

In most cases, lender.maxRedeem(owner) returns a static number of shares, and a standard lender.redeem call can successfully redeem everything. However, if the user has a courier or if utilization is too high, the number of shares may change block by block. In that case, to redeem the maximum value, you can pass type(uint256).max to lender.redeem.

function isMaxRedeemDynamic(Lender lender, address owner) external view returns (bool);