

Reads onchain state
Reads the fee rate an Avantis pair charges to open a position of a given size on a given side, as a fraction of the position. PairStorage's pairOpenFeeP charges the pair's maker rate when the position moves the pair's open interest toward balance between longs and shorts, and its taker rate when it moves it away. The size is in the pair's base asset. Reach for it to open only while the side a strategy takes pays the maker rate.
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





































