TheDocumentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
getClaimableInterest method on the YtPosition class calculates the amount of interest available for collection, denominated in the base token.
Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
currentIndex | number | The current SY exchange rate for the vault |
Returns
Returns anumber representing the claimable interest in raw base token units. The calculation accounts for:
- Accrued yield since the last update based on exchange rate changes
- Previously staged interest
- Protocol interest fees (deducted automatically)
- Rounding adjustments (conservative, in favor of the protocol)