Helpers
Flashloan protocol helper methods
Functions
constructor
constructor(IFluidLiquidity liquidity_) Variables(liquidity_);
_readUserBorrowData
Reads user borrow data of currency to be lent.
function _readUserBorrowData(address token_) internal view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
token_ | address | The loan currency. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | user borrow data for token . |
_checkValidAddress
Checks if the given address is valid (not equal to address(0)).
function _checkValidAddress(address value_) internal pure;
Parameters
Name | Type | Description |
---|---|---|
value_ | address | The address to check.. |
validAddress
Ensures that the provided address is valid (not equal to address(0)).
modifier validAddress(address value_);
Parameters
Name | Type | Description |
---|---|---|
value_ | address | The address to check. |