block-sdk/x/auction/keeper/errors.go
Nikhil Vasan 3c6f319ff1
feat(docs): rename x/builder -> x/auction (#55)
* rename x/builder -> x/auction

* update proto / etc.

* integratino fix

---------

Co-authored-by: David Terpay <david.terpay@gmail.com>
2023-09-12 14:37:25 -04:00

13 lines
383 B
Go

package keeper
// FrontRunningError defines a custom error type for detecting front-running or sandwich attacks.
type FrontRunningError struct{}
func NewFrontRunningError() *FrontRunningError {
return &FrontRunningError{}
}
func (e FrontRunningError) Error() string {
return "bundle contains transactions signed by multiple parties; possible front-running or sandwich attack"
}