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

feat: new mark price methodology #10295

Merged
merged 3 commits into from
Jan 9, 2024
Merged

feat: new mark price methodology #10295

merged 3 commits into from
Jan 9, 2024

Conversation

ze97286
Copy link
Contributor

@ze97286 ze97286 commented Dec 27, 2023

Closes #10294

  • implements the new mark price methodology spec
  • does not support additional oracles in governance or market framework
  • in feature tests mark price methodology defaults to existing (last trade price)
  • does not support spots
{"system-tests":"mark_price_config"}

Tests

close https://github.com/vegaprotocol/core-test-coverage/issues/529
close https://github.com/vegaprotocol/core-test-coverage/issues/531
close https://github.com/vegaprotocol/core-test-coverage/issues/545
close https://github.com/vegaprotocol/core-test-coverage/issues/547

@ze97286 ze97286 requested review from candida-d, gordsport and a team as code owners December 27, 2023 11:39
@ze97286 ze97286 force-pushed the mark_price branch 3 times, most recently from 89df4b8 to 0fe1dd4 Compare December 27, 2023 12:07
Copy link
Member

@candida-d candida-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍌

commands/proposal_submission_update_market_test.go Outdated Show resolved Hide resolved
protos/sources/vega/governance.proto Outdated Show resolved Hide resolved
@ze97286 ze97286 requested a review from a team as a code owner December 29, 2023 13:44
@ze97286 ze97286 force-pushed the mark_price branch 7 times, most recently from 084ea7c to 5d14847 Compare December 29, 2023 21:07
@ze97286 ze97286 requested a review from a team as a code owner January 2, 2024 15:37
@ze97286 ze97286 force-pushed the mark_price branch 7 times, most recently from 23355dd to 915b248 Compare January 5, 2024 20:55
@ze97286 ze97286 force-pushed the mark_price branch 4 times, most recently from 3d8c08b to 08fceb7 Compare January 8, 2024 18:22
protos/sources/vega/governance.proto Outdated Show resolved Hide resolved
protos/sources/vega/governance.proto Outdated Show resolved Hide resolved
protos/sources/vega/markets.proto Outdated Show resolved Hide resolved
Copy link
Contributor

@Jiajia-Cui Jiajia-Cui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -329,6 +334,7 @@ func (m *Market) GetState() *types.ExecMarket {
FeeSplitter: m.feeSplitter.GetState(),
SettlementData: sp,
NextMTM: m.nextMTM.UnixNano(),
NextIndexPriceCalc: m.nextIndexPriceCalc.UnixNano(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of scope, but I predict we'll be adding this to market data before too long

@ze97286 ze97286 merged commit 7cabfb3 into develop Jan 9, 2024
22 checks passed
@ze97286 ze97286 deleted the mark_price branch January 9, 2024 10:30
@gordsport gordsport added the feature new feature to be developed label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature to be developed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: New mark price methodology
6 participants