mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-30 15:35:49 +00:00
fix bonus overflow
This commit is contained in:
@@ -1220,7 +1220,8 @@ Import::doApply()
|
|||||||
|
|
||||||
|
|
||||||
// update the ledger header
|
// update the ledger header
|
||||||
XRPAmount totalBurn = XRPAmount{(burn.xrp() + bonusAmount)};
|
XRPAmount totalBurn =
|
||||||
|
XRPAmount{(burn.xrp() + (create ? bonusAmount : beast::zero))};
|
||||||
ctx_.rawView().rawDestroyXRP(-totalBurn);
|
ctx_.rawView().rawDestroyXRP(-totalBurn);
|
||||||
|
|
||||||
return tesSUCCESS;
|
return tesSUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user