make slippage non-capped to 100% during bond purchase

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2026-11-14 17:08:10 +03:00
parent c89da3c744
commit 12b943abf8
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.8.16",
"version": "0.8.17",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -72,7 +72,7 @@ export const BondModal = ({ bond, chainId, address, config, connect }) => {
const setSlippage = useCallback((value) => {
const maybeValue = parseFloat(value);
if (!maybeValue || parseFloat(value) <= 100) {
if (!maybeValue || parseFloat(value) >= 0) {
setStorageValue(chainId, address, SLIPPAGE_PREFIX, value);
}
}, [chainId, address]);