• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版7f3c6546b3ae511971e3548b17b610ffeb6bd15f (tree)
时间2020-03-25 14:51:58
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

fix mov enginej

更改概述

差异

--- a/application/mov/match/engine.go
+++ b/application/mov/match/engine.go
@@ -130,10 +130,9 @@ func addMatchTxOutput(txData *types.TxData, orders []*common.Order, receivedAmou
130130 return err
131131 }
132132
133- requestAmount := CalcRequestAmount(order.Utxo.Amount, contractArgs.RatioNumerator, contractArgs.RatioDenominator)
134133 receivedAmount := receivedAmounts[i].Amount
135134 shouldPayAmount := calcShouldPayAmount(receivedAmount, contractArgs.RatioNumerator, contractArgs.RatioDenominator)
136- isPartialTrade := requestAmount > receivedAmount
135+ isPartialTrade := order.Utxo.Amount > shouldPayAmount
137136
138137 setMatchTxArguments(txData.Inputs[i], isPartialTrade, len(txData.Outputs), receivedAmounts[i].Amount)
139138 txData.Outputs = append(txData.Outputs, types.NewIntraChainOutput(*order.ToAssetID, deductFeeReceives[i].Amount, contractArgs.SellerProgram))
Show on old repository browser