Get close gas fee
Get close gas fee

Avantis · Reads onchain state

Reads the gas fee Avantis takes from every closing trade, in stablecoin. PairStorage's minGasFees is what getGasFees charges a close, deducted from what the close pays the trader; opening a trade carries none. Reach for it to leave a close's proceeds net of the fee, or to skip closing a trade worth less than it.

Takes nothing — it reads the caller's own position.