Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sdk/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4260,7 +4260,8 @@ export class User {
}

/**
* Compute a consolidated margin snapshot once, without caching.
* Compute the full margin calculation for the user's account.
* Prioritize using this function instead of calling getMarginRequirement or getTotalCollateral multiple times.
* Consumers can use this to avoid duplicating work across separate calls.
*/
public getMarginCalculation(
Expand Down
Loading