Skip to content

Commit

Permalink
feat: add WBTC to gateway (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored Jul 4, 2024
1 parent 04ea316 commit 4ba1404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainId } from '@gobob/chains';
import { TBTC } from '@gobob/tokens';
import { TBTC, WBTC } from '@gobob/tokens';
import { ArrowRight, Divider, Flex, InformationCircle, P, RadioGroup } from '@gobob/ui';
import { Key, useCallback, useMemo, useState } from 'react';

Expand Down Expand Up @@ -119,9 +119,7 @@ const BridgeForm = ({
const btcTokens = useMemo(
() =>
tokens?.filter(
(token) => token.currency.symbol === TBTC[L2_CHAIN].symbol
// TODO: enable WBTC when supported
// || token.currency.symbol === WBTC[L2_CHAIN].symbol
(token) => token.currency.symbol === TBTC[L2_CHAIN].symbol || token.currency.symbol === WBTC[L2_CHAIN].symbol
),
[tokens]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const BtcBridgeForm = ({
size='lg'
type='modal'
{...mergeProps(form.getSelectFieldProps(BRIDGE_TICKER), {
onValueChange: (value: string) => setReceiveTicker(value)
onSelectionChange: (value: string) => setReceiveTicker(value)
})}
>
{(data) => (
Expand Down

0 comments on commit 4ba1404

Please sign in to comment.