Skip to content

docs: fix price_diff_ema clamp bound#210

Open
GeorgeTsimos wants to merge 1 commit into
mainfrom
docs/fix-price-diff-ema-formula
Open

docs: fix price_diff_ema clamp bound#210
GeorgeTsimos wants to merge 1 commit into
mainfrom
docs/fix-price-diff-ema-formula

Conversation

@GeorgeTsimos
Copy link
Copy Markdown

Summary

  • Fix the price_diff_ema formula: the clamp upper bound was max_premium (dimensionless) but should be oracle_price × max_premium (in price units, consistent with the subtraction clearing_or_mid − oracle_price inside the EMA)
  • Fix the max_premium description to match: clamped to oracle_price × max_premium

Changes

doc/protocol/perpetuals.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant