Skip to content

Commit

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

* updates

* changelog

(cherry picked from commit e7517c2)

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
p0mvn authored and mergify[bot] committed Oct 31, 2023
1 parent 8fa3d2d commit e2b713c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

<<<<<<< HEAD
=======
### State Breaks

* [#6758](https://github.com/osmosis-labs/osmosis/pull/6758) Add codec for MsgUndelegateFromRebalancedValidatorSet

### 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

>>>>>>> e7517c2c (fix: improve error message for slippage bound when LPing (#6788))
### 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 e2b713c

Please sign in to comment.