Skip to content

Commit bf55948

Browse files
author
Karl Ranna
committed
feat(cli): change orderbook default precision
This commit changes orderbook's default precision from 5 to 8 decimals in order to prevent confusing scenarios where it was possible to see "the same" price with for buy and sell orders using `xucli orderbook`. In reality the last 3 digits were different, causing the matching engine not to trigger a swap.
1 parent f8ba20a commit bf55948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/cli/commands/orderbook.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const builder = {
152152
precision: {
153153
describe: 'the number of digits following the decimal point',
154154
type: 'number',
155-
default: 5,
155+
default: 8,
156156
},
157157
};
158158

0 commit comments

Comments
 (0)