You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIllegalArgumentException("Currency not found: " + currencyCode); // message sent to client
77
+
thrownewIllegalArgumentException("Currency not found: " + currencyCode); // TODO: do not use IllegalArgumentException as message sent to client, return undefined?
thrownewIllegalArgumentException("Price is not available externally: " + currencyCode); // TODO: return more complex Price type including price double and isExternal boolean
@@ -116,6 +117,7 @@ else if (sender == trade.getTaker()) {
116
117
if (!trade.getTaker().getPubKeyRing().equals(request.getTakerPubKeyRing())) thrownewRuntimeException("Taker's pub key ring does not match request's pub key ring");
117
118
if (request.getTradeAmount() != trade.getAmount().longValueExact()) thrownewRuntimeException("Trade amount does not match request's trade amount");
118
119
if (request.getTradePrice() != trade.getPrice().getValue()) thrownewRuntimeException("Trade price does not match request's trade price");
120
+
if (request.getCurrentDate() != trade.getTakeOfferDate().getTime()) thrownewRuntimeException("Trade's take offer date does not match request's current date");
119
121
}
120
122
121
123
// handle invalid sender
@@ -134,6 +136,7 @@ else if (trade instanceof TakerTrade) {
0 commit comments