@drift-labs/sdk 2.52.0-beta.10 → 2.52.0-beta.11

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.52.0-beta.10
1
+ 2.52.0-beta.11
@@ -25,16 +25,16 @@ class PriorityFeeSubscriber {
25
25
  }
26
26
  }
27
27
  get avgPriorityFee() {
28
- return this.lastAvgStrategyResult;
28
+ return Math.floor(this.lastAvgStrategyResult);
29
29
  }
30
30
  get maxPriorityFee() {
31
- return this.lastMaxStrategyResult;
31
+ return Math.floor(this.lastMaxStrategyResult);
32
32
  }
33
33
  get customPriorityFee() {
34
34
  if (!this.customStrategy) {
35
35
  console.error('Custom strategy not set');
36
36
  }
37
- return this.lastCustomStrategyResult;
37
+ return Math.floor(this.lastCustomStrategyResult);
38
38
  }
39
39
  async subscribe() {
40
40
  if (this.intervalId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.52.0-beta.10",
3
+ "version": "2.52.0-beta.11",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -46,18 +46,18 @@ export class PriorityFeeSubscriber {
46
46
  }
47
47
 
48
48
  public get avgPriorityFee(): number {
49
- return this.lastAvgStrategyResult;
49
+ return Math.floor(this.lastAvgStrategyResult);
50
50
  }
51
51
 
52
52
  public get maxPriorityFee(): number {
53
- return this.lastMaxStrategyResult;
53
+ return Math.floor(this.lastMaxStrategyResult);
54
54
  }
55
55
 
56
56
  public get customPriorityFee(): number {
57
57
  if (!this.customStrategy) {
58
58
  console.error('Custom strategy not set');
59
59
  }
60
- return this.lastCustomStrategyResult;
60
+ return Math.floor(this.lastCustomStrategyResult);
61
61
  }
62
62
 
63
63
  public async subscribe(): Promise<void> {