block-sdk/x/builder/keeper/errors.go
2023-07-03 17:01:40 +00: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"
}