IContinuousIndexing
Author: M^0 Labs
Functions
updateIndex
Updates the latest index and latest accrual time in storage.
Returns
Name
Type
Description
<none>
uint128
index The new stored index for computing present amounts from principal amounts.
currentIndex
The current index that would be written to storage if updateIndex
is called.
latestIndex
The latest updated index.
latestUpdateTimestamp
The latest timestamp when the index was updated.
Events
IndexUpdated
Emitted when the index is updated.
Parameters
Name
Type
Description
index
uint128
The new index.
rate
uint32
The current rate.