Linear Boost Controller
Last updated
Last updated
When a user stakes SDL in the SDLPool
, they can choose to lock it for a certain period of time gaining a boost depending on the duration of time they locked for. LinearBoostController
handles the boost calculations to determine how much boosted reSDL an account will receive.
Returns the maximum duration that a lock can have
Name | Type | Description |
---|---|---|
Returns the maximum boost multiplier that can be received for a lock
Name | Type | Description |
---|---|---|
Returns the amount of boosted reSDL balance received for _amount
of SDL with _lockingDuration
Sets the maximum locking duration that a lock can have
Sets the maximum boost multiplier that can be received for a lock
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
maxLockingDuration
uint256
max locking duration
maxBoost
uint256
max boost multiplier
_amount
uint256
amount of tokens to lock
_lockingDuration
uint64
duration of the locking period
boostAmount
uint256
amount of boost balance received in addition to the unboosted balance
_maxLockingDuration
uint64
max locking duration in seconds
_maxBoost
uint64
max boost multiplier