Skip to content

Commit 039bd86

Browse files
committed
fix liquidation
1 parent 7cd5beb commit 039bd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/liquidation/types/bitcoin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func BuildBatchTransferPsbt(utxos []*btcbridgetypes.UTXO, records []*Liquidation
8484
return nil, 0, err
8585
}
8686

87-
txOuts = append(txOuts, wire.NewTxOut(record.CollateralAmount.Amount.Int64(), pkScript))
87+
txOuts = append(txOuts, wire.NewTxOut(record.CollateralAmount.Add(record.BonusAmount).Amount.Int64(), pkScript))
8888
}
8989

9090
protocolFeeCollectorAddr, err := btcutil.DecodeAddress(protocolFeeCollector, chainCfg)

0 commit comments

Comments
 (0)