SetMaxPoolPriceDeviationRate
Ask AI
SetMaxPoolPriceDeviationRate sets how far, in basis points of price, a pool's price may sit on the favorable side of its swap price limit (see SetPairPriceLimit) and still be quoted, 0 to 10000; 0 disables the check. A pool further away is ineligible without a quote: its quote or swap would walk every tick between its price and the limit, which an empty or manipulated pool far from the oracle price makes unbounded. v0 starts at 2000 (20%). Admin or governance only.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/gnoswap/order/dca" -func "SetMaxPoolPriceDeviationRate" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/order/dca" -func "SetMaxPoolPriceDeviationRate" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx