Fix type
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
1772754fd2
commit
7e917bb85d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue