-
Exchange Rate
-
-
1 {inputToken.name} = {(parseFloat(outputToken.price.slice(1)) / parseFloat(inputToken.price.slice(1))).toFixed(4)} {outputToken.name}
-
-
-
-
-
-
-
-
Current market rate including:
-
- - • Network fees
- - • Price impact
- - • DEX fees
-
-
-
-
-
+
+
+
+
+
+
-
- Price Impact
- -0.03%
-
-
- Minimum Received
-
- {(parseFloat(outputAmount) * 0.995).toFixed(4)} {outputToken.name}
-
-
-
-
-
- Best route: {inputToken.name} → USDC → {outputToken.name}
-
-
- Estimated Time
- ~2 minutes
-
-
-
-
-
+
+
+
+ Confirming Swap
+
+
+ {swapSteps.map((step, index) => (
+
+
+
+ {step.status === 'completed' ? (
+
+ ) : step.status === 'loading' ? (
+
+ ) : (
+ {step.id}
+ )}
+
+ {index < swapSteps.length - 1 && (
+
+ )}
+
+
+
{step.title}
+
+ {step.status === 'completed' ? 'Transaction confirmed' :
+ step.status === 'loading' ? 'Waiting for confirmation...' :
+ 'Waiting to start'}
+
+
+
+ ))}
+
+
+ {swapSteps.every(step => step.status === 'completed') ? (
+ setIsSwapping(false)}
+ >
+ Swap Complete
+
+ ) : (
+
+
+ Confirming Swap
+
+ )}
+
+
+
+
+