errAmountOfFeeGreaterThanMaximum = errors.New("amount of fee greater than max fee amount")
errAssetIDMustUniqueInMatchedTx = errors.New("asset id must unique in matched transaction")
errRatioOfTradeLessThanZero = errors.New("ratio arguments must greater than zero")
- errNumeratorOfRatioIsOverflow = errors.New("ratio numerator of contract args product input amount is overflow")
errLengthOfInputIsIncorrect = errors.New("length of matched tx input is not equals to actual matched tx input")
errSpendOutputIDIsIncorrect = errors.New("spend output id of matched tx is not equals to actual matched tx")
errRequestAmountMath = errors.New("request amount of order less than one or big than max of int64")
return err
}
+ if *order.FromAssetID == *order.ToAssetID {
+ return errInvalidTradePairs
+ }
+
fromAssetIDMap[order.FromAssetID.String()] = true
toAssetIDMap[order.ToAssetID.String()] = true
}