Helpers

Git Source

Inherits:Variables, Error

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

NameTypeDescription
token_addressThe loan currency.

Returns

NameTypeDescription
<none>uint256user borrow data for token.

_checkValidAddress

Checks if the given address is valid (not equal to address(0)).

function _checkValidAddress(address value_) internal pure;

Parameters

NameTypeDescription
value_addressThe address to check..

validAddress

Ensures that the provided address is valid (not equal to address(0)).

modifier validAddress(address value_);

Parameters

NameTypeDescription
value_addressThe address to check.