dex_calculate_slippage
Compute the minimum output amount from a DEX trade using expected amount and slippage percent, so you know the worst-case result before swapping.
Instructions
Calculate minimum output amount based on slippage tolerance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expectedAmount | Yes | Expected output amount | |
| slippagePercent | Yes | Slippage tolerance percentage (e.g., 0.5 for 0.5%) |