From f354f1578a5752dc89c8528ef72bc80593b199d2 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 12 Apr 2012 16:02:33 -0700 Subject: [PATCH] Missing from previous commit. --- src/SerializedTypes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SerializedTypes.h b/src/SerializedTypes.h index c9a660073..d4f23dcbc 100644 --- a/src/SerializedTypes.h +++ b/src/SerializedTypes.h @@ -231,6 +231,12 @@ public: // Someone is offering X for Y, I need Z, how much do I pay friend STAmount getNeeded(const STAmount& offerOut, const STAmount& offerIn, const STAmount& needed); + + // Native currency conversions, to/from display format + friend STAmount convertToDisplayAmount(const STAmount& internalAmount, + const STAmount& totalNow, const STAmount& totalInit); + friend STAmount convertToInternalAmount(const STAmount& displayAmount, + const STAmount& totalNow, const STAmount& totalInit); }; class STHash128 : public SerializedType