fix(SlippageSelector): cant do Swap with 100% slippage
- set the max custom limit to < 100% - add a regression test Fixes #16394
This commit is contained in:
parent
5476cde165
commit
655918a279
|
@ -120,6 +120,7 @@ Item {
|
||||||
{tag: "valid", value: 1.42, valid: true, isDefault: false},
|
{tag: "valid", value: 1.42, valid: true, isDefault: false},
|
||||||
{tag: "default", value: 0.5, valid: true, isDefault: true},
|
{tag: "default", value: 0.5, valid: true, isDefault: true},
|
||||||
{tag: "invalid", value: 111.42, valid: false, isDefault: false},
|
{tag: "invalid", value: 111.42, valid: false, isDefault: false},
|
||||||
|
{tag: "hundred", value: 100, valid: false, isDefault: false},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ Control {
|
||||||
|
|
||||||
visible: !customButton.visible
|
visible: !customButton.visible
|
||||||
minValue: 0.01
|
minValue: 0.01
|
||||||
maxValue: 100.0
|
maxValue: 99.99
|
||||||
maximumLength: 6 // 3 integral + separator + 2 decimals (e.g. "999.99")
|
maximumLength: 6 // 3 integral + separator + 2 decimals (e.g. "999.99")
|
||||||
currencySymbol: d.customSymbol
|
currencySymbol: d.customSymbol
|
||||||
onValueChanged: d.update(value)
|
onValueChanged: d.update(value)
|
||||||
|
|
Loading…
Reference in New Issue