Get pending market opens

Get pending market opens on Avantis

Base
Base

Reads onchain state

Reads how many market orders a trader has placed on an Avantis pair that a keeper has not yet filled or cancelled. TradingStorage's pendingMarketOpenCount rises when openTrade places a market order and falls when a keeper executes or cancels it, so zero means every market open the trader placed on the pair has settled one way or the other. Reach for it to wait until an order placed earlier has settled before acting on the trade it opened.

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