
Avantis · Reads onchain state
Reads the most leverage an Avantis pair opens a trade at. The program reads whether the pair trades as a PnL-fee pair from PairStorage and asks pairMaxLeverage for the bound at that order type, as a multiple. Avantis' risk manager moves it as the pair's risk changes, and openTrade refuses anything above it. Reach for it to clamp an order's leverage so it lands, or to hold off opening while the bound sits below a strategy's leverage.
On other protocols · 1