ExchangeTransaction validation rules
amount should be > 0 and < MaxAmount price should be > 0 and < MaxAmount buyMatcherFee should be > 0 and < MaxAmount sellMatcherFee should be > 0 and < MaxAmount fee should be > MinTransactionFee (100000 Wavelets) and < MaxAmount buyOrder should have OrderType.BUY sellOrder should have OrderType.SELL buyOrder should be valid according to Order validation rules and be not expired sellOrder should be valid according to Order validation rules and be not expired - Both
orders should have same Matcher - Both
orders should have same AssetPair price should be not worse than prices in buyOrder and sellOrder amount should not exceed amounts in buyOrder and sellOrder signature should be valid with regards to Matcher's public key. - For buy order version 3: total
buyMatcherFee on all transactions corresponding to a buy order should not exceed a matcherFee specified in the order; total sellMatcherFee on all transactions corresponding to a sell order should not exceed a matcherFee specified in the order.
For orders version 1 and 2: buyMatcherFee and sellMatcherFee should not exceed matcherFee in corresponding orders proportionally to the executed amount.