GetSwapFee
GetSwapFee returns the current router fee rate.
Returns:
- fee: fee rate in basis points
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/router.GetSwapFee()"
Result
Package router provides swap routing and execution across GnoSwap liquidity pools.
Router domain proxy for single-hop and multi-hop exact-in, exact-out, and dry-route operations.
Live exact-in and exact-out calls validate a deadline and the corresponding amount limit (minimum output or maximum input). DrySwapRoute is a read-only quote path with no deadline or token transfer.
The router fee is charged on output tokens. It defaults to 15 bps (0.15%) and is configurable by admin/governance from 0 through 1000 bps (0–10%); the current rate is fixed for each individual execution.
The router acts as a proxy to version-specific implementations, currently routing to v1 for all swap operations.
GetSwapFee returns the current router fee rate.
Returns:
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/router.GetSwapFee()"