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

feat: btc to sbtc swap #5997

Merged
merged 1 commit into from
Dec 4, 2024
Merged

feat: btc to sbtc swap #5997

merged 1 commit into from
Dec 4, 2024

Conversation

fbwoolf
Copy link
Contributor

@fbwoolf fbwoolf commented Dec 4, 2024

Try out Leather build e66dc21Extension build, Test report, Storybook, Chromatic

This PR gets the BTC to sBTC bridge working in our swaps UI. It is a working version of adding the assets to our current swaps list. I think we can likely handle this a bit better, but I wanted to get up a draft up so we can integrate it with the deposit tx once we get it working. This is branched off that wip POC.

sbtc-draft.mov

const bitcoinMarketData = useCryptoCurrencyMarketDataMeanAverage('BTC');
return {
balance: balance.availableBalance,
currency: 'token-btc' as Currency,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
currency: 'token-btc' as Currency,
currency: 'token-btc' satisfies Currency,

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I can remove this, thx. I don't love this type bc confusing. We are using bitflow sdk and still alex for price data.

@fbwoolf fbwoolf force-pushed the feat/btc-sbtc-swap branch from 23d1e16 to e66dc21 Compare December 4, 2024 18:26
@fbwoolf fbwoolf marked this pull request as ready for review December 4, 2024 18:26
@fbwoolf fbwoolf merged commit 12b6059 into feat/display-sbtc Dec 4, 2024
19 checks passed
@fbwoolf fbwoolf deleted the feat/btc-sbtc-swap branch December 4, 2024 18:33
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.

2 participants