

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.
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.
More on Avantis ยท 37






































On other protocols ยท 1