Peg Stability Module
Overview
The Peg Stability Module (PSM) gives every instance an optional, direct convertibility path between itsCoin and a reference asset (psmAsset), optionally held via an ERC‑4626 vault (psmVault). It cushions the peg, offers predictable exit liquidity, and can harvest yield if a vault is used.
Key ideas:
- Optional per instance: some instances may not enable a PSM.
- 1:1 nominal conversion (subject to decimals and a temporary buy fee) without relying on external liquidity.
- After the immutability deadline, exposure cannot increase: the buy path is disabled; the sell path remains available.
How it works
There are two flows.Sell (Coin → Asset) — before and after immutability deadline
- You send
Cointo the instance. - The instance burns your
Coinand returnspsmAssetone‑for‑one (with decimals conversion), subject to availablepsmAssetliquidity. - If a
psmVaultis configured, assets are withdrawn from the vault; otherwise they are sent directly from the instance.
Coin trades below the reference asset, arbitrageurs can buy Coin on the secondary market to sell it into the PSM and lift price back up.
Buy (Asset → Coin) — only before immutability deadline
- You send
psmAssetto the instance. - If a
psmVaultis configured, the asset is deposited; otherwise the instance holds it. - The instance mints
Cointo you, one‑for‑one (with decimals conversion), less a temporary buy fee that may apply.
Coin trades above the reference asset during the launch window, arbitrageurs can buy Coin from the PSM to sell it on the market and pull price back down.
After the immutability deadline, this buy path is disabled to prevent increasing exposure to the reference asset.
Fees and pricing
- Conversion price: nominally 1:1 against the reference asset, with precise decimals handling (e.g., 18‑dec
Coinvs 6‑decpsmAsset). - Buy fee: during the second half of the immutability window, a linear fee ramps from 0 bps to 100 bps (max 1%). The fee is deducted from
Coinout and credited to instance local reserves. Before halfway, the buy fee is 0; after the deadline, buys are disabled entirely. - Sell fee: none. (Redemption fees are separate and apply only to the redemption mechanism, not the PSM.)
Reserves and profit
freePsmAssetstracks how many reference assets back future PSM sells.- If a
psmVaultis used, or if thepsmAssetis rebasing, passive gains are periodically recognized and sent to local reserves. This accrues value to the instance operator.
Effect on free‑debt ratio and rates
- The system’s free‑debt ratio treats on‑hand PSM assets as part of exit liquidity. Internally, the ratio includes both free debt and
freePsmAssetsin the numerator. - When
freePsmAssetsgrows (e.g., users buyCoinwithpsmAssetpre‑deadline, or the vault/rebasing asset accrues profit), the free‑debt share rises. If it rises above the target band, the interest controller decays the borrow rate toward its floor. - When
freePsmAssetsis drawn down by sells, the free‑debt share falls. If it drops below the target band, the controller raises the borrow rate, nudging borrowers to switch to free debt or repay, rebuilding redemption capacity. - This coupling ensures PSM liquidity directly informs the controller about exit capacity, aligning rates with peg conditions. See Interest Rate Controller.

