Get reserve

Get reserve on SynFutures

Base
Base

Reads onchain state

Reads how much of a token a trader holds in SynFutures' Gate on Base, at the block the plug runs. The Gate's reserveOf answers in the token's own decimals: the margin deposited or returned to the trader and not posted in any position, order or range, which a withdrawal can take out and a trade, an order or a range draws first. Reach for it to withdraw what a closed position returned, or to size the next trade's margin from what the reserve already holds.

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 SynFutures · 13