From 063373116898065360eff21bfb60c70ca9ae1ad0 Mon Sep 17 00:00:00 2001 From: Elias Van Ootegem Date: Tue, 6 Aug 2024 16:20:37 +0100 Subject: [PATCH] feat: add AC about pegged orders and the interaction with vAMM orders Signed-off-by: Elias Van Ootegem --- protocol/0090-VAMM-automated_market_maker.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/0090-VAMM-automated_market_maker.md b/protocol/0090-VAMM-automated_market_maker.md index a73706597..ae435e536 100644 --- a/protocol/0090-VAMM-automated_market_maker.md +++ b/protocol/0090-VAMM-automated_market_maker.md @@ -337,3 +337,5 @@ At market settlement, an AMM's position will be settled alongside all others as - With an existing book consisting solely of one vAMM (at any fair price) a new vAMM entering the market at a differing base price to the existing vAMM's current price, with upper and lower bounds set such that the entire structure is separate to the existing vAMM (e.g. the incoming vAMM's lower price is greater than the existing vAMM's upper price), a trade occurs between the two AMMs leaving at least one of them at the extreme edge of their quoting range. (0090-VAMM-034) - With two vAMMs existing on the market, and no other orders, both of which have the same fair price, another counterparty placing a large buy order for a given volume, followed by a large sell order for the same volume, results in the vAMMs both taking a position and then returning to `0` position, with a balance increase equal to the maker fees received plus those for the incoming trader crossing the spread. (0090-VAMM-035) + +- With an existing book consisting solely of one vAMM, pegged orders referencing best bid/best ask remain deployed, pegged to their pegs, where the highest buy/sell vAMM order price acts as the best bid, or best ask peg respectively. (0090-VAMM-036)