Get close gas fee

Get close gas fee on Avantis

Base
Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

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

More on Avantis · 37