5.1 Purpose of Market Resolution
Parallelshots markets are perpetual instruments with no expiration event. As a result, price convergence must be enforced continuously through protocol mechanics rather than terminal settlement. The funding mechanism is the primary tool used to align the perpetual market price with the external reference price over time. Market resolution is implemented as a discrete, scheduled state transition that redistributes value between counterparties based on relative pricing imbalance. Funding does not mint or destroy value; it reallocates existing margin between long and short positions.5.2 Price Inputs
Each marketm maintains the following canonical price variables:
oracle_reference_priceis computed from a bounded, weighted oracle setmark_price_from_orderbookreflects executable mid-market conditions
5.3 Funding Rate Computation (Formalized)
Funding is computed at discrete intervals defined per market.5.4 Position-Level Funding Application
For each open positioni in market m:
5.5 Creator-Defined Funding Cadence
Each market specifies a funding interval:5.6 On-Chain Execution Hook
Funding is executed atomically via a privileged protocol call:5.7 Safety Constraints
Funding execution is gated by oracle validity checks:- Funding is skipped
- Trading continues
- Liquidation logic remains active

