@crypticdot/defituna-api 1.1.49 → 1.1.50
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -680,8 +680,8 @@ var TunaApiClient = class {
|
|
|
680
680
|
async getStakingRevenueStats(from, to) {
|
|
681
681
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
682
682
|
this.appendUrlSearchParams(url, {
|
|
683
|
-
from: from.toISOString(),
|
|
684
|
-
to: to.toISOString()
|
|
683
|
+
from: from.toISOString().split("T")[0],
|
|
684
|
+
to: to.toISOString().split("T")[0]
|
|
685
685
|
});
|
|
686
686
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
687
687
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -645,8 +645,8 @@ var TunaApiClient = class {
|
|
|
645
645
|
async getStakingRevenueStats(from, to) {
|
|
646
646
|
const url = this.buildURL(`stats/staking/revenue`);
|
|
647
647
|
this.appendUrlSearchParams(url, {
|
|
648
|
-
from: from.toISOString(),
|
|
649
|
-
to: to.toISOString()
|
|
648
|
+
from: from.toISOString().split("T")[0],
|
|
649
|
+
to: to.toISOString().split("T")[0]
|
|
650
650
|
});
|
|
651
651
|
return await this.httpRequest(url.toString(), StakingRevenueStatsGroup.array());
|
|
652
652
|
}
|