Izumi limit orders use fixed-price liquidity on iZiSwap
Izumi limit orders place sell-token liquidity at a chosen price point on iZiSwap. The DL-AMM, or discretized-liquidity automated market maker, lets another trade consume that liquidity at its fixed rate. An order may fill partially, leaving both proceeds and an unsold balance. Claiming collects available proceeds, while cancellation addresses the remaining sale. The token pair, pool fee tier, and permitted price point determine where the order sits. The selected order manager also affects immediate execution and cancellation.
Updated onIn short: Cancelling an iZiSwap order addresses the unsold remainder; it does not reverse tokens that have already traded.
A partial fill leaves proceeds and an open remainder
A partial fill converts some of the sell token into the receive token while an unsold quantity remains available. Claiming proceeds does not instruct the pool to cancel the remainder. Cancellation addresses an order that no longer matches the intended sale. It targets the unfilled quantity after the manager updates its accounting. Tokens that have already traded remain in the receive asset; cancellation does not reverse that exchange. The recoverable amount follows updated balances, which can differ from an older display.
Order parameters belong to a particular pool
The selected network, token contracts, and fee tier identify the pool that an order uses. The sell direction specifies which asset the order supplies and which asset it earns. Identical token symbols do not replace those contract and network details.
| Parameter | Value supplied | Applicable constraint |
|---|---|---|
| sellAmount | The selected sell-token quantity | The ordinary SDK interface expects token base units. |
| point | The chosen discrete price point | The point must follow the selected pool's spacing. |
| fee | The fee tier selected for the pair | A different tier identifies a different pool. |
These fields describe ordinary LimitOrderManager placement. A price quote also needs an unambiguous direction: the receive-token quantity corresponding to one sell-token unit. Reversing the quoted pair changes what the same displayed number means.
When can an iZiSwap order trade immediately?
Immediate trading can occur against opposite orders at the same point or through LimitOrderWithSwapManager's swap-and-place mode. Ordinary LimitOrderManager placement can exchange tokens against an existing opposite order at the chosen point. Any remainder accepted by the pool becomes resting order liquidity.
LimitOrderWithSwapManager adds a mode that trades the immediately executable portion as a normal swap before placing the remainder. It supports an amount mode based on the sell quantity and a desire mode based on the receive quantity. The initial swap can face sandwich attacks. Its minimum-acquired parameter sets a floor for that swap's output. If the swap returns less, the transaction reverts.
A resting order can fill through a swap in its pool or an incoming opposite order at the same permitted point. A price displayed on another market does not establish that fill. Available trading flow at the point determines whether the resting quantity trades partially or completely.
Order creation separates authorization from placement
An ERC-20 sale requires sufficient spending authorization for the relevant order manager before the placement transaction can succeed.
In the Lite form, the upper selector identifies the sell token, and the lower selector identifies the receive token. The amount entry, target price, and Fee Tiers selection supply the order settings. The wallet network and token contracts need to match the intended trade.
The ADD control requests placement, which requires wallet confirmation. Token approval authorizes spending; it does not create an order.
My Orders displays order details after placement. An accepted order and a completed sale describe different states. The remaining sell quantity and available proceeds establish how much of the order still needs execution. A transaction that reverts does not create the requested order.
Price selection follows the pool's point spacing
A typed exchange rate needs conversion into the discrete price point that the pool accepts. Token decimals and token ordering affect that conversion. A limit order's point must be a multiple of the selected pool's pointDelta. An integration therefore needs the spacing from that pool, rather than a spacing copied from another market.
For ordinary LimitOrderManager placement, tokenX has the lower token contract address. Selling tokenX requires a point at or above the current point, while selling tokenY requires one at or below it. These point inequalities describe the contract's token orientation, which may differ from the pair order that a trading screen displays. The final rounded point determines the effective fixed rate.
What does claim collect from an order?
Claim collects the receive-token proceeds that the order makes available for collection. The Lite interface allows claims from partially filled orders. An available claim can therefore coexist with a remaining sale.
The ordinary manager also distinguishes earned tokens from sell tokens that a decrease has made recoverable. Its collection function accepts separate requested amounts for those balances. The transfer follows the available amounts and collection configuration, so an order's original size is not its claimable payout.
Grouped liquidity and individual accounting
iZiSwap groups orders with the same direction at the same pool point for swap execution. Individual accounting updates when an owner interacts with the order. Pool-level trading activity and an individual order's claimable proceeds therefore describe different accounting levels.
A fully consumed price point
When all orders at a point finish and price passes through, legacy accounting preserves the unclaimed proceeds. It distinguishes the completed group from orders that enter at the same point later.
A partially consumed price point
The grouped design uses first-come, first-served claims for partially completed orders. A trade against the group therefore does not establish an identical filled fraction for every order at that point.
Cancellation applies to the unsold balance
Cancellation removes the quantity that remains available for sale after the manager accounts for fills. In Lite, Cancel operates from My Orders and requires wallet confirmation. Trading before the cancellation takes effect can change the quantity that remains recoverable.
Ordinary LimitOrderManager separates decreasing the order from collecting tokens. A decrease makes the recoverable sell tokens available for collection. A multicall can decrease an order and collect its recoverable tokens within one transaction.
LimitOrderWithSwapManager exposes a cancellation function that also collects recoverable amounts for its configured recipient.
Execution costs differ between makers and takers
Resting limit-order liquidity acts as the maker, while an initial swap in swap-and-place mode consumes liquidity as a taker. The DL-AMM fee model charges pool swap fees to takers and carries no maker trading fee for ordinary resting orders. Blockchain transaction costs still apply to the operations that require transactions.
A fee tier remains an order input because it identifies the trading pool. It does not establish that the order creator pays that percentage on every resting fill. For combined execution, the initial swap incurs the applicable taker fee, while later resting fills retain their maker treatment.
One-time orders and farming positions serve different tasks
A completed limit-order exchange leaves proceeds in the receive token even if price reverses. Range liquidity can continue trading as price moves through its interval. LiquidBox incentives and iZiSwap farming concern eligible LP positions and their program rules; placing a limit order does not establish farming eligibility. The next choice concerns the open sale: keep the remainder available, collect the proceeds that are ready, or cancel the remaining quantity.
Quick answers about Izumi limit orders
Does an iZiSwap order expire when its transaction deadline passes?
The deadline on LimitOrderManager's creation call limits when that transaction can execute; it does not set an expiry for the resulting order. The contract checks the block timestamp during execution and stores the order without that deadline. An accepted order therefore does not automatically cancel because its creation deadline later passes.
When can a new limit order reuse a previous order index?
LimitOrderManager can reuse an inactive slot in the same account's order array. Its slot lookup returns the first inactive entry, or the next index when no inactive slot exists. An index therefore identifies a record within a particular account, manager, and network; it is not a globally unique trade identifier.
Is MetaMask required to sign an iZiSwap limit order?
MetaMask is not the only signing option in the SDK workflow. The examples also support other injected wallet providers and a separately signed transaction sent to the network. The signing method does not change the order's token pair, price point, or manager. The wallet or signer must control the account placing the order.
Can I fund a limit order with the chain's native token?
The SDK supports native-token funding as well as an existing wrapped-native balance. In SDK versions 1.2.* and later, the token symbol selects the form when strictERC20Token remains undefined. Versions 1.1.* and earlier use strictERC20Token explicitly: true uses the wrapped-token balance, and false provides the native token. Native funding uses transaction value instead of an ERC-20 allowance for that asset.
Will an order claim return the native asset or its wrapped token?
The collection configuration determines whether a supported chain asset arrives in native or wrapped-native form. For SDK versions 1.2.* and later, the corresponding token symbol selects the form with strictERC20Token undefined. Earlier versions use the explicit strictERC20Token setting. This affects that asset's payout form, so the wallet balance to inspect must match the requested form.
Are transfer-fee tokens supported through Box for limit orders?
The documented Box wrapper does not support limit orders. It provides a wrapping path for fee-charging tokens used in swap and liquidity-management operations. That compatibility does not extend to placing an order through the limit-order managers. A token that works through Box for a swap therefore has no established limit-order route from that fact alone.
Why can the same wallet show different limit orders on different networks?
Order records belong to the manager contract on the network where the account placed them. The SDK fetch operation specifies the chain, manager, and account together. Reusing the same wallet address on another chain therefore queries a different set of records. Matching token symbols across chains do not merge those order lists or move an existing order between them.
What units does the SDK use for a limit order's sell amount?
The SDK's sellAmount field uses integer token base units, not the decimal quantity that a wallet normally displays. The token's decimal setting determines that conversion, and decimal2Amount converts a displayed sell quantity into the required representation. Raw sell-token amounts and receive-token amounts need their respective decimal settings before they can express a meaningful exchange rate.