Skip to content

Commit

Permalink
feat: bid payback is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolly23 committed Oct 10, 2024
1 parent 62e0633 commit 16d85d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func (b *BidArgs) ToBid(builder common.Address, signer Signer) (*Bid, error) {
if err != nil {
return nil, err
}
if payBidTx.Value().Cmp(common.Big0) > 0 {
return nil, fmt.Errorf("bid packback is not allowed")
}

txs = append(txs, payBidTx)
}
Expand Down

0 comments on commit 16d85d1

Please sign in to comment.