Skip to content

Mango v3: settlePnl #36

@mschneider

Description

@mschneider

Settling Pnl moves the profit or loss from the Perp market into the USDC token balance.

The typescript reference implementation implements two possible ways:

  1. slow but very reliable way of settling (>60s) that works for all networks
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions