make slippage non-capped to 100% during bond purchase
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
c89da3c744
commit
12b943abf8
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.8.16",
|
"version": "0.8.17",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -72,7 +72,7 @@ export const BondModal = ({ bond, chainId, address, config, connect }) => {
|
|||||||
|
|
||||||
const setSlippage = useCallback((value) => {
|
const setSlippage = useCallback((value) => {
|
||||||
const maybeValue = parseFloat(value);
|
const maybeValue = parseFloat(value);
|
||||||
if (!maybeValue || parseFloat(value) <= 100) {
|
if (!maybeValue || parseFloat(value) >= 0) {
|
||||||
setStorageValue(chainId, address, SLIPPAGE_PREFIX, value);
|
setStorageValue(chainId, address, SLIPPAGE_PREFIX, value);
|
||||||
}
|
}
|
||||||
}, [chainId, address]);
|
}, [chainId, address]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user