Variables ​
Inherits: ERC20, ERC20Permit, Error, Constants
Constants ​
TOKEN_NAME_PREFIX ​
prefix for token name. fToken will append the underlying asset name
string internal constant TOKEN_NAME_PREFIX = "Fluid "TOKEN_SYMBOL_PREFIX ​
prefix for token symbol. fToken will append the underlying asset symbol
string internal constant TOKEN_SYMBOL_PREFIX = "f"State Variables ​
_rewardsRateModel ​
address of the LendingRewardsRateModel.
IFluidLendingRewardsRateModel internal _rewardsRateModel__placeholder_gap ​
uint96 private __placeholder_gap_liquidityExchangePrice ​
exchange price for the underlying assset in the liquidity protocol (without rewards)
uint64 internal _liquidityExchangePrice_tokenExchangePrice ​
exchange price between fToken and the underlying assset (with rewards)
uint64 internal _tokenExchangePrice_lastUpdateTimestamp ​
timestamp when exchange prices were updated the last time
uint40 internal _lastUpdateTimestamp_status ​
status for reentrancy guard
uint8 internal _status_rewardsActive ​
flag to signal if rewards are active without having to read slot 6
bool internal _rewardsActive_staticRateModelActive ​
flag to signal if the wired rewards rate model is a static (TVL-independent) rate model
bool internal _staticRateModelActive_rebalancer ​
rebalancer address allowed to call rebalance() and source for funding rewards (ReserveContract).
address internal _rebalancerFunctions ​
constructor ​
forwards config to Constants. ERC20 / ERC20Permit metadata is set by the concrete contract constructor so beacon-proxy implementations can use a fixed EIP-712 domain and resolve name/symbol dynamically while the standard fToken keeps deriving them from the underlying asset.
constructor(IFluidLiquidity liquidity_, IFluidLendingFactory lendingFactory_, IERC20 asset_)
Constants(liquidity_, lendingFactory_, asset_);Parameters
| Name | Type | Description |
|---|---|---|
liquidity_ | IFluidLiquidity | liquidity contract address |
lendingFactory_ | IFluidLendingFactory | lending factory contract address |
asset_ | IERC20 | underlying token address |
_checkValidAddress ​
checks that address is not the zero address, reverts if so. Calling the method in the modifier reduces bytecode size as modifiers are inlined into bytecode
function _checkValidAddress(address value_) internal pure;validAddress ​
validates that an address is not the zero address
modifier validAddress(address value_) ;