mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix calcNodeRipple to use correct rate.
This commit is contained in:
@@ -1765,7 +1765,7 @@ void RippleCalc::calcNodeRipple(
|
|||||||
// Fee.
|
// Fee.
|
||||||
cLog(lsTRACE) << boost::str(boost::format("calcNodeRipple: Fee"));
|
cLog(lsTRACE) << boost::str(boost::format("calcNodeRipple: Fee"));
|
||||||
|
|
||||||
uint64 uRate = STAmount::getRate(STAmount(uQualityIn), STAmount(uQualityOut));
|
uint64 uRate = STAmount::getRate(STAmount(uQualityOut), STAmount(uQualityIn));
|
||||||
|
|
||||||
if (!uRateMax || uRate <= uRateMax)
|
if (!uRateMax || uRate <= uRateMax)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user