IContinuousIndexing
Author: M^0 Labs
Functions
updateIndex
Updates the latest index and latest accrual time in storage.
Returns
Name | Type | Description |
---|---|---|
|
| 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 |
---|---|---|
|
| The new index. |
|
| The current rate. |