Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mango v3: settlePnl #36

Open
mschneider opened this issue May 21, 2022 · 0 comments
Open

Mango v3: settlePnl #36

mschneider opened this issue May 21, 2022 · 0 comments

Comments

@mschneider
Copy link
Owner

mschneider commented May 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant