@defisaver/positions-sdk 2.1.101 → 2.1.102
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/cjs/claiming/ethena.js
CHANGED
|
@@ -21,7 +21,7 @@ const utils_1 = require("../services/utils");
|
|
|
21
21
|
const fetchEthenaAirdropReward = (address) => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
22
|
try {
|
|
23
23
|
const checksumAddress = (0, viem_1.getAddress)(address);
|
|
24
|
-
const response = yield fetch(`https://
|
|
24
|
+
const response = yield fetch(`https://d1o76ps6187jke.cloudfront.net/${checksumAddress}/0xb92954d91aa2793b3718414d8df2413d5bd648955dec4a75471e86ded263d585-${checksumAddress}.json`);
|
|
25
25
|
if (!response.ok) {
|
|
26
26
|
if (response.status === 403) {
|
|
27
27
|
// This is also okay, means that there are no rewards for the address
|
package/esm/claiming/ethena.js
CHANGED
|
@@ -15,7 +15,7 @@ import { getEthAmountForDecimals } from '../services/utils';
|
|
|
15
15
|
export const fetchEthenaAirdropReward = (address) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
16
|
try {
|
|
17
17
|
const checksumAddress = getAddress(address);
|
|
18
|
-
const response = yield fetch(`https://
|
|
18
|
+
const response = yield fetch(`https://d1o76ps6187jke.cloudfront.net/${checksumAddress}/0xb92954d91aa2793b3718414d8df2413d5bd648955dec4a75471e86ded263d585-${checksumAddress}.json`);
|
|
19
19
|
if (!response.ok) {
|
|
20
20
|
if (response.status === 403) {
|
|
21
21
|
// This is also okay, means that there are no rewards for the address
|
package/package.json
CHANGED
package/src/claiming/ethena.ts
CHANGED
|
@@ -8,8 +8,7 @@ import { getEthAmountForDecimals } from '../services/utils';
|
|
|
8
8
|
export const fetchEthenaAirdropReward = async (address: EthAddress) => {
|
|
9
9
|
try {
|
|
10
10
|
const checksumAddress = getAddress(address);
|
|
11
|
-
const response = await fetch(`https://
|
|
12
|
-
|
|
11
|
+
const response = await fetch(`https://d1o76ps6187jke.cloudfront.net/${checksumAddress}/0xb92954d91aa2793b3718414d8df2413d5bd648955dec4a75471e86ded263d585-${checksumAddress}.json`);
|
|
13
12
|
if (!response.ok) {
|
|
14
13
|
if (response.status === 403) {
|
|
15
14
|
// This is also okay, means that there are no rewards for the address
|