ts: add prop to serum3 markets

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-12-14 05:59:44 +01:00
parent f342595a88
commit 66bb74c2fd
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ export class Serum3Market {
registrationTime: BN;
reduceOnly: number;
forceClose: number;
oraclePriceBand: number;
},
): Serum3Market {
return new Serum3Market(
@ -40,6 +41,7 @@ export class Serum3Market {
obj.registrationTime,
obj.reduceOnly == 1,
obj.forceClose == 1,
obj.oraclePriceBand,
);
}
@ -55,6 +57,7 @@ export class Serum3Market {
public registrationTime: BN,
public reduceOnly: boolean,
public forceClose: boolean,
public oraclePriceBand: number,
) {
this.name = utf8.decode(new Uint8Array(name)).split('\x00')[0];
}