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 resolution for scalar markets #188

Closed
saboonikhil opened this issue Oct 2, 2022 · 2 comments · Fixed by #189
Closed

Fix resolution for scalar markets #188

saboonikhil opened this issue Oct 2, 2022 · 2 comments · Fixed by #189

Comments

@saboonikhil
Copy link
Member

For scalar markets, the amount they redeem for is not relative to the price of the asset at the end of the market, but rather to the reported scalar. So, if the range of the scalar market is [x, y] and the market resolves to s inside the range (x <= s <= y), then each LONG pays (s - x)/(y - x) and SHORT pays (y - s)/(y - x)
If s < x, then SHORT pays 1 ZTG and LONG nothing, and if s > y then LONG pays 1 ZTG and SHORT pays nothing.

@Robiquet
Copy link
Member

Robiquet commented Oct 3, 2022

Is this related to whats happening with this market? https://app.zeitgeist.pm/markets/31
Seems like both asset prices have gone to zero

@saboonikhil
Copy link
Member Author

Is this related to whats happening with this market? https://app.zeitgeist.pm/markets/31 Seems like both asset prices have gone to zero

Yep, that's likely it

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 a pull request may close this issue.

2 participants