Skip to content

Commit 3625f3a

Browse files
authored
Update all-order-types.mdx
Protected Maker Mode section
1 parent 0aafbe4 commit 3625f3a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

pages/trading/all-order-types.mdx

+15-11
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,6 @@ For example, if you place a **Long Oracle Limit Order** on SOL-PERP with an offs
8282

8383
It's important to note that these orders can fill at any time the offset is met, so long as the account collateral is sufficient, regardless of how far the price is from what it was at the time of order placement.
8484

85-
#### Protected Maker Mode for Oracle Limits
86-
When a user's account is set to Protected Market Maker mode, tighter oracle validity checks are applied to their oracle limit orders. These orders can only be filled under the following conditions:
87-
88-
- The oracle is sufficiently valid for the AMM to execute fills.
89-
- And at least one of these criteria is met:
90-
- The oracle staleness is 0 slots, ensuring the oracle data is fully up to date.
91-
- The taker's order qualifies for instant fills against the AMM.
92-
- The taker's order has been resting for at least 10 slots, providing time for arbitrage opportunities to update the price.
93-
94-
This mode provides partial protection for resting oracle orders, enforcing on timely updates or non-arbitrage activity. Like other special user margin modes, enabling Protected Maker Mode is permissionless but has limited slot availability.
95-
9685

9786
### Order Flags
9887

@@ -103,3 +92,18 @@ Additionally, orders can include flags that specify execution parameters. The pr
10392
- **Post-Only**: Enforces that the order is a maker order that can provide liquidity to the pool for a reduced exchange fee (0%). Without this flag, orders that don't execute immediately are not post-only.
10493

10594
- **Immediate or cancel (IOC)**: An order that is placed and potentially partially filled. The remainder that is not filled immediately is then cancelled.
95+
96+
97+
### Protected Maker Mode
98+
When a user's account is set to Protected Market Maker mode, tighter oracle validity checks are applied to their limit orders. These orders can only be filled at the quoted price under the following conditions:
99+
100+
- The oracle is sufficiently valid for the AMM to execute fills.
101+
- And at least one of these criteria is met:
102+
- The oracle staleness is 0 slots, ensuring the oracle data is fully up to date.
103+
- The taker's order qualifies for instant fills against the AMM.
104+
- The taker's order has been resting for at least 10 slots, preventing latency arbitrage race against the quote price.
105+
106+
If the above is not met, the maker will automatically update their quotes an additional 10 bps in favor (e.g. lower for bids, higher for asks) vs the current price. By doing so, this mode provides partial protection for resting liqudity orders on-chain, providing the best prices only upon timely oracle updates and non-latency-arbitrage activity.
107+
108+
Like other special user margin modes, enabling Protected Maker Mode is permissionless but has limited slot availability.
109+

0 commit comments

Comments
 (0)