Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay committed Oct 12, 2023
1 parent 504dcaa commit 6fc08ce
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions x/auction/keeper/auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ func (k Keeper) ValidateBidInfo(ctx sdk.Context, highestBid sdk.Coin, bidInfo *t
}

// Validate the timeouts of the transactions in the bundle.
if err := k.ValidateBundleTimeouts(bidInfo); err != nil {
return err
}

return nil
return k.ValidateBundleTimeouts(bidInfo)
}

// ValidateAuctionBid validates that the bidder has sufficient funds to participate in the auction and that the bid amount
Expand Down Expand Up @@ -186,8 +182,8 @@ func (k Keeper) ValidateAuctionBundle(bidder sdk.AccAddress, bundleSigners []map
}

// ValidateBundleTimeouts validates that the timeouts of the transactions in the bundle are valid. We consider
// the timeouts valid iff all of the bidders txs in the bundle are all the same and are equal to the timeout of the bid.
// This is mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles.
// the timeouts valid iff all of the bidders txs in the bundle are equal to the timeout of the bid. This is
// mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles.
func (k Keeper) ValidateBundleTimeouts(bidInfo *types.BidInfo) error {
bidder := bidInfo.Bidder.String()
bidTimeout := bidInfo.Timeout
Expand Down

0 comments on commit 6fc08ce

Please sign in to comment.