Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dydx committed Sep 28, 2023
1 parent 377a08d commit 43f28ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions v4-client-js/examples/cancel_example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ async function test(): Promise<void> {
/*
Note this example places a stateful order.
Programmatic traders should generally not use stateful orders for following reasons:
- Stateful orders received out of order by validators will fail sequence number validation and be dropped.
- Stateful orders have worse time priority since they are only matched after they are included on the block.
- Stateful order rate limits are more restrictive than Short-Term orders, specifically max 2 per block / 20 per 100 blocks.
- Stateful orders received out of order by validators will fail sequence number validation
and be dropped.
- Stateful orders have worse time priority since they are only matched after they are included
on the block.
- Stateful order rate limits are more restrictive than Short-Term orders, specifically max 2 per
block / 20 per 100 blocks.
- Stateful orders can only be canceled after they’ve been included in a block.
*/
const longTermOrderClientId = randomInt(MAX_CLIENT_ID);
Expand Down
2 changes: 1 addition & 1 deletion v4-client-js/src/clients/composite-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class CompositeClient {
const clobPairId = market.clobPairId;

if (!verifyOrderFlags(orderFlags)) {
throw new Error('Invalid order flags: ' + orderFlags);
throw new Error(`Invalid order flags: ${orderFlags}`);
}

let goodTilBlockTime;
Expand Down

0 comments on commit 43f28ff

Please sign in to comment.