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

Futures market key update #1712

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

Tburm
Copy link
Contributor

@Tburm Tburm commented Dec 2, 2022

Improve the futures refactor by using the marketKey as an index instead of the marketAsset.

Description

marketAsset -> marketKey is a "one-to-many" since we will have a V1 and V2 market with the same asset (sETH). Start migrating the UI to use the marketKey as the unique index for markets and positions.

@vercel
Copy link

vercel bot commented Dec 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kwenta ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 8:05PM (UTC)

Copy link
Contributor

@avclarke avclarke left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@platschi platschi left a comment

Choose a reason for hiding this comment

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

LGTM

@platschi platschi merged commit 440d59c into futures-refactor-part2 Dec 5, 2022
@platschi platschi deleted the futures-market-key branch December 5, 2022 15:31
platschi pushed a commit that referenced this pull request Dec 12, 2022
* Futures refactor continued

* Refactor isolated margin transfer actions

* Refactor balances

* Refactor futures data polling

* Refactor orders and cross margin settings queries

* Multicall contract updates

* get positions by account type

* fetch all positions when provider ready

* fix initial position fetch

* Simplify polling pattern

* use market keys to index (#1712)

use market keys to index

* Refactor isolated margin actions

* Move close isolated margin position to sdk and redux

* Refactor trade previews

* Fix cross margin leverage

* Improve cross margin preview speed

* Refactor trade inputs

* Fix shorts and dashboard orders count

* Futures refactor continued

* fix trade preview on position side change

* Clean up

* Update state/balances/selectors.ts

Co-authored-by: troyb.eth <me@troyb.xyz>

Co-authored-by: Troy <troy.burmeister@gmail.com>
Co-authored-by: troyb.eth <me@troyb.xyz>
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.

3 participants