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 d3a5346 commit f0863daCopy full SHA for f0863da
1 file changed
src/templates/otoken/otoken-state.ts
@@ -82,7 +82,9 @@ export const otokenStateProcessor = (params: {
82
for (const log of block.logs) {
83
if (log.address === vaultAddrLc && log.topics[0] === otokenVault.events.WithdrawalClaimable.topic) {
84
const data = otokenVault.events.WithdrawalClaimable.decode(log)
85
- await upsertVaultState(block, data._newClaimable)
+ // `_claimable` is the new cumulative pointer; `_newClaimable` is the
86
+ // delta added by this event. We snapshot the cumulative.
87
+ await upsertVaultState(block, data._claimable)
88
}
89
90
0 commit comments