Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in documentation and code #1245

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion defi/Perpetual-V1/contracts/AMM.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down
4 changes: 2 additions & 2 deletions defi/Perpetual-V2/subgraph/Mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 同样分为两部分
Loading