Dripper
Inherits: IDripper, Ownable
Author: Sperax Foundation
This contract releases tokens at a steady rate to the Vault contract, for rebasing the USDs stablecoin.
The Dripper contract ensures that tokens are released gradually over time, allowing for consistent and controlled distribution.
State Variables
vault
dripRate
dripDuration
lastCollectTS
Functions
constructor
Constructor to initialize the Dripper.
Parameters
recoverTokens
Emergency fund recovery function.
Transfers the asset to the owner of the contract.
Parameters
addUSDs
Function to be used to send USDs to dripper and update dripRate
.
Parameters
collect
Transfers the dripped tokens to the vault.
This function also updates the dripRate based on the fund state.
Returns
updateVault
Update the vault address.
Parameters
updateDripDuration
Updates the dripDuration.
Parameters
getCollectableAmt
Gets the collectible amount of tokens at the current time.
Returns
Events
Collected
Recovered
VaultUpdated
DripDurationUpdated
USDsAdded
Errors
NothingToRecover
Last updated