MarketBalanceLib
Author: Morpho Labs
Library used to ease market balance reads.
Functions
scaledPoolSupplyBalance
Returns the scaled pool supply balance of user
given the marketBalances
of a specific market.
function scaledPoolSupplyBalance(Types.MarketBalances storage marketBalances, address user)
internal
view
returns (uint256);
scaledP2PSupplyBalance
Returns the scaled peer-to-peer supply balance of user
given the marketBalances
of a specific market.
function scaledP2PSupplyBalance(Types.MarketBalances storage marketBalances, address user)
internal
view
returns (uint256);
scaledPoolBorrowBalance
Returns the scaled pool borrow balance of user
given the marketBalances
of a specific market.
function scaledPoolBorrowBalance(Types.MarketBalances storage marketBalances, address user)
internal
view
returns (uint256);
scaledP2PBorrowBalance
Returns the scaled peer-to-peer borrow balance of user
given the marketBalances
of a specific market.
function scaledP2PBorrowBalance(Types.MarketBalances storage marketBalances, address user)
internal
view
returns (uint256);
scaledCollateralBalance
Returns the scaled collateral balance of user
given the marketBalances
of a specific market.
function scaledCollateralBalance(Types.MarketBalances storage marketBalances, address user)
internal
view
returns (uint256);