ts: add prop to serum3 markets
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
f342595a88
commit
66bb74c2fd
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue