horizontalsystems / unstoppable-wallet-android

A powerful non-custodial multi-wallet for Bitcoin, Ethereum, Binance Smart Chain, Avalanche, Solana and other blockchains. Non-custodial crypto and NFT storage, onchain decentralized exchange, institutional grade analytics for cryptcurrency and NFT markets, extensive privacy controls and human oriented design. Implemented on Kotlin.
https://unstoppable.money
MIT License
837 stars 357 forks source link

Is it possible to add support for ThorChain and Maya #6819

Open eloyesp opened 8 months ago

eloyesp commented 8 months ago

THORChain is a distributed swap service (like FixedFloat, but using a distributed protocol), MayaProtocol is a fork of that adds supports for other assets. Each one has a blockchain with a native token: Rune and Cacao.

Sadly, as far as I could find, there is not a single open source wallet that have support for those protocols. It would be great to have support for this on unstoppable, as it already have support for most of the blockchains that those protocols support.

The implementation requires two different steps, on one hand query for the liquidity pool addresses and rate and the other is adding support for the memo field.

My main use case for this function is the following one: I have DASH and I require to pay an invoice on USDT as a BEP20, I need to scan the receiving address, and select an amount, then the wallet should:

  1. Query for a quote for the payment.
  2. Send a dash payment with a Memo (that is in this case an OP_RETURN text value) to that address.

A secondary use case, would be adding liquidity to the pool, that requires sending to the pool address with a special memo and the same thing to withdraw from the pool but (re-)using the same sending address, that case is much harder to implement (as it requires coin control), but it is clearly a secondary use case.

Regards.

eloyesp commented 2 months ago

7227 seems related, would be nice to have some feedback here :smile: