Skip to content

Commit e7517c2

Browse files
authored
fix: improve error message for slippage bound when LPing (#6788)
* fix: improve error message for slippage bound when LPing * updates * changelog
1 parent 29529af commit e7517c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

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

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

49+
### Misc Improvements
50+
51+
* [#6788](https://github.com/osmosis-labs/osmosis/pull/6788) Improve error message when CL LP fails due to slippage bound hit.
52+
4953
## v20.0.0
5054

5155
### Features

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)