Bastion
Bastion is Aegis’s LP protection bot. It opens short futures positions when the LP price approaches or exits the range boundaries, hedging against impermanent loss exposure.
Status: Live and operational.
Strategy Legs
Section titled “Strategy Legs”Bastion uses two configurable legs, each tied to one side of the LP range:
| Leg | Trigger | Direction |
|---|---|---|
lower_short | Price exits below the LP range lower bound | Short futures |
upper_short | Price was above the range and crosses back down through P_upper, re-entering the range from above | Short futures (reentry) |
- The
lower_shortleg triggers exterior to the range — the trigger price is belowP_lowerby a buffer margin. - The
upper_shortleg triggers at reentry from above — when price was above the LP range and crosses back down throughP_upper, re-entering the range from the top.
See Strategy Parameters — Risk Params for the triggerBufferPct mechanics specific to Bastion.
Presets
Section titled “Presets”All Bastion presets use canonical identifiers from packages/shared/src/strategy-presets.ts:
| Preset | lower_short | upper_short | Description |
|---|---|---|---|
lower_protection | Enabled | Disabled | Protects only against downside exits |
full_short_protection | Enabled | Enabled | Full protection: both range boundaries |
Parameter Examples
Section titled “Parameter Examples”Example: lower_protection on ETH/USDC
| Parameter | Value |
|---|---|
| Preset | lower_protection |
| Leverage | 5x |
triggerBufferPct | 0.005 (0.5%) |
stopLossPct | 0.03 (3%) |
| Capital buffer | 20% |
Buffer take-profits (bufferTpConfig) | TP1 30%/1% · TP2 30%/2% · TP3 40%/3% |
With a triggerBufferPct of 0.5%, if P_lower = $2,000, the lower_short leg fires when price falls below $2,000 × (1 − 0.005) = $1,990.
Bastion does not accept takeProfitPct — that field is Vanguard-only. Bastion realizes profit through the buffer take-profits (bufferTpConfig, available only when the capital buffer is greater than 0%) and the escalated take-profit on the upper short (escalatedTpConfig). See Strategy Parameters — Risk Params for the take-profit mechanics.
See Strategy Parameters — Range Bounds for guidance on choosing P_lower and P_upper.
Risk Disclaimer
Section titled “Risk Disclaimer”Cross-references
Section titled “Cross-references”- Bots Overview — multi-bot concurrency model
- Strategy Parameters — Risk Params — buffer semantics for Bastion
- Strategy Parameters — Presets — full presets table
- Strategy Parameters — Range Bounds — choosing LP range bounds
- Wallet-Bot Binding — execution wallet setup