LendingFactoryVariables ​
Inherits: Owned, Error, IFluidLendingFactory
State Variables ​
LIQUIDITY ​
address of the Liquidity contract.
IFluidLiquidity public immutable LIQUIDITY;
_NATIVE_TOKEN_ADDRESS ​
address that is mapped to the chain native token
address internal constant _NATIVE_TOKEN_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
_auths ​
auths can update rewards related config at created fToken contracts. owner can add/remove auths. Owner is auth by default.
mapping(address => uint256) internal _auths;
_deployers ​
deployers can deploy new fTokens. owner can add/remove deployers. Owner is deployer by default.
mapping(address => uint256) internal _deployers;
_allTokens ​
list of all created tokens. Solidity creates an automatic getter only to fetch at a certain position, so explicitly define a getter that returns all.
address[] internal _allTokens;
_fTokenTypes ​
available fTokenTypes for deployment. At least EIP2612Deposits, Permit2Deposits, NativeUnderlying. Solidity creates an automatic getter only to fetch at a certain position, so explicitly define a getter that returns all.
string[] internal _fTokenTypes;
_fTokenCreationCodePointers ​
fToken creation code for each fTokenType, accessed via SSTORE2. maps keccak256(abi.encode(fTokenType)) -> SSTORE2 written creation code for the fToken contract
mapping(bytes32 => address) internal _fTokenCreationCodePointers;
Functions ​
constructor ​
constructor(IFluidLiquidity liquidity_, address owner_) Owned(owner_);
allTokens ​
list of all created tokens
function allTokens() public view returns (address[] memory);
fTokenTypes ​
list of all fToken types that can be deployed
function fTokenTypes() public view returns (string[] memory);
fTokenCreationCode ​
returns the creation code for a certain fTokenType_
function fTokenCreationCode(string memory fTokenType_) public view returns (bytes memory);