mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 15:58:07 +00:00
Mirrors the equivalent guard already applied to VaultWithdraw: wrap the dust check in try/catch so a sufficiently abused sfScale pushing assetsTotal/assetsAvailable out of STAmount's representable range returns tecPATH_DRY instead of surfacing as a raw overflow_error. Also address other outstanding review nits: fix VaultTransactorPrecision_test's suite module (tx -> app, matching every other Vault suite), replace the "PR 2" comment in VaultPrecisionFixture.h with a stable description, and tighten the clampToAssetsTotalScale docstring in VaultHelpers.h.