Skip to content

IFluidLendingFactory ​

Git Source

Inherits:IFluidLendingFactoryAdmin

Functions ​

allTokens ​

list of all created tokens

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

fTokenTypes ​

list of all fToken types that can be deployed

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

fTokenCreationCode ​

returns the creation code for a certain fTokenType_

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

LIQUIDITY ​

address of the Liquidity contract.

solidity
function LIQUIDITY() external view returns (IFluidLiquidity);

computeToken ​

computes deterministic token address for asset_ for a lending protocol

solidity
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