RebaseManager
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.
State Variables
ONE_YEAR
vault
dripper
gap
aprCap
aprBottom
lastRebaseTS
Functions
onlyVault
constructor
Constructor to initialize the Rebase Manager
Parameters
fetchRebaseAmt
Get the current amount valid for rebase
Function is called by the vault while rebasing
Returns
updateVault
Updates the vault address
Parameters
updateDripper
Updates the dripper contract for USDs vault
Parameters
updateGap
Update the minimum time gap required between two rebases
Parameters
updateAPR
Update the APR requirements for each rebase
Parameters
getAvailableRebaseAmt
Gets the current available rebase fund
Returns
getMinAndMaxRebaseAmt
Gets the minimum and maximum rebase USDs amount based on the APR config
Returns
Events
VaultUpdated
DripperUpdated
GapUpdated
APRUpdated
Errors
CallerNotVault
InvalidAPRConfig
Last updated