

Reads onchain state
Reads one open Avantis limit or stop limit order as TradingStorage holds it at the block the plug runs. TradingStorage's getOpenLimitOrder returns the collateral the order escrows, its side, its leverage, its take profit and stop loss, its trigger price, its slippage and the block it was placed or last updated at. It reverts once the order has executed or been cancelled. Reach for it to decide whether to move an order's trigger, or to read an order's terms into a later step.
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




































