Skip to content

Commit

Permalink
Merge pull request #77 from drift-labs/filler-fix
Browse files Browse the repository at this point in the history
filler fix + prettier
  • Loading branch information
NourAlharithi authored Oct 18, 2023
2 parents 18e099b + 66cacc8 commit 1f66d5f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/bots/filler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,11 +1046,15 @@ export class FillerBot implements Bot {
const orderIdDoesNotExist = isOrderDoesNotExistLog(log);
if (orderIdDoesNotExist) {
const filledNode = nodesFilled[ixIdx];
logger.error(
`assoc node (ixIdx: ${ixIdx}): ${filledNode.node.userAccount!.toString()}, ${
filledNode.node.order!.orderId
}; does not exist (filled by someone else); ${log}`
);
if (filledNode) {
logger.error(
`assoc node (ixIdx: ${ixIdx}): ${filledNode.node.userAccount!.toString()}, ${
filledNode.node.order!.orderId
}; does not exist (filled by someone else); ${log}`
);
} else {
logger.error(`Tried to fille node filled by someone else; ${log}`);
}
this.clearThrottledNode(getNodeToFillSignature(filledNode));
errorThisFillIx = true;
continue;
Expand Down

0 comments on commit 1f66d5f

Please sign in to comment.