HasAaveBalanceMemoizer
the memoizer works in the context of a single token and therefore should not be used across multiple tokens.
BalanceMemoizer
Parameters
constructor
contract's constructor
Parameters
addressesProvider
address
address of AAVE's address provider
overlying
Gets the overlying for the token.
Parameters
token
contract IERC20
the token.
memoizer
struct HasAaveBalanceMemoizer.BalanceMemoizer
the memoizer.
Return Values
[0]
contract IERC20
overlying for the token.
balanceOfOverlying
Gets the balance for the overlying of the token, or 0 if there is no overlying.
Parameters
token
contract IERC20
the token.
memoizer
struct HasAaveBalanceMemoizer.BalanceMemoizer
the memoizer.
Return Values
[0]
uint256
balance of the overlying, or 0 if there is no overlying.
balanceOf
Gets the balance of the token
Parameters
token
contract IERC20
the token.
memoizer
struct HasAaveBalanceMemoizer.BalanceMemoizer
the memoizer.
Return Values
[0]
uint256
balance of the token.