Skip to content

IFluidLendingStaticRateModel ​

Git Source

Functions ​

getRateV2 ​

Signed APR offset feed for static-wired fTokens. Input totalAssets_ is ignored (TVL-independent).

solidity
function getRateV2(uint256 totalAssets_)
    external
    view
    returns (int256 rate_, bool ended_, uint256 startTime_, uint256 endTime_);

Returns

NameTypeDescription
rate_int256signed APR offset with 1e12 = 1%. Positive = on top of Liquidity yield; negative = below. The fToken applies Liquidity supply yield ± this offset. Stays the configured offset even when ended_ is true so the fToken can settle accrual exactly up to endTime_.
ended_booltrue after startTime + duration (mirrors streaming getRateV2 ended semantics).
startTime_uint256accrual start time for the current rate period
endTime_uint256end time of the current rate period (startTime + duration)

getStaticConfig ​

Static-model config read. Named distinctly from legacy streaming getConfig() (7-tuple) so both can coexist on the same contract without selector / ABI-decode collisions.

solidity
function getStaticConfig()
    external
    view
    returns (int256 staticRate_, uint256 duration_, uint256 startTime_, address configurator_, uint256 maxRate_);

Returns

NameTypeDescription
staticRate_int256signed APR offset (1e12 = 1%), same value as getRateV2 while the period is current
duration_uint256duration in seconds for the current rate period
startTime_uint256when the current rate period started
configurator_addressaddress with authority to configure the static rate
maxRate_uint256hard ceiling on `