fix: Preclaim XRP reserve overestimate for sponsored checks #6899

This commit is contained in:
tequ
2026-04-21 17:25:33 +09:00
parent 773acf0af7
commit 278e25d8ad

View File

@@ -150,7 +150,7 @@ CheckCash::preclaim(PreclaimContext const& ctx)
// once the check is cashed, since the check's reserve will no
// longer be required. So, if we're dealing in XRP, we add one
// reserve's worth to the available funds.
if (value.native())
if (value.native() && !sleCheck->isFieldPresent(sfSponsor))
availableFunds += XRPAmount{ctx.view.fees().increment};
if (value > availableFunds)