IFluidLendingFactory ​
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
Name | Type | Description |
---|---|---|
asset_ | address | address of the asset |
fTokenType_ | string | type 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
Name | Type | Description |
---|---|---|
token_ | address | detemrinistic address of the computed token |