/
User off-chain swap

User off-chain swap

The ADA-USDT market configurations for an off-chain swap with an external exchange connection

Screenshot from 2024-06-18 13-56-56.png

Swap Base to Quote

 

  • Broker balance overview

The responsible Administrator can observe the available Broker trading balance in both ADA and USDT. Additionally, there should be support to ensure that the broker trading balance is sufficient to cover user requests.

Screenshot from 2024-06-18 14-59-12.png

 

  • Swap creation, User balance changes and swap history

There is an available User balance in both ADA and USDT before the creation of a swap.

Screenshot from 2024-06-18 15-00-46.png

 

First, there is a need to obtain a Quota, which is information about the price at which currency can be exchanged.

Screenshot from 2024-06-18 15-02-12.png

 

Then, there is a need to confirm the Quota during its lifetime of 10 seconds. After 10 seconds, the Quota will be updated with fresh data.

Screenshot from 2024-06-18 15-02-36.png

 

On the user interface (UI), the user observes a Quick Swap form with an auto-updating quote every 10 seconds and confirms the Quota by clicking on the Swap button.

Screenshot from 2024-06-18 15-00-09.png

 

After the Swap, there remains an available User balance in both ADA and USDT.

Screenshot from 2024-06-18 15-03-09.png

 

There is a Swap History for a User Query with main details for a Base to Quote off-chain swap operation:

Screenshot from 2024-06-18 15-03-48.png

 

Users can observe Swap history details on UI: Market pair, Date, Type of operation, “Send” Amount, “Receive” Amount, Rate, Status

Screenshot from 2024-06-18 15-04-43.png

 

  • Off-chain Swap Operation details in Admin Panel

Operation Details shows the Administrator expanded details of the operation: Type, Parent Operation (if applicable), Status, Amount: Input order, Output order, User, Date, Documents(transactions): links to order details Description.
Ledger Records (subsection below) displays detailed accounting data for the operations entered in system ledger records: Account number, Debit, Credit, Counterparty, Description, Created, Operation: field for special information for the operation.

Screenshot from 2024-06-18 15-09-05.png

 

  • Broker history and balance overview

The responsible Administrator can observe the main details for the Broker's Convert operation.

Screenshot from 2024-06-18 15-05-37.png

There is an available Broker trading balance in USDT after the Convert operation. The trading balance in ADA equals 0

Screenshot from 2024-06-18 15-05-09.png

 

The user received an incorrect Quota. Swap Base to Quote

 

Possible errors could include:

  • Exceeding the maximum amount limit.

Screenshot from 2024-06-18 15-17-21.png

 

  • Failing to meet the minimum amount requirement.

Screenshot from 2024-06-18 15-18-10.png

 

  • The market not being found or having enabled = false or offChainSwapEnabled = false.

Screenshot from 2024-06-18 15-24-50.png

 

  • Service error - unable to retrieve the Quota.

Screenshot from 2024-06-18 15-19-49.png
  • The low available balance for operation

Screenshot from 2024-06-18 15-22-37.png

 

Swap Quote to Base

 

  • Broker balance overview

The responsible Administrator can observe the available Broker trading balance in USDT. The trading balance in ADA equals 0. Additionally, there should be support to ensure that the broker trading balance is sufficient to cover user requests.

Screenshot from 2024-06-18 17-15-59.png

 

  • Swap creation, User balance changes, and swap history

There is an available User balance in both ADA and USDT before the creation of a swap.

Screenshot from 2024-06-18 17-18-41.png

 

First, there is a need to obtain a Quota, which is information about the price at which currency can be exchanged.

Screenshot from 2024-06-18 17-21-51.png

 

Then, there is a need to confirm the Quota during its lifetime of 10 seconds. After 10 seconds, the Quota will be updated with fresh data.

Screenshot from 2024-06-18 17-22-25.png

 

On the user interface (UI), the user observes a Quick Swap form with an auto-updating quote every 10 seconds and confirms the Quota by clicking on the Swap button.

Screenshot from 2024-06-18 17-21-04.png

 

After the Swap, there remains an available User balance in both ADA and USDT.

Screenshot from 2024-06-18 17-23-46.png

 

There is a Swap History for a User Query with main details for a Quote to Base off-chain swap operation:

Screenshot from 2024-06-18 17-24-33.png

 

Users can observe Swap history details on UI: Market pair, Date, Type of operation, “Send” Amount, “Receive” Amount, Rate, Status

Screenshot from 2024-06-18 17-25-12.png

 

  • Off-chain Swap Operation details in Admin Panel

Operation Details shows the Administrator expanded details of the operation: Type, Parent Operation (if applicable), Status, Amount: Input order, Output order, User, Date, Documents(transactions): links to order details Description.
Ledger Records (subsection below) displays detailed accounting data for the operations entered in system ledger records: Account number, Debit, Credit, Counterparty, Description, Created, Operation: field for special information for the operation.

Screenshot from 2024-06-18 17-25-59.png

 

  • Broker history and balance overview

The responsible Administrator can observe the main details for the Broker's Convert operation.

Screenshot from 2024-06-18 17-26-32.png

 

There is an available Broker trading balance and a trading locked balance in both ADA and USDT after the Convert operation.

Screenshot from 2024-06-18 17-28-12.png

 

The user received an incorrect Quota. Swap Quote to Base

 

Possible errors could include:

  • Exceeding the maximum amount limit.

Screenshot from 2024-06-18 17-29-18.png

 

  • Failing to meet the minimum amount requirement.

Screenshot from 2024-06-18 17-29-45.png

 

  • The market not being found or having enabled = false or offChainSwapEnabled = false.

Screenshot from 2024-06-18 17-30-40.png

 

  • Service error - unable to retrieve the Quota.

Screenshot from 2024-06-18 17-31-28.png

 

  • The low available balance for operation

Screenshot from 2024-06-18 17-37-43.png

 

Related content