G, the LP equitySwaps leave √(A·R) alone; only rewards, flows, gas and slashes move itswap: G =reward/add: G ↑gas/slash: G ↓ allowedelse: G ↓ loss
Per-tx guardUser flows refunded on an excess G drop; protocol steps only reportuser flows: rejectprotocol / EndBlock: reportLP units ↔ events
Migration gateStore migrations report LP-value drops; CI fails on undeclared onesSOL slash reversal −0.53%TRON slash reversal −0.16 bp
G accumulatorPoolLuvi advances each EndBlock; /pool gains five luvi_ fieldsluvi_gluvi_cluvi_starluvi_last_normalized_delta_gluvi_height
Reward checkdG must equal √(A(R+r)) − √(AR); report-onlydG matches rewardevent = paidAsgard got the RUNE
Fair LP pricingOracle-priced LP value a sandwich can't move, beside spotfair 2√(A·R·P) − S·Pspot 2R − S·R/Adeviation bps