Description
packages/contracts/blend-adapter/src/lib.rs:301-304 calls b_tokens_to_usdc(shares, reserve.data.b_rate) inside withdraw() and does panic_with_error! on Err. The identical overflow condition is already tested for accrue() (accrue_returns_typed_error_on_overflow, lib.rs:738-749), but no equivalent test drives withdraw() into this same branch.
Acceptance Criteria
Description
packages/contracts/blend-adapter/src/lib.rs:301-304callsb_tokens_to_usdc(shares, reserve.data.b_rate)insidewithdraw()and doespanic_with_error!onErr. The identical overflow condition is already tested foraccrue()(accrue_returns_typed_error_on_overflow, lib.rs:738-749), but no equivalent test driveswithdraw()into this same branch.Acceptance Criteria
adapter.withdraw(...)panics with the typedOverflowerror (mirroringrefresh_panics_on_accrue_overflow's pattern, but forwithdraw).cargo test -p blend-adapterpasses.