Hey everyone,
One more project for SBC in November:
Currency swap widget, competitor for https://shapeshift.io, https://changelly.com and https://flyp.me

You can find the demo here:
https://swap.apay.io/widget/demo.html
Please don't try to send money just yet, I'm running a bit late on finishing up the backend, so it's currently off.
It's easy to embed into any website:

<div class="exchange-widget" style="width: 250px; border: 1px solid #000;"></div>
<script src="https://swap.apay.io/widget/dist/exchange-widget.js"></script>
<script>
  (function() {
    var root = document.querySelector('.exchange-widget');
    new ExchangeWidget('https://swap.apay.io/widget/index.html', root);
  })()
</script>

Due to lack of liquidity in Stellar it doesn't always have competitive rates compared to changelly and others. That's why initially I tried to launch it a month ago with no profit sharing (no extra cost for users), but few people I contacted weren't really interested.
So it's chicken and egg problem, that's why I decided to incorporate profit sharing straight away. I guess it will be a better incentive for people to start placing it on their websites, which will bring more trades and improve liquidity causing better rates for users.
At the moment I'm just thinking through details of profit sharing program to minimize impact on users and incentivise websites choose my widget over changelly.

I started with XLM <-> BTC, but I will be adding LTC, ETH, BCH, ERC20 tokens and possible some Stellar assets too, like EQD, MOBI, HUG ? during next month.

Let me know what you think.
And by the way, widget is open source here.

We are looking for something like this to put in the eSACCO app, what your thoughts on making an API available.....?

    Great idea, this brings the Stellar DEX closer to the real world.

    Does it use the Papaya Anchor? How does it work internally? I imagine if you're sending XLM and expecting BTC, it will use your XLM to buy tokens of BTC from Papaya on the decentralized exchange, then send these to the Papaya Anchor, which will then turn them into real BTC and send those to your BTC address, is that correct?

      andre sure, I just need to document it. Or you can use widget directly, then you don't need to care about the API.

      fiatjaf yes, absolutely right.
      When you enter your BTC address it returns you stellar address and memo for payment. As soon as payment detected it makes federation request to Papaya anchor to get memo for BTC withdrawal, then path payment to anchor address (exchanging XLM to BTC) and once anchor receives BTC -> withdrawal to your address is processed.

      Same the other way around:
      You enter your Stellar account, it makes request to deposit endpoint to get BTC deposit address and as soon as BTC received makes path payment (BTC -> XLM) to your stellar address.

      What do we need for better rates? Arbitrators?

      market makers, basically the more people trade on Stellar - the better it becomes

      24 days later

      Does anyone want to place it to their website for testing?
      Later you can earn money with it, but meanwhile you will support liquidity on Stellar DEX by doing that.

      2 years later