IFluidLendingFactory

Git Source

Inherits:IFluidLendingFactoryAdmin

Functions

allTokens

list of all created tokens

function allTokens() external view returns (address[] memory);

fTokenTypes

list of all fToken types that can be deployed

function fTokenTypes() external view returns (string[] memory);

fTokenCreationCode

returns the creation code for a certain fTokenType_

function fTokenCreationCode(string memory fTokenType_) external view returns (bytes memory);

LIQUIDITY

address of the Liquidity contract.

function LIQUIDITY() external view returns (IFluidLiquidity);

computeToken

computes deterministic token address for asset_ for a lending protocol

function computeToken(address asset_, string calldata fTokenType_) external view returns (address token_);

Parameters

NameTypeDescription
asset_addressaddress of the asset
fTokenType_stringtype of fToken: - if it's the native token, it should use NativeUnderlying - otherwise it should use fToken - could be more types available, check fTokenTypes()

Returns

NameTypeDescription
token_addressdetemrinistic address of the computed token