From 3f4a06df9fbe5e672ea9a3204fdb099732293971 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 2 Feb 2013 19:07:28 -0800 Subject: [PATCH] Fix pays vs get for order book base generation. --- src/cpp/ripple/OrderBook.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpp/ripple/OrderBook.cpp b/src/cpp/ripple/OrderBook.cpp index 2cf716257..d140c8ce7 100644 --- a/src/cpp/ripple/OrderBook.cpp +++ b/src/cpp/ripple/OrderBook.cpp @@ -13,11 +13,11 @@ OrderBook::OrderBook(SerializedLedgerEntry::pointer ledgerEntry) const STAmount saTakerGets = ledgerEntry->getFieldAmount(sfTakerGets); const STAmount saTakerPays = ledgerEntry->getFieldAmount(sfTakerPays); - mCurrencyIn = saTakerGets.getCurrency(); - mCurrencyOut = saTakerPays.getCurrency(); - mIssuerIn = saTakerGets.getIssuer(); - mIssuerOut = saTakerPays.getIssuer(); + mCurrencyIn = saTakerPays.getCurrency(); + mCurrencyOut = saTakerGets.getCurrency(); + mIssuerIn = saTakerPays.getIssuer(); + mIssuerOut = saTakerGets.getIssuer(); - mBookBase=Ledger::getBookBase(mCurrencyOut,mIssuerOut,mCurrencyIn,mIssuerIn); + mBookBase=Ledger::getBookBase(mCurrencyIn, mIssuerIn, mCurrencyOut, mIssuerOut); } // vim:ts=4