Fix type
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
c1dea82a55
commit
1177213bb3
|
@ -106,8 +106,7 @@ export class MangoAccount {
|
||||||
'\nserum:' +
|
'\nserum:' +
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
this.serum3.filter(
|
this.serum3.filter(
|
||||||
(serum3) =>
|
(serum3) => serum3.marketIndex != Serum3Orders.Serum3MarketIndexUnset,
|
||||||
serum3.marketIndex != Serum3Orders.Serum3MarketIndexUnset,
|
|
||||||
),
|
),
|
||||||
null,
|
null,
|
||||||
4,
|
4,
|
||||||
|
@ -128,7 +127,7 @@ export class TokenPosition {
|
||||||
static TokenIndexUnset: number = 65535;
|
static TokenIndexUnset: number = 65535;
|
||||||
static from(dto: TokenAccountDto) {
|
static from(dto: TokenAccountDto) {
|
||||||
return new TokenPosition(
|
return new TokenPosition(
|
||||||
I80F48.from(dto.indexedValue),
|
I80F48.from(dto.indexedPosition),
|
||||||
dto.tokenIndex,
|
dto.tokenIndex,
|
||||||
dto.inUseCount,
|
dto.inUseCount,
|
||||||
);
|
);
|
||||||
|
@ -182,7 +181,7 @@ export class TokenPosition {
|
||||||
|
|
||||||
export class TokenAccountDto {
|
export class TokenAccountDto {
|
||||||
constructor(
|
constructor(
|
||||||
public indexedValue: I80F48Dto,
|
public indexedPosition: I80F48Dto,
|
||||||
public tokenIndex: number,
|
public tokenIndex: number,
|
||||||
public inUseCount: number,
|
public inUseCount: number,
|
||||||
public reserved: number[],
|
public reserved: number[],
|
||||||
|
|
Loading…
Reference in New Issue