Settling Pnl moves the profit or loss from the Perp market into the USDC token balance.
The typescript reference implementation implements two possible ways:
- slow but very reliable way of settling (>60s) that works for all networks
- faster but dependent on a specialized indexer only available on for mainnet
Both methods should be available, so that the SDK always works, but always uses the best possible method.
Settling Pnl moves the profit or loss from the Perp market into the USDC token balance.
The typescript reference implementation implements two possible ways:
Both methods should be available, so that the SDK always works, but always uses the best possible method.