Skip to content

Commit

Permalink
Merge pull request #9 from Lorenzo-Protocol/dev
Browse files Browse the repository at this point in the history
fix:fix mint amount lg 0.5BTC
  • Loading branch information
0xajing authored Jun 13, 2024
2 parents d6beae9 + 6eb1449 commit 7f9291b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func (db *MysqlDB) GetUnhandledBtcDepositTxs(lorenzoBTCTip uint64) ([]*BtcDeposi
var txs []*BtcDepositTx
// BTC block timestamp is not strictly increasing.
err := db.db.Model(&BtcDepositTx{}).
Where("status=? AND (amount<? OR (amount<? AND height<=?) OR (amount<? AND height<=?) OR (amount<? AND height<=?))",
StatusPending, Dep0Amount, Dep1Amount, lorenzoBTCTip-1, Dep2Amount, lorenzoBTCTip-2, Dep3Amount, lorenzoBTCTip-3).
Where("status=? AND (amount<? OR (amount<? AND height<=?) OR (amount<? AND height<=?) OR (amount<? AND height<=?) OR (amount>=? AND height<=?))",
StatusPending, Dep0Amount, Dep1Amount, lorenzoBTCTip-1, Dep2Amount, lorenzoBTCTip-2, Dep3Amount, lorenzoBTCTip-3, Dep3Amount, lorenzoBTCTip-4).
Order("height ASC").Limit(BatchHandleBtcDepositTxsNum).Find(&txs).Error
if err != nil {
return nil, err
Expand Down

0 comments on commit 7f9291b

Please sign in to comment.