• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版68ccbb40f2e375d23ea51f1931df0ff2066208ff (tree)
时间2020-03-18 18:04:44
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

opt is matched

更改概述

差异

--- a/application/mov/match/engine.go
+++ b/application/mov/match/engine.go
@@ -197,11 +197,11 @@ func IsMatched(orders []*common.Order) bool {
197197 return false
198198 }
199199
200- one := big.NewRat(1, 1)
201200 product := big.NewRat(1, 1)
202201 for _, order := range orders {
203202 product.Mul(product, big.NewRat(order.RatioNumerator, order.RatioDenominator))
204203 }
204+ one := big.NewRat(1, 1)
205205 return product.Cmp(one) <= 0
206206 }
207207
Show on old repository browser