Skip to content

Constants ​

Git Source

State Variables ​

RESERVE_CONTRACT ​

solidity
IFluidReserveContract public immutable RESERVE_CONTRACT;

LIQUIDITY ​

solidity
IFluidLiquidity public immutable LIQUIDITY;

VAULT ​

solidity
IFluidVaultT1 public immutable VAULT;

SUSDE ​

solidity
IStakedUSDe public immutable SUSDE;

BORROW_TOKEN ​

solidity
address public immutable BORROW_TOKEN;

RATE_PERCENT_MARGIN ​

sUSDe vesting yield reward rate percent margin that goes to lenders e.g. RATE_PERCENT_MARGIN = 10% then borrow rate for debt token ends up as 90% of the sUSDe yield. (in 1e2: 100% = 10_000; 1% = 100)

solidity
uint256 public immutable RATE_PERCENT_MARGIN;

MAX_REWARDS_DELAY ​

max delay in seconds for rewards update after vesting period ended, after which we assume rate is 0. e.g. 15 min

solidity
uint256 public immutable MAX_REWARDS_DELAY;

UTILIZATION_PENALTY_START ​

utilization penalty start point (in 1e2: 100% = 10_000; 1% = 100). above this, a penalty percent is applied, to incentivize deleveraging.

solidity
uint256 public immutable UTILIZATION_PENALTY_START;

UTILIZATION100_PENALTY_PERCENT ​

penalty percent target at 100%, on top of sUSDe yield rate if utilization is above UTILIZATION_PENALTY_START (in 1e2: 100% = 10_000; 1% = 100)

solidity
uint256 public immutable UTILIZATION100_PENALTY_PERCENT;

_LIQUDITY_BORROW_TOKEN_EXCHANGE_PRICES_SLOT ​

solidity
bytes32 internal immutable _LIQUDITY_BORROW_TOKEN_EXCHANGE_PRICES_SLOT;

_SUSDE_VESTING_PERIOD ​

vesting period defined as private constant on StakedUSDe contract

solidity
uint256 internal constant _SUSDE_VESTING_PERIOD = 8 hours;

X14 ​

solidity
uint256 internal constant X14 = 0x3fff;

X16 ​

solidity
uint256 internal constant X16 = 0xffff;

_MIN_MAGNIFIER ​

solidity
uint256 internal constant _MIN_MAGNIFIER = 1e4;

_MAX_MAGNIFIER ​

solidity
uint256 internal constant _MAX_MAGNIFIER = 65535;