Skip to content

Helpers ​

Git Source

Inherits:Variables, Error

Flashloan protocol helper methods

Functions ​

constructor ​

solidity
constructor(IFluidLiquidity liquidity_) Variables(liquidity_);

_readUserBorrowData ​

Reads user borrow data of currency to be lent.

solidity
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)).

solidity
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)).

solidity
modifier validAddress(address value_);

Parameters

NameTypeDescription
value_addressThe address to check.