quote_safe_swap
Preview ETH→GBLIN buys or GBLIN→ETH sells without executing; get expected output, safe minOut with dynamic slippage buffer (2.5%/4% during Crash Shield), and fee breakdown.
Instructions
Preview a buy (ETH→GBLIN) or sell (GBLIN→ETH) without executing. Returns expected output, safe minOut with dynamic slippage buffer (2.5% normal / 4% during Crash Shield), and fee breakdown. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_in | Yes | Positive decimal. ETH for buy, GBLIN for sell. | |
| direction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | ||
| direction | Yes | ||
| next_step | Yes | ||
| amount_in_eth | No | Buy only. | |
| cooldown_note | No | ||
| amount_in_gblin | No | Sell only. | |
| slippage_reason | No | ||
| expected_eth_out | No | Sell only. | |
| safe_min_eth_out | No | Sell only. Pass as minEthOut. | |
| expected_gblin_out | No | Buy only. | |
| safe_min_gblin_out | No | Buy only. Pass as minOut. | |
| slippage_buffer_bps | Yes | ||
| will_revert_with_zero_tolerance | No |