mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Fix error in OfferCreating taking.
This commit is contained in:
@@ -1098,7 +1098,7 @@ bool STAmount::applyOffer(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Compute fees in a rounding safe way.
|
// Compute fees in a rounding safe way.
|
||||||
STAmount saTotal = STAmount::multiply(saTakerPaid, STAmount(CURRENCY_ONE, uTakerPaysRate, -9));
|
STAmount saTotal = STAmount::multiply(saTakerGot, STAmount(CURRENCY_ONE, uOfferPaysRate, -9));
|
||||||
|
|
||||||
saOfferIssuerFee = (saTotal > saOfferFunds) ? saOfferFunds-saTakerGot : saTotal - saTakerGot;
|
saOfferIssuerFee = (saTotal > saOfferFunds) ? saOfferFunds-saTakerGot : saTotal - saTakerGot;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user