MarketLensSecondary
MarketLens is a contract that is primarily used by dApps and frontends to fetch extra data from Market pools. It is non-essential to the protocol, and its existence doesn't impact the protocol in any meaningful way.
It has methods that might not have the view
modifier, hence it is suggested that all methods be called using the eth_call
rpc-method.
Methods
getMaxRedeem(address, address) -> uint
Fetches the max amount of funds that can be redeemed from a mToken
account - address of the account to check max reddemable balance
mTokenToRedeemFrom - address of the mToken to redeem balance from
returns - the maximum amount that could be redeemed in the underlying token denomination
getMaxBorrow(address, address) -> uint
Fetches the max amount of funds that can be borrowed from a mToken
account - address of the account to check max borrowable balance
mTokenToBorrowFrom - address of the mToken to borrow from
returns - the maximum amount that could be borrowed from the pool in the underlying token denomination
Last updated