Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

UTXO → Account #8

Open
17 tasks
Da-Colon opened this issue Jul 31, 2022 · 0 comments
Open
17 tasks

UTXO → Account #8

Da-Colon opened this issue Jul 31, 2022 · 0 comments
Assignees

Comments

@Da-Colon
Copy link

UTXO → Account (BTC/LTC -> ETH) Workflow (16 hours)

Gather Data ()

  • Get Exchange Rate (see how shapeshift is doing it)
  • Calculate Network Fees (outbound)
  • Slippage is set to 1% by default.
  • Calculate Available to swap = ( Balance - Network Fee) - ( Balance - NetworkFee ) / slippage ) )
  • Connect Input value to state

Execute Swap

  • Connect to a valid THORchain node
  • memo should be updated to be recognized by node operator.
  • transaction should broadcast swap on submit

Pending

  • should display ethereum transaction id when available
    • should link to etherscan transaction info
  • listener should be setup to listen for ethereum transaction complete
  • listener should be setup to listen for UTXO transaction status
  • should display UTXO transaction id when available
    • should link to blockchair transaction info

Success

  • should display as each of the pending transactions is completed
  • should show actual amount sent (depending on slippage)
  • should show actual amount received
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants