keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

Allow an initial deposit address to be given via query string. #378

Closed miracle2k closed 3 years ago

miracle2k commented 3 years ago

This allows the start the redemption flow with a deposit address already prefilled, for example:

http://localhost:3001/redeem/?deposit=0xecfdabdd933799e524e5e21c6672213a1f22e9dd

This would enable third party websites & explorer to link to the redemption flow for deposits they know are redeemable.

Pinging @mhluongo as this was his idea.

miracle2k commented 3 years ago

The url is now as you suggested, and I also added an initial validation run to the address.