Skip to content

Commit e2b713c

Browse files
p0mvnmergify[bot]
authored andcommitted
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
1 parent 8fa3d2d commit e2b713c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

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

4343
## Unreleased
4444

45+
<<<<<<< HEAD
46+
=======
47+
### State Breaks
48+
49+
* [#6758](https://github.com/osmosis-labs/osmosis/pull/6758) Add codec for MsgUndelegateFromRebalancedValidatorSet
50+
51+
### Misc Improvements
52+
53+
* [#6788](https://github.com/osmosis-labs/osmosis/pull/6788) Improve error message when CL LP fails due to slippage bound hit.
54+
55+
## v20.0.0
56+
57+
>>>>>>> e7517c2c (fix: improve error message for slippage bound when LPing (#6788))
4558
### Features
4659

4760
* [#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)