Volatility Algorithm
The smart contract uses a tau-window realized-volatility update for option pricing.
Refresh Policy
Every option pricing path calls the same volatility-oracle helper. The helper owns the refresh policy:
If neither condition is true, the oracle returns the cached volatility and does not mutate the stored price, timestamp, or variance. This means quiet markets still refresh on time, while a large price shock can refresh immediately without waiting for the normal interval.
Volatility Formula
The return is:
When an update is allowed, if the elapsed time since the last update is smaller than the volatility window:
then:
When an update is allowed and the elapsed time is greater than or equal to the window:
then:
Finally:
Where:
P_tis the current oracle priceP_{t-1}is the last stored oracle priceDelta tis the elapsed time since the last volatility updatetauis the volatility windowsecondsPerYearis the protocol year length used for annualizationsigmais stored as annualized volatility
The protocol does not apply a volatility floor in this formula. Admins can still use the multisig-only volatility fix instruction for explicit operational overrides.