elyseos / btcbridge

A bridge from ELYS to Bitcoin using Renproject
1 stars 0 forks source link

ELYS - BTC Bridge #1

Open elyseos opened 2 years ago

elyseos commented 2 years ago

We wish to create a 1 step bridge from the ELYS token (an ERC-20 token on the Fantom Network) to BTC (on Bitcoin network).

Later we will also want to bridge in the other direction from BTC but this Bounty is just for the swap and bridge from ELYS to Bitcoin.

This is to create a bridge to:

  1. Swap ELYS Token to FTM at ZooDEX (https://dex.zoocoin.cash/orders/market?inputCurrency=0xd89cc0d2A28a769eADeF50fFf74EBC07405DB9Fc&outputCurrency=FTM)

  2. Swap FTM (Fantom) to RenBTC at Hyperswap (https://ftm.hyperjump.app/)

  3. Bridge the RenBTC to BTC in a bitcoin wallet ( using the RenBTC tools https://renproject.io/developers)

The above DEXs (ZooDex and Hyperjump) may change at a later date so this should be an easy change to make.

UI:

  1. Should clearly outline the steps showing the user where they are in the process.

  2. Should clearly let the user know when they will be asked pay gas or to expect a metamask transaction approval. A good example of this is how Ren Bridge does its release https://bridge.renproject.io/release

  3. Should finish with a link to track the transaction on the BTC network

OPTIONAL if not too hard:

  1. Should be able to show prior to the swap an approximate rate for the swap i.e. 1000 ELYS gets 0.00001 BTC). This can be approximate (i.e if much easier it can be calculated from sources other than the actual swap contracts and bridge fees - these can be close estimates)
gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 1.5461 BNB (1003.5 USD @ $649.05/BNB) attached to it as part of the ELYSEOS fund.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 265 years from now. Please review their action plans below:

1) jajwoqpqs has applied to start work _(Funders only: approve worker | reject worker)_.

0x5D48D5Bd3EA8Fd3De859Dd897eA27b88Bd2038B9

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 265 years from now. Please review their action plans below:

1) emboyg has applied to start work _(Funders only: approve worker | reject worker)_.

What path i am going to have a good start?

Learn more on the Gitcoin Issue Details page.

enckrish commented 2 years ago

The UI is almost finished and I would now like to start testing. Please send the tokens for the same.

Also, I had a doubt regarding how I should go about swapping the tokens. I want to recommend a smart contract to do ELYS-renBTC swap in one transaction as it will reduce fees. Please let me know if it will be alright.

Here is a screenshot of the work so far: image

gitcoinbot commented 2 years ago

@enckrish Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

enckrish commented 2 years ago

@gitcoinbot work almost done. Submitting it tomorrow, if everything goes well.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 1.5461 BNB (878.94 USD @ $567.06/BNB) has been submitted by:


enckrish commented 2 years ago

@elyseos I have submitted the work. I have currently deployed it at https://elysbtc.netlify.app

elyseos commented 2 years ago

Thanks - will set be testing etc. tomorrow morning.

On Wed, Nov 17, 2021 at 11:06 AM Krishnendu Sengupta < @.***> wrote:

@elyseos https://github.com/elyseos I have submitted the work. I have currently deployed it at https://elysbtc.netlify.app

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elyseos/btcbridge/issues/1#issuecomment-971376710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDION3DAW72Z5WBZAAIJQLUMNWB5ANCNFSM5HU6S5RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

enckrish commented 2 years ago

Great. Hope you like it.

nuwrldnf8r commented 2 years ago

Just did a quick run through - looks really good and works great. Only issue is that it approves an unlimited amount of Elys rather than the amount I wanted to bridge - but I'll fix that. I'd like my colleague to play with it a bit as he's the one who funded the build and then we'll sign off asap. Tomorrow latest.

Thank you for the work. Also some good learnings for me in the way you built the front end :)

On Wed, 17 Nov 2021, 14:13 Krishnendu Sengupta, @.***> wrote:

Great. Hope you link it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elyseos/btcbridge/issues/1#issuecomment-971522321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPC7NTZ4YEE7KJPRXBZEELUMOL5BANCNFSM5HU6S5RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

enckrish commented 2 years ago

@nuwrldnf8r I am extremely happy that you liked it. Thank you.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 264 years, 10 months from now. Please review their action plans below:

1) truonghuudu88 has applied to start work _(Funders only: approve worker | reject worker)_.

Tấc cả các bước tiến hành các bước sau đây sẽ giúp bạn có thể chơi

Learn more on the Gitcoin Issue Details page.