We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b641b79 commit 3eba332Copy full SHA for 3eba332
src/templates/otoken/utils.ts
@@ -74,10 +74,14 @@ export async function createRebaseAPY(
74
order: { timestamp: 'DESC' },
75
}))
76
if (lastRebase) {
77
+ // Hack solution if `lastYieldDistributionEvent` is missing.
78
+ // The split should be 80:20 and this is currently only seen on superOETHb.
79
+ // For any amount of yield seen we can assume we've also generated 25% of that amount as fees.
80
// (current rebasing credits / current rcpt) - (current rebasing credits / past rcpt)
81
_yield =
82
(rebaseEvent.rebasingCredits * 10n ** 18n) / rebaseEvent.rebasingCreditsPerToken -
83
(rebaseEvent.rebasingCredits * 10n ** 18n) / lastRebase.rebasingCreditsPerToken
84
+ _fee = (_yield * 25n) / 100n
85
}
86
87
0 commit comments