• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: コミット

Golang implemented sidechain for Bytom


コミットメタ情報

リビジョン7f3c6546b3ae511971e3548b17b610ffeb6bd15f (tree)
日時2020-03-25 14:51:58
作者shenao78 <shenao.78@163....>
コミッターshenao78

ログメッセージ

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))
旧リポジトリブラウザで表示