Skip to content

Commit

Permalink
fix: improve error message for slippage bound when LPing (backport #6788
Browse files Browse the repository at this point in the history
) (#6790)

* fix: improve error message for slippage bound when LPing (#6788)

* fix: improve error message for slippage bound when LPing

* updates

* changelog

(cherry picked from commit e7517c2)

# Conflicts:
#	CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Roman <[email protected]>
  • Loading branch information
mergify[bot] and p0mvn authored Oct 31, 2023
1 parent 8fa3d2d commit ee90833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Misc Improvements

* [#6788](https://github.com/osmosis-labs/osmosis/pull/6788) Improve error message when CL LP fails due to slippage bound hit.

## v20.0.0

### Features

* [#6468](https://github.com/osmosis-labs/osmosis/pull/6468) feat: remove osmo multihop discount
Expand Down
2 changes: 1 addition & 1 deletion x/concentrated-liquidity/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (e InsufficientLiquidityCreatedError) Error() string {
if !e.IsTokenZero {
tokenNum = 1
}
return fmt.Sprintf("insufficient amount of token %d created. Actual: (%s). Minimum (%s)", tokenNum, e.Actual, e.Minimum)
return fmt.Sprintf("slippage bound: insufficient amount of token %d created. Actual: (%s). Minimum estimated: (%s)", tokenNum, e.Actual, e.Minimum)
}

type NegativeLiquidityError struct {
Expand Down

0 comments on commit ee90833

Please sign in to comment.