Skip to content

test(blend-adapter): add test for withdraw overflow panic branch - #680

Open
escaprt wants to merge 1 commit into
drydocs:mainfrom
escaprt:test/blend-adapter-withdraw-overflow
Open

test(blend-adapter): add test for withdraw overflow panic branch#680
escaprt wants to merge 1 commit into
drydocs:mainfrom
escaprt:test/blend-adapter-withdraw-overflow

Conversation

@escaprt

@escaprt escaprt commented Aug 31, 2026

Copy link
Copy Markdown

Description

Adds a unit test withdraw_panics_on_overflow to meridian-blend-adapter that deposits a small amount, sets the mock pool's exchange rate to i128::MAX, and verifies that calling withdraw() panics on the b_tokens_to_usdc arithmetic overflow branch (mirroring refresh_panics_on_accrue_overflow).

Closes #656

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@escaprt Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@escaprt is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Test] blend-adapter withdraw() overflow panic branch is untested

1 participant