Skip to content

fix: prevent indexer decoder from projecting null amounts for malformed payloads - #21

Open
digivasserver-ai wants to merge 1 commit into
YieldAnchor:mainfrom
digivasserver-ai:main
Open

digivasserver-ai wants to merge 1 commit into
YieldAnchor:mainfrom
digivasserver-ai:main

Conversation

@digivasserver-ai

Copy link
Copy Markdown

Fixes BountyHub 0 TypeScript bounty

Bug: Decoder projected null amounts for malformed deposit/withdraw payloads (assets/shares null).

Fix: Validate asBigInt results not null, return null for malformed, prevents null amounts in pool_snapshots.

/claim #bountyhub

…ed payloads (fixes bounty)

- Validate assets/shares not null after asBigInt for deposit/withdraw; return null for malformed
- Fixes TypeScript null handling, prevents null amounts in pool_snapshots
- Verified with decoder tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant