diff --git a/src/cpp/ripple/SerializedTypes.h b/src/cpp/ripple/SerializedTypes.h index 96306a79f2..562886bfe0 100644 --- a/src/cpp/ripple/SerializedTypes.h +++ b/src/cpp/ripple/SerializedTypes.h @@ -442,7 +442,7 @@ public: static STAmount divRound(const STAmount& v1, const STAmount& v2, const STAmount& saUnit, bool roundUp) { return divRound(v1, v2, saUnit.getCurrency(), saUnit.getIssuer(), roundUp); } static STAmount divRound(const STAmount& v1, const STAmount& v2, bool roundUp) - { return divRound(v1, v2, v2.getCurrency(), v2.getIssuer(), roundUp); } + { return divRound(v1, v2, v1.getCurrency(), v1.getIssuer(), roundUp); } // Someone is offering X for Y, what is the rate? // Rate: smaller is better, the taker wants the most out: in/out