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

Change default pair #8801

Closed
twblack88 opened this issue Feb 11, 2025 · 1 comment · Fixed by #8835
Closed

Change default pair #8801

twblack88 opened this issue Feb 11, 2025 · 1 comment · Fixed by #8835
Labels
polish Just a little love needed.

Comments

@twblack88
Copy link
Contributor

twblack88 commented Feb 11, 2025

When people come to the app the first pair is an ERC 20 swap to FOX.

we need to change this first land experience to show off the swappers capabilities. Any of these are preferable.

  • ETH<> BTC
  • USDC on ETH <> BTC
  • SOL <> BTC

is one liner?

@twblack88 twblack88 added the polish Just a little love needed. label Feb 11, 2025
@0xApotheosis
Copy link
Member

Absolutely a one-liner-ish!

diff --git a/src/state/slices/tradeInputSlice/tradeInputSlice.ts b/src/state/slices/tradeInputSlice/tradeInputSlice.ts
index 5f43ebc15d..8288f08157 100644
--- a/src/state/slices/tradeInputSlice/tradeInputSlice.ts
+++ b/src/state/slices/tradeInputSlice/tradeInputSlice.ts
@@ -1,5 +1,5 @@
 import type { PayloadAction } from '@reduxjs/toolkit'
-import { ethAssetId, foxAssetId } from '@shapeshiftoss/caip'
+import { btcAssetId, ethAssetId } from '@shapeshiftoss/caip'
 import { localAssetData } from 'lib/asset-service'

 import { defaultAsset } from '../assetsSlice/assetsSlice'
@@ -14,7 +14,7 @@ export type TradeInputState = {
 } & TradeInputBaseState

 const initialState: TradeInputState = {
-  buyAsset: localAssetData[foxAssetId] ?? defaultAsset,
+  buyAsset: localAssetData[btcAssetId] ?? defaultAsset,
   sellAsset: localAssetData[ethAssetId] ?? defaultAsset,
   sellAccountId: undefined,
   buyAccountId: undefined,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Just a little love needed.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants