From 47d14d5fa3167f1f649e92b0abf2190d5d2d9dd4 Mon Sep 17 00:00:00 2001 From: Viktor Pavlik <160131789+Vikt0rPavlik@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:32:12 +0100 Subject: [PATCH 1/2] Update AMM.md --- defi/Perpetual-V1/contracts/AMM.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defi/Perpetual-V1/contracts/AMM.md b/defi/Perpetual-V1/contracts/AMM.md index 71de289ac..a0970282f 100644 --- a/defi/Perpetual-V1/contracts/AMM.md +++ b/defi/Perpetual-V1/contracts/AMM.md @@ -62,7 +62,7 @@ function swapOutput( Dir _dir, Decimal.decimal memory _baseAssetAmount, Decimal.decimal memory _quoteAssetPoolAmount, - Decimal.decima l memory _baseAssetPoolAmount + Decimal.decimal memory _baseAssetPoolAmount ) external pure returns (Decimal.decimal memory); ``` From 6d6a07f7e713f406d44674681cece9142b327534 Mon Sep 17 00:00:00 2001 From: Viktor Pavlik <160131789+Vikt0rPavlik@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:45:51 +0100 Subject: [PATCH 2/2] Update Mappings.md --- defi/Perpetual-V2/subgraph/Mappings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defi/Perpetual-V2/subgraph/Mappings.md b/defi/Perpetual-V2/subgraph/Mappings.md index ec5038ed2..c9330f775 100644 --- a/defi/Perpetual-V2/subgraph/Mappings.md +++ b/defi/Perpetual-V2/subgraph/Mappings.md @@ -82,7 +82,7 @@ CollateralAdded 事件触发 FundingUpdated 事件触发,每当 funding payment 更新时 - `daily funding rate = (markTwap - indexTwap) / indexTwap` - - ?? TWAP interal = 15 minutes, 这里直接认为是 daily ?? + - ?? TWAP interval = 15 minutes, 这里直接认为是 daily ?? ## MarketRgistry @@ -126,5 +126,5 @@ CollateralLiquidated 事件触发 1. 新建 CollateralLiquidated 对象 2. 更新 Trader 对象 - - trader‘s token balance 分为 non settlement 和 setlement 两部分 + - trader‘s token balance 分为 non settlement 和 settlement 两部分 3. 更新 Protocol 对象,其 balance 同样分为两部分