From f3a8df686543296c58ca46870e0add5d3f60a1bc Mon Sep 17 00:00:00 2001 From: Niccolo Raspa Date: Wed, 7 Aug 2024 14:58:01 +0200 Subject: [PATCH 1/2] Fix typo --- contracts/sumtree-orderbook/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/sumtree-orderbook/README.md b/contracts/sumtree-orderbook/README.md index 87c9d4d..3d0ec57 100644 --- a/contracts/sumtree-orderbook/README.md +++ b/contracts/sumtree-orderbook/README.md @@ -12,7 +12,8 @@ $adjustedPrice = {price * 10^{quoteDecimals - baseDecimals}}$ For example when placing an order on a WBTC/USDC orderbook there is a difference of 2 decimal places so the calculation would be at a price of $64,000 would be: -$adjustPrice = {64000 * 10^{6 - 2}} = 64000 / 100 = 640$ +$adjustPrice = {64000 * 10^{6 - 8}} = 64000 / 100 = 640$ +$adjustPrice = {64000 * 10^{6 - 8}} = 64000 / 100 = 640$ So the order would be placed on the tick that represents the price of 640. From ad48a5003c3b5407037729ecdd3124281f2752c8 Mon Sep 17 00:00:00 2001 From: Niccolo Raspa Date: Wed, 7 Aug 2024 14:59:14 +0200 Subject: [PATCH 2/2] Fix the fix typo --- contracts/sumtree-orderbook/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/sumtree-orderbook/README.md b/contracts/sumtree-orderbook/README.md index 3d0ec57..8cfcb45 100644 --- a/contracts/sumtree-orderbook/README.md +++ b/contracts/sumtree-orderbook/README.md @@ -12,7 +12,6 @@ $adjustedPrice = {price * 10^{quoteDecimals - baseDecimals}}$ For example when placing an order on a WBTC/USDC orderbook there is a difference of 2 decimal places so the calculation would be at a price of $64,000 would be: -$adjustPrice = {64000 * 10^{6 - 8}} = 64000 / 100 = 640$ $adjustPrice = {64000 * 10^{6 - 8}} = 64000 / 100 = 640$ So the order would be placed on the tick that represents the price of 640.