Skip to content

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.


Bastion uses two configurable legs, each tied to one side of the LP range:

LegTriggerDirection
lower_shortPrice exits below the LP range lower boundShort futures
upper_shortPrice was above the range and crosses back down through P_upper, re-entering the range from aboveShort futures (reentry)
  • The lower_short leg triggers exterior to the range — the trigger price is below P_lower by a buffer margin.
  • The upper_short leg triggers at reentry from above — when price was above the LP range and crosses back down through P_upper, re-entering the range from the top.

See Strategy Parameters — Risk Params for the triggerBufferPct mechanics specific to Bastion.


All Bastion presets use canonical identifiers from packages/shared/src/strategy-presets.ts:

Presetlower_shortupper_shortDescription
lower_protectionEnabledDisabledProtects only against downside exits
full_short_protectionEnabledEnabledFull protection: both range boundaries

Example: lower_protection on ETH/USDC

ParameterValue
Presetlower_protection
Leverage5x
triggerBufferPct0.005 (0.5%)
stopLossPct0.03 (3%)
Capital buffer20%
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.