Skip to content

After-Hours Leverage

Some Sai markets follow scheduled trading sessions. Stocks and other real-world assets can close for the day, over a weekend, or during holidays. When those markets are closed, ordinary opens and voluntary closes are blocked because Sai cannot rely on the same continuous pricing and liquidation flow.

For configured markets, Sai also applies an after-hours effective leverage cap to live positions that were carried through the latest market close.

If you hold a live position through a scheduled close, the contract may treat that position as if it has lower leverage than the leverage originally stored on the trade.

For example:

Stored trade: 100 USDC collateral at 50x leverage
After-hours cap: 5x
Effective exposure: 100 USDC collateral at 5x leverage

The cap reduces position size. It does not add collateral to the trade. The stored leverage can continue to appear on the position until the contract normalizes the trade, but risk and PnL calculations use the lower effective leverage once the after-hours rule applies.

The cap applies only when all of these are true:

  • The market is configured for after-hours leverage controls.
  • The trade is a live position, not a pending limit or stop order.
  • The trade was opened or last risk-modified before the latest market reopen.
  • The stored leverage is higher than the configured after-hours cap.

Pending limit and stop orders are not capped because they are not live exposure until they trigger into an open position.

Anyone can call the normal trigger path for a position that needs after-hours normalization. Keepers usually handle this.

When normalization runs, the contract:

  1. Checks whether the trade should be liquidated at the returned oracle price.
  2. If liquidation is not needed, reduces stored leverage to the after-hours cap.
  3. Applies the after-hours risk-trigger fee path to the position size that is removed.
  4. Updates open interest so the market reflects the smaller exposure.

This action does not reopen the market and does not let traders voluntarily exit while the market is closed. It is a risk maintenance action.

Normalization can reduce collateral because fees are charged on the exposure that is removed. If fees consume the remaining collateral, the position can be closed by the contract.

The fee-refund upgrade in Sai Perps #499 adds an after-hours fee refund when the contract actually reduces a position’s leverage. The refund is calculated from the recorded opening fee attributable to the removed share of leverage, after opening-fee discounts.

For example, reducing leverage from 10x to 2x removes 80% of it. If the remaining recorded opening fee is 10 USDC, the requested refund is 8 USDC. Sai Reserve pays all 8 USDC immediately if it has enough funds. If it has less than 8 USDC, the refund is zero. The leverage reduction still proceeds.

A paid refund goes to your USDC deposit balance, not to position collateral. The removed fee share is consumed whether paid or skipped for insufficient reserve funds. It does not accrue over time or become a claim payable when you close the position. Funding Sai Reserve later does not restore a skipped refund. Voluntary closes and liquidations do not themselves create an after-hours fee refund. This refund is separate from USDC trading credits.

Check the market’s displayed leverage limits before opening a trade. For scheduled markets, treat high leverage near market close as temporary exposure: if the position is carried across the close, the protocol can reduce the effective leverage to the configured after-hours cap.

The safest approach is to manage leverage before scheduled closes, especially on markets where price gaps can occur between sessions.