mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 09:46:53 +00:00
Add STAmount::isZeroAtScale() and canApplyToBrokerCover() to detect amounts that round to zero at sfCoverAvailable's precision scale, then call the guard in LoanBrokerCoverDeposit, LoanBrokerCoverWithdraw, and LoanBrokerCoverClawback preclaim. Without the guard a sub-ULP deposit, withdrawal, or clawback would silently succeed while moving no funds.