Skip to content

Commit

Permalink
refactor: bitcoin swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Jan 3, 2025
1 parent 34d6e0d commit 750a165
Show file tree
Hide file tree
Showing 48 changed files with 1,128 additions and 805 deletions.
17 changes: 6 additions & 11 deletions src/app/pages/home/components/account-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,17 @@ export function AccountActions() {
icon={<ArrowsRepeatLeftRightIcon />}
label="Swap"
onClick={() =>
navigate(RouteUrls.Swap.replace(':base', 'STX').replace(':quote', ''))
navigate(
RouteUrls.Swap.replace(':origin', 'stacks')
.replace(':base', 'STX')
.replace(':quote', '')
)
}
/>
</Box>
</BasicTooltip>
),
// Temporary for sBTC testing
[ChainID.Testnet]: (
<IconButton
data-testid={HomePageSelectors.SwapBtn}
disabled={swapsBtnDisabled}
icon={<ArrowsRepeatLeftRightIcon />}
label="Swap"
onClick={() => navigate(RouteUrls.Swap.replace(':base', 'STX').replace(':quote', ''))}
/>
),
[ChainID.Testnet]: null,
})}
</Flex>
);
Expand Down
284 changes: 0 additions & 284 deletions src/app/pages/swap/bitflow-swap-container.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions src/app/pages/swap/bitflow-swap.utils.ts

This file was deleted.

Loading

0 comments on commit 750a165

Please sign in to comment.