Implement STAmount::getRate.

This commit is contained in:
JoelKatz
2012-08-09 16:03:00 -07:00
parent 4e99d8d7bd
commit 1aa15c62e1
2 changed files with 24 additions and 9 deletions

View File

@@ -343,6 +343,7 @@ public:
// Someone is offering X for Y, what is the rate?
static uint64 getRate(const STAmount& offerOut, const STAmount& offerIn);
static STAmount setRate(uint64 rate, const uint160& currencyOut);
// Someone is offering X for Y, I try to pay Z, how much do I get?
// And what's left of the offer? And how much do I actually pay?