banks in which new positions might be opened
markets in which new positions might be opened
markets in which new positions might be opened (openbook v1)
markets in which new positions might be opened (openbook v2)
Note: this ix doesn't settle liabs, reduce open positions, or withdraw tokens to wallet, it simply closes the account. To close successfully ensure all positions are closed, or use forceClose flag
This function assumes that the provided group has loaded banks
Returns an estimate of a prioritization fee for a set of instructions.
The estimate is based on the median fees of writable accounts that will be involved in the transaction.
the instructions that make up the transaction
prioritizationFeeEstimate -- in microLamports
Withdraw the entire deposit balance for a token, effectively freeing the token position
Connect with defaults,
Generated using TypeDoc
Builds health remaining accounts.
For single mango account it builds a list of PublicKeys which is compatbile with Fixed account retriever.
For multiple mango accounts it uses same logic as for fixed but packing all banks, then perp markets, and then serum oo accounts, which should always be compatible with Scanning account retriever.