Skip to content

Commit ee90833

Browse files
mergify[bot]p0mvn
andauthored
fix: improve error message for slippage bound when LPing (backport #6788) (#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 <roman@osmosis.team>
1 parent 8fa3d2d commit ee90833

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242

4343
## Unreleased
4444

45+
### Misc Improvements
46+
47+
* [#6788](https://github.com/osmosis-labs/osmosis/pull/6788) Improve error message when CL LP fails due to slippage bound hit.
48+
49+
## v20.0.0
50+
4551
### Features
4652

4753
* [#6468](https://github.com/osmosis-labs/osmosis/pull/6468) feat: remove osmo multihop discount

x/concentrated-liquidity/types/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (e InsufficientLiquidityCreatedError) Error() string {
136136
if !e.IsTokenZero {
137137
tokenNum = 1
138138
}
139-
return fmt.Sprintf("insufficient amount of token %d created. Actual: (%s). Minimum (%s)", tokenNum, e.Actual, e.Minimum)
139+
return fmt.Sprintf("slippage bound: insufficient amount of token %d created. Actual: (%s). Minimum estimated: (%s)", tokenNum, e.Actual, e.Minimum)
140140
}
141141

142142
type NegativeLiquidityError struct {

0 commit comments

Comments
 (0)