Roadmap

Solana - Drift incorrect account balance

The calculation of my total Drift balance is incorrect.

The amount returned by portfolio.jup is 123.40 for the account.

It adds the position size (1.47), while it should add the unsettled PnL of that position.

From Drift:

I just claimed on Drift (and refreshed the portfolio), so unsettled should be 0.

Thanks for fixing this.