Skip to content

Commit

Permalink
remove unused errors
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed May 15, 2023
1 parent f8756cd commit a9d0c31
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions x/superfluid/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,6 @@ func (e LockOwnerMismatchError) Error() string {
return fmt.Sprintf("lock ID %d owner %s does not match provided owner %s.", e.LockId, e.LockOwner, e.ProvidedOwner)
}

type SharesToMigrateDenomPrefixError struct {
Denom string
ExpectedDenomPrefix string
}

func (e SharesToMigrateDenomPrefixError) Error() string {
return fmt.Sprintf("shares to migrate denom %s does not have expected prefix %s.", e.Denom, e.ExpectedDenomPrefix)
}

type LockBothSuperfluidBondedAndUnbondingError struct {
LockId uint64
}

func (e LockBothSuperfluidBondedAndUnbondingError) Error() string {
return fmt.Sprintf("lock ID %d is both superfluid bonded and unbonding.", e.LockId)
}

type NegativeDurationError struct {
Duration time.Duration
}
Expand All @@ -78,23 +61,6 @@ func (e NegativeDurationError) Error() string {
return fmt.Sprintf("duration cannot be negative (%s)", e.Duration)
}

type MigrateMoreSharesThanLockHasError struct {
SharesToMigrate string
SharesInLock string
}

func (e MigrateMoreSharesThanLockHasError) Error() string {
return fmt.Sprintf("cannot migrate more shares (%s) than lock has (%s)", e.SharesToMigrate, e.SharesInLock)
}

type TwoTokenBalancerPoolError struct {
NumberOfTokens int
}

func (e TwoTokenBalancerPoolError) Error() string {
return fmt.Sprintf("balancer pool must have two tokens, got %d tokens", e.NumberOfTokens)
}

type UnexpectedDenomError struct {
ExpectedDenom string
ProvidedDenom string
Expand Down

0 comments on commit a9d0c31

Please sign in to comment.