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 market name #1221

Merged
merged 4 commits into from
Aug 4, 2022
Merged

Fix market name #1221

merged 4 commits into from
Aug 4, 2022

Conversation

Tburm
Copy link
Contributor

@Tburm Tburm commented Aug 2, 2022

Add the [ASSET]-PERP market name to the market object, and replace all instances to use the market info or util function.

Description

Replace all market name instances with a version created by utility function.

Related issue

  • Kwenta/kwenta-private#346

@vercel
Copy link

vercel bot commented Aug 2, 2022

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

Name Status Preview Updated
kwenta ✅ Ready (Inspect) Visit Preview Aug 4, 2022 at 5:10PM (UTC)

@Tburm Tburm requested a review from platschi August 2, 2022 22:23
@vercel vercel bot temporarily deployed to Preview August 3, 2022 16:42 Inactive
platschi
platschi previously approved these changes Aug 3, 2022
Copy link
Contributor

@koredefashokun koredefashokun 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. Just left one comment about a place where we might still need to import the getMarketName function. Was also wondering if we could maybe make the getMarketName function only take in a FuturesMarketAsset, to make sure that we don't misuse it in the future. I understand that that might lead to a number of type fixes that might be beyond the scope of this PR though.

sections/futures/ProfitCalculator/ProfitDetails.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview August 4, 2022 16:59 Inactive
@vercel vercel bot temporarily deployed to Preview August 4, 2022 17:10 Inactive
@platschi platschi merged commit e2e96f5 into dev Aug 4, 2022
@platschi platschi deleted the fix-market-name branch August 4, 2022 18:24
@KngZhi KngZhi mentioned this pull request Oct 5, 2022
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