@deriverse/kit 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const SYSTEM_PROGRAM_ID = (0, kit_1.address)("11111111111111111111111111111111")
|
|
|
40
40
|
const TOKEN_PROGRAM_ID = (0, kit_1.address)('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA');
|
|
41
41
|
const TOKEN_2022_PROGRAM_ID = (0, kit_1.address)('TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb');
|
|
42
42
|
const ASSOCIATED_TOKEN_PROGRAM_ID = (0, kit_1.address)('ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL');
|
|
43
|
-
|
|
43
|
+
let dec = 1000000000;
|
|
44
44
|
const nullOrder = 0xFFFF;
|
|
45
45
|
/**
|
|
46
46
|
* Get price step between orderbook lines depending on curent price
|
|
@@ -245,6 +245,9 @@ class Engine {
|
|
|
245
245
|
else {
|
|
246
246
|
this.uiNumbers = args.uiNumbers;
|
|
247
247
|
}
|
|
248
|
+
if (!this.uiNumbers) {
|
|
249
|
+
dec = 1;
|
|
250
|
+
}
|
|
248
251
|
}
|
|
249
252
|
logsDecode(data) {
|
|
250
253
|
let assetTokenDec = null;
|