Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed Aug 20, 2024
1 parent 342081c commit 0412062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ function createLiquidationOrderFillEvent(
liquidationOrderProto: LiquidationOrderV1,
fillAmount: number,
totalFilledMaker: number,
affiliateRevShare: number = 0,
): OrderFillEventV1 {
return {
makerOrder: makerOrderProto,
Expand All @@ -1188,6 +1189,7 @@ function createLiquidationOrderFillEvent(
takerFee: Long.fromValue(defaultTakerFeeQuantum, false),
totalFilledMaker: Long.fromValue(totalFilledMaker, true),
totalFilledTaker: Long.fromValue(fillAmount, true),
affiliateRevShare: Long.fromValue(affiliateRevShare, false),
} as OrderFillEventV1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ function createOrderFillEvent(
fillAmount: number,
totalFilledMaker: number,
totalFilledTaker: number,
affiliateRevShare: number = 0,
): OrderFillEventV1 {
return {
makerOrder: makerOrderProto,
Expand All @@ -1831,6 +1832,7 @@ function createOrderFillEvent(
takerFee: Long.fromValue(defaultTakerFeeQuantum, false),
totalFilledMaker: Long.fromValue(totalFilledMaker, true),
totalFilledTaker: Long.fromValue(totalFilledTaker, true),
affiliateRevShare: Long.fromValue(affiliateRevShare, false)
} as OrderFillEventV1;
}

Expand Down

0 comments on commit 0412062

Please sign in to comment.