Check Your Status!

Jelly
Jelly-market
Published in
2 min readNov 15, 2019

What is the status of your swap and what does it mean?

In the previous article, we have explained the simple process of making an atomic swap with Jelly. We’ve presented all types of status that you may end up with:

“Pending”, “In Progress”, “Click to Withdraw” and “Completed” are the four types of status you are supposed to see, if everything goes as expected — the transactions are confirmed on the two blockchains, the funds are withdrawn and the atomic swap is executed.

But there are cases where you may end up with status such as “Expired”, “Failed” or “Refunded”. What do they mean?

  1. Click to Refund and Failed

As we explained in this article, the funds used in the atomic swap are time locked. This means that both entities participating in the swap have a certain amount of time to withdraw the funds. If one of the entities does not claim the funds on time, the transaction expires.

Let’s go back to our example where Alice wants to send ETH and to receive TRX. Alice sends 0,5 ETH with a transaction locked for 1 hour. In response, Jelly sends the respective amount of TRX to her with a transaction locked for 30 min.

If status “Failed” appears, it means that Jelly’s 30 minutes have expired without Alice claiming the TRX coins. In other words, Jelly had locked the respective amount of TRX coins for Alice to claim them but she didn’t do it in the required time period of 30 min. The time has expired and Alice is no longer able to withdraw them.

Then the status “Click to Refund” appears. It means that Alice’s 1 hour has expired but she didn’t withdraw the TRX coins. She didn’t act on time and the atomic swap has failed.

2. Refunded

Don’t worry — no money has been lost.

In such cases, where the Atomic Swap didn’t go through, Alice can claim a refund. After Alice’s 1 hour has expired, her assets are stored into the smart contract and she is the only one who can withdraw them. In that case Alice should see the status “Click to Refund

Alice simply hits the button Refund and the ETH coins are sent back to her wallet. Therefore, we say that Alice has been refunded. She can now initiate a new Atomic Swap.

--

--

Jelly
Jelly-market

Peer-to-Peer trades across different blockchains