OSDN Git Service

god bless us
authorpaladz <453256728@qq.com>
Wed, 25 Mar 2020 14:49:39 +0000 (22:49 +0800)
committerpaladz <453256728@qq.com>
Wed, 25 Mar 2020 14:49:39 +0000 (22:49 +0800)
application/mov/match/engine.go

index d18fc51..17b5b6c 100644 (file)
@@ -95,7 +95,7 @@ func (e *Engine) addMatchTxFeeOutput(txData *types.TxData, fees []*bc.AssetAmoun
                }
 
                for i := 0; i < refoundCount && amount > 0; i++ {
-                       if i == refoundCount {
+                       if i == refoundCount-1 {
                                averageAmount = amount
                        }
                        txData.Outputs = append(txData.Outputs, types.NewIntraChainOutput(assetID, averageAmount, refoundScript[i]))