Merge branch 'deploy-mm' into dev

This commit is contained in:
microwavedcola1 2023-03-07 08:32:52 +01:00
commit d9181fc4b5
3 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@blockworks-foundation/mango-v4",
"version": "0.5.21",
"version": "0.5.25",
"description": "Typescript Client for mango-v4 program.",
"repository": "https://github.com/blockworks-foundation/mango-v4",
"author": {

View File

@ -50,6 +50,7 @@ export class PerpMarket {
public feesSettled: I80F48;
public maintOverallAssetWeight: I80F48;
public initOverallAssetWeight: I80F48;
public positivePnlLiquidationFee: I80F48;
public _price: I80F48;
public _uiPrice: number;
@ -220,6 +221,7 @@ export class PerpMarket {
this.feesSettled = I80F48.from(feesSettled);
this.maintOverallAssetWeight = I80F48.from(maintOverallAssetWeight);
this.initOverallAssetWeight = I80F48.from(initOverallAssetWeight);
this.positivePnlLiquidationFee = I80F48.from(positivePnlLiquidationFee);
this.priceLotsToUiConverter = new Big(10)
.pow(baseDecimals - QUOTE_DECIMALS)
@ -312,7 +314,7 @@ export class PerpMarket {
public async loadFills(
client: MangoClient,
lastSeqNum: BN = new BN(0),
): Promise<(OutEvent | FillEvent | LiquidateEvent)[]> {
): Promise<FillEvent[]> {
const eventQueue = await this.loadEventQueue(client);
return eventQueue
.eventsSince(lastSeqNum)
@ -1026,8 +1028,8 @@ export interface FillEvent extends Event {
takerOrderId: BN;
takerClientOrderId: BN;
takerFee: number;
price: BN;
quantity: BN;
price: number;
quantity: number;
}
export interface LiquidateEvent extends Event {

View File

@ -6,5 +6,6 @@
"declaration": true,
"declarationMap": false,
"sourceMap": false
}
},
"include": ["ts/client/src", "ts/client/scripts"]
}