Failed Swaps

Failed swaps return your assets while failed mints require some action.

There are two types of swaps that you can encounter while using Swift AI -- traditional swaps & mints.

Failed Mints

A mint is a type of swap that does not go through one of our liquidity pools. Currently, we have two mint options, minting XTC from ICP and minting WICP from ICP.

Both of these mints always execute at a standard rate that are not influenced by any underlying reserves like traditional swaps that go through liquidity pools.

  • Minting WICP always comes at a 1:1 ratio from ICP.

  • Minting XTC always comes at a ratio equal to price of ICP / price of 1T Cycles (If the price of ICP is $21 and the price of 1T Cycles is $1.4, then the ratio is 15 XTC : 1 ICP).

How can these mints fail?

Great question -- mints take two steps to fully execute, providing two potential points of failure:

The first step is to transfer ICP to the canister (smart contract) of the token you'd like to mint (WICP or XTC). If this transfer fails, then nothing happens and your ICP remains in your wallet. Nothing to worry about here.

The second step is to have your XTC or WICP minted by proving to the WICP or XTC canister that you've sent ICP to it to be used for minting. This is done by providing the blockheight of your ICP transfer from the first step when you ask the XTC or WICP canister to mint your new tokens. Don't worry, behind the scenes we do all of this for you when you approve your mint from Plug!

There are a few different reasons why this second step could fail -- closing your browser, an issue with an Internet Computer subnet, or the canister you're asking to mint is down, to name a few!

What do I do if my mint has failed?

There are three action points to take if your mint has failed. One of these two action points are guaranteed to solve your problem.

Action Point 1

Refresh the Swift AI app. Look to see if you have a new notification on the right hand side of your application telling you that you have unfinished or failed mints.

If so, click the "retry mint" and wait for the pending mints to mint. If you have multiple pending or failed mints, they will all automatically be minted. Your balance should now be updated accordingly.

Action Point 2

Go to your activity tab and check to see if you have a recent "ICP transfer to mint WICP / XTC" activity. If this is the case & your balances have not been updated correctly, we can manually recover the mint.

To do this, copy the number in the bottom right corner of the activity tab.

Navigate to the dropdown menu in the top right corner of the sonic app & select "Retry Minting".

Select the token for which your mint failed and paste the number (your ICP transaction blockheight) you've copied from your activity tab.

If you have multiple failed mints you will have to perform this action for each individual failed mint.

I still have missing mints.

Please ensure that you have tried both action points. Even if you have a failed mint notification, there may be some mints that have failed and not been picked up by the failed mint notification.

This can occur because of the different ways your mints can fail. If your mint fails and we are able to recover and save the block height (the number you copied and pasted in action step 2), then we provide it as part of the notification so that you are able to automatically retry without needing to get the block height yourself.

In the case that you have two failed mints, one where we could recover and save the block height and one where we could not, only attempting the first action point would only result in half of your failed mints being minted.

This scenario is rare but would require you to perform both step one and two to recover both of your failed mints.

Failed Traditional Swaps

Traditional swaps are swaps that go through one of Swift AI's liquidity pools.

When one of your traditional swaps fail, your tokens will be deposited into Swift AI under the Assets page. Only you will be able to access your assets in Swift AI, the deposited assets are tied to the account you've logged in with.

To withdraw tokens from your Assets page, click the minus button to the right of an asset.

Specify the amount of tokens you’d like to withdraw. A Plug transaction modal will pop-up for you to approve that will complete the withdrawal of tokens to your wallet in Plug.

Last updated

Was this helpful?