Last updated
Last updated
Inherits: IRebaseManager, Ownable
Author: Sperax Foundation
This contract handles the configuration and execution of the rebasing mechanism for the USDs stablecoin. It ensures that rebases occur only when certain prerequisites are fulfilled, such as the time gap between rebases and acceptable APR (Annual Percentage Rate) ranges.
The Rebase Manager coordinates with the Vault and Dripper contracts to manage the rebase process.
Constructor to initialize the Rebase Manager
Parameters
Get the current amount valid for rebase
Function is called by the vault while rebasing
Returns
Updates the vault address
Parameters
Updates the dripper contract for USDs vault
Parameters
Update the minimum time gap required between two rebases
Parameters
Update the APR requirements for each rebase
Parameters
Gets the current available rebase fund
Returns
Gets the minimum and maximum rebase USDs amount based on the APR config
Returns
_vault
address
Address of the vault contract
_dripper
address
Address of the dripper contract for collecting USDs
_gap
uint256
Minimum time gap required between two consecutive rebases
_aprCap
uint256
Maximum allowed APR for a rebase
_aprBottom
uint256
Minimum allowed APR for a rebase
uint256
The available amount for rebasing USDs
_newVault
address
Address of the new vault contract
_dripper
address
Address of the new dripper contract
_gap
uint256
Updated gap time
_aprBottom
uint256
New minimum APR for a rebase
_aprCap
uint256
New maximum APR for a rebase
uint256
Current balance in the vault plus collectable dripped USDs amount
uint256
Minimum and maximum rebase amounts
uint256