Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-07-14 14:02:06 +02:00
parent 1772754fd2
commit 7e917bb85d
1 changed files with 10 additions and 1 deletions

View File

@ -336,7 +336,16 @@ export class MangoAccount {
public getHealthContributionPerAssetUi( public getHealthContributionPerAssetUi(
group: Group, group: Group,
healthType: HealthType, healthType: HealthType,
): { asset: string; contribution: number }[] { ): {
asset: string;
contribution: number;
contributionDetails:
| {
spotUi: number;
perpMarketContributions: { market: string; contributionUi: number }[];
}
| undefined;
}[] {
const hc = HealthCache.fromMangoAccount(group, this); const hc = HealthCache.fromMangoAccount(group, this);
return hc.healthContributionPerAssetUi(group, healthType); return hc.healthContributionPerAssetUi(group, healthType);
} }