From 1177213bb33edd25c647199e0d58d2adf7162ac1 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Thu, 23 Jun 2022 15:36:08 +0200 Subject: [PATCH] Fix type Signed-off-by: microwavedcola1 --- ts/client/src/accounts/mangoAccount.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ts/client/src/accounts/mangoAccount.ts b/ts/client/src/accounts/mangoAccount.ts index f83ba0140..200a0f9c2 100644 --- a/ts/client/src/accounts/mangoAccount.ts +++ b/ts/client/src/accounts/mangoAccount.ts @@ -106,8 +106,7 @@ export class MangoAccount { '\nserum:' + JSON.stringify( this.serum3.filter( - (serum3) => - serum3.marketIndex != Serum3Orders.Serum3MarketIndexUnset, + (serum3) => serum3.marketIndex != Serum3Orders.Serum3MarketIndexUnset, ), null, 4, @@ -128,7 +127,7 @@ export class TokenPosition { static TokenIndexUnset: number = 65535; static from(dto: TokenAccountDto) { return new TokenPosition( - I80F48.from(dto.indexedValue), + I80F48.from(dto.indexedPosition), dto.tokenIndex, dto.inUseCount, ); @@ -182,7 +181,7 @@ export class TokenPosition { export class TokenAccountDto { constructor( - public indexedValue: I80F48Dto, + public indexedPosition: I80F48Dto, public tokenIndex: number, public inUseCount: number, public reserved: number[],