NewLimitOrderStore
Ask AI
NewLimitOrderStore wraps the domain KV store.
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.NewLimitOrderStore()"
Result
Package limit is the GnoSwap limit order realm.
Users escrow makingAmount of tokenIn for takingAmount of tokenOut before expiresAt. Authorized keepers fill orders on a whitelisted direct pool, without the router, choosing the pool fee tier and swap price limit for each fill. Partial fills leave unsold input in escrow; each fill pays the owner immediately after deducting the order's snapshotted execution fee, while enforcing the order's slippage-adjusted owner-net exchange ratio. Owners can cancel for the remaining input, and anyone can refund expired orders through bounded cleanup. Settled orders are removed from the indexes.
This package is the permanent entry point. It owns the escrow address, the KV store shared by every version, and the upgrade switch; the business logic lives in a registered implementation (impl/v0).
Files:
NewLimitOrderStore wraps the domain KV store.
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/order/limit.NewLimitOrderStore()"
Evaluate any read-only Gno expression against gno.land/r/gnoswap/order/limit, for example a function call with arguments.
// Enter an expression above