From 72caa2c08b45d9a3f8a1271bf9bbc983f23c9e3d Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Mon, 17 Nov 2025 14:01:57 -0700 Subject: [PATCH 1/2] feat: better comments on user --- sdk/src/user.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/src/user.ts b/sdk/src/user.ts index 043ac27a3..03d48a081 100644 --- a/sdk/src/user.ts +++ b/sdk/src/user.ts @@ -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( From 9b662b359522546af799046e6bb1005d3019661f Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Mon, 17 Nov 2025 14:03:14 -0700 Subject: [PATCH 2/2] fix: formatting --- sdk/src/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/user.ts b/sdk/src/user.ts index 03d48a081..0296dd63e 100644 --- a/sdk/src/user.ts +++ b/sdk/src/user.ts @@ -4260,7 +4260,7 @@ export class User { } /** - * Compute the full margin calculation for the user's account. + * 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. */