Swapping
Q Safe Wallet’s swap feature simplifies decentralized token exchanges across multiple blockchains. Here's a breakdown of how it works, using the screenshots attached as examples:
1. Swap Interface Overview
The swap screen allows you to convert one cryptocurrency into another (e.g., POL → USDC on Polygon). Key components include:
Token Selection :
Input Token : Select the token you want to spend (e.g., POL).
Output Token : Choose the token you want to receive (e.g., USDC).
Amount Input : Enter the quantity of the input token (e.g.,
0.0001 POL
).Network Selection : Specify the blockchain for the swap (e.g., Polygon).
Recipient Address : Optionally set a destination address for the received tokens.
Preview Button : Simulate the swap to view real-time rates, fees, and slippage.
2. How It Works Under the Hood
Price Aggregation : Q Safe Wallet queries decentralized exchanges (DEXs) and aggregators to find the best possible rate for your swap. For example, in the screenshot, swapping
0.0001 POL
yields0.000021 USDC
.Gas Fee Estimation : The wallet calculates the network fee (gas) required to execute the transaction.
Slippage & Risk Management :
Slippage Tolerance : The maximum acceptable price change during execution (default 0.5%).
Minimum Received : Ensures you get at least the specified amount even if prices fluctuate.
Security Checks :
Validates if you have enough funds to cover both the swap amount and gas fees .
Alerts you if funds are insufficient (as shown in the error message).
Last updated