Skip to content

FluidLendingFactory ​

Git Source

Inherits:LendingFactoryDeployment

Title: Fluid LendingFactory

creates Fluid lending protocol fTokens, which are interacting with Fluid Liquidity. fTokens are ERC20 & ERC4626 compatible tokens that allow to deposit to Fluid Liquidity to earn interest. Tokens are created at a deterministic address (see computeToken()), only executable by allow-listed auths.

Note the deployed token starts out with no config at Liquidity contract. This must be done by Liquidity auths in a separate step, otherwise no deposits will be possible. This contract is not upgradeable. It supports adding new fToken creation codes for future new fToken types.

Functions ​

constructor ​

initialize liquidity contract address & owner

solidity
constructor(IFluidLiquidity liquidity_, address owner_)
    validAddress(address(liquidity_))
    validAddress(owner_)
    LendingFactoryVariables(liquidity_, owner_);