add reserve checks for SponsorTransfer

This commit is contained in:
tequ
2025-08-01 18:21:44 +09:00
parent abd8620c97
commit 5e65813a52
5 changed files with 137 additions and 25 deletions

View File

@@ -53,7 +53,6 @@ struct Fees
bool isAccountSponsored = false,
std::size_t sponsoringAccountCount = 0) const
{
// return reserve + ownerCount * increment;
return (isAccountSponsored ? XRPAmount(0) : reserve) +
increment *
(ownerCount + sponsoringOwnerCount - sponsoredOwnerCount) +