Skip to content

Commit

Permalink
fix: set USDC as a default buy token
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Dec 22, 2024
1 parent 52c3368 commit df4d446
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WRAPPED_NATIVE_CURRENCIES as WETH } from '@cowprotocol/common-const'
import { USDC, WRAPPED_NATIVE_CURRENCIES as WETH } from '@cowprotocol/common-const'
import { OrderKind, SupportedChainId } from '@cowprotocol/cow-sdk'

export interface TradeUrlParams {
Expand Down Expand Up @@ -30,7 +30,7 @@ export function getDefaultTradeRawState(chainId: SupportedChainId | null): Trade
return {
chainId,
inputCurrencyId: chainId ? WETH[chainId]?.symbol || null : null,
outputCurrencyId: null,
outputCurrencyId: chainId ? USDC[chainId].symbol || null : null,
recipient: null,
recipientAddress: null,
}
Expand Down

0 comments on commit df4d446

Please sign in to comment.