HasAaveBalanceMemoizer
HasAaveBalanceMemoizerβ
the memoizer works in the context of a single token and therefore should not be used across multiple tokens.
BalanceMemoizerβ
Parametersβ
| Name | Type | Description | 
|---|
struct BalanceMemoizer {
  uint256 balanceOf;
  bool balanceOfMemoized;
  uint256 balanceOfOverlying;
  bool balanceOfOverlyingMemoized;
  contract IERC20 overlying;
  bool overlyingMemoized;
}
constructorβ
constructor(address addressesProvider) public
contract's constructor
Parametersβ
| Name | Type | Description | 
|---|---|---|
| addressesProvider | address | address of AAVE's address provider | 
overlyingβ
function overlying(contract IERC20 token, struct HasAaveBalanceMemoizer.BalanceMemoizer memoizer) internal view returns (contract IERC20)
Gets the overlying for the token.
Parametersβ
| Name | Type | Description | 
|---|---|---|
| token | contract IERC20 | the token. | 
| memoizer | struct HasAaveBalanceMemoizer.BalanceMemoizer | the memoizer. | 
Return Valuesβ
| Name | Type | Description | 
|---|---|---|
| [0] | contract IERC20 | overlying for the token. | 
balanceOfOverlyingβ
function balanceOfOverlying(contract IERC20 token, struct HasAaveBalanceMemoizer.BalanceMemoizer memoizer) internal view returns (uint256)
Gets the balance for the overlying of the token, or 0 if there is no overlying.
Parametersβ
| Name | Type | Description | 
|---|---|---|
| token | contract IERC20 | the token. | 
| memoizer | struct HasAaveBalanceMemoizer.BalanceMemoizer | the memoizer. | 
Return Valuesβ
| Name | Type | Description | 
|---|---|---|
| [0] | uint256 | balance of the overlying, or 0 if there is no overlying. | 
balanceOfβ
function balanceOf(contract IERC20 token, struct HasAaveBalanceMemoizer.BalanceMemoizer memoizer) internal view returns (uint256)
Gets the balance of the token
Parametersβ
| Name | Type | Description | 
|---|---|---|
| token | contract IERC20 | the token. | 
| memoizer | struct HasAaveBalanceMemoizer.BalanceMemoizer | the memoizer. | 
Return Valuesβ
| Name | Type | Description | 
|---|---|---|
| [0] | uint256 | balance of the token. |