Merge pull request #21 from drift-labs/master

trades publisher bug fix
This commit is contained in:
Nour Alharithi
2023-11-17 14:00:12 -08:00
committed by GitHub

View File

@@ -161,7 +161,9 @@ const main = async () => {
),
maker: fill.maker?.toBase58(),
makerOrderId: fill.makerOrderId,
makerOrderDirection: getVariant(fill.makerOrderDirection),
makerOrderDirection: fill.makderOrderDirection
? getVariant(fill.makerOrderDirection)
: undefined,
makerOrderBaseAssetAmount: convertToNumber(
fill.makerOrderBaseAssetAmount,
BASE_PRECISION