LockMultiplierMath

This library provides logic to compute multipliers based on how long a user locks their staked tokens (stETH). The longer the lock duration, the higher the multiplier — encouraging users to stake for longer periods and reinforcing long-term alignment with the protocol.

Read functions

getLockPeriodMultiplier

The function to calculate the lock period multiplier (power factor).

function getLockPeriodMultiplier(
  uint128 start_,
  uint128 end_
) external pure returns (uint256)
Name
Description

start_

The unix timestamp. Start calculate from this timestamp.

end_

The unix timestamp. End calculate to this timestamp.

Last updated

Was this helpful?