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
if (request.getTradeProtocolVersion() != TradeProtocolVersion.MULTISIG_2_3) thrownewRuntimeException("Trade protocol version is not supported"); // TODO: check if contained in supported versions
@@ -98,6 +99,7 @@ else if (trade instanceof ArbitratorTrade) {
@@ -116,6 +118,7 @@ else if (sender == trade.getTaker()) {
116
118
if (!trade.getTaker().getPubKeyRing().equals(request.getTakerPubKeyRing())) thrownewRuntimeException("Taker's pub key ring does not match request's pub key ring");
117
119
if (request.getTradeAmount() != trade.getAmount().longValueExact()) thrownewRuntimeException("Trade amount does not match request's trade amount");
118
120
if (request.getTradePrice() != trade.getPrice().getValue()) thrownewRuntimeException("Trade price does not match request's trade price");
121
+
if (request.getCurrentDate() != trade.getTakeOfferDate().getTime()) thrownewRuntimeException("Trade's take offer date does not match request's current date");
119
122
}
120
123
121
124
// handle invalid sender
@@ -134,6 +137,7 @@ else if (trade instanceof TakerTrade) {
0 commit comments