getClaimableEmissions method on the YtPosition class calculates the amount of emission rewards available for collection across all configured emission tokens.
Usage
Returns
Returns an array of objects, one per configured emission token:
The calculation accounts for:
- The user’s proportional SY balance (staged interest + converted YT balance)
- The difference between the global emission index and the user’s last seen index
- Previously staged emission amounts