@defisaver/positions-sdk 2.1.76 → 2.1.78
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/aaveV3/merkl.js +1 -1
- package/cjs/claiming/aaveV3.js +1 -1
- package/esm/aaveV3/merkl.js +1 -1
- package/esm/claiming/aaveV3.js +1 -1
- package/package.json +1 -1
- package/src/aaveV3/merkl.ts +1 -1
- package/src/claiming/aaveV3.ts +1 -1
package/cjs/aaveV3/merkl.js
CHANGED
|
@@ -40,7 +40,7 @@ const formatAaveAsset = (_symbol) => {
|
|
|
40
40
|
exports.formatAaveAsset = formatAaveAsset;
|
|
41
41
|
const getMerkleCampaigns = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
42
|
try {
|
|
43
|
-
const res = yield fetch('https://api
|
|
43
|
+
const res = yield fetch('https://api-merkl.angle.money/v4/opportunities?mainProtocolId=aave', {
|
|
44
44
|
signal: AbortSignal.timeout(utils_1.DEFAULT_TIMEOUT),
|
|
45
45
|
});
|
|
46
46
|
if (!res.ok)
|
package/cjs/claiming/aaveV3.js
CHANGED
|
@@ -99,7 +99,7 @@ function getMeritUnclaimedRewards(account_1, network_1) {
|
|
|
99
99
|
return __awaiter(this, arguments, void 0, function* (account, network, acceptMorpho = true) {
|
|
100
100
|
let data;
|
|
101
101
|
try {
|
|
102
|
-
const res = yield fetch(`https://api
|
|
102
|
+
const res = yield fetch(`https://api-merkl.angle.money/v4/users/${account}/rewards?chainId=${network}`, { signal: AbortSignal.timeout(3000) });
|
|
103
103
|
data = yield res.json();
|
|
104
104
|
}
|
|
105
105
|
catch (error) {
|
package/esm/aaveV3/merkl.js
CHANGED
|
@@ -35,7 +35,7 @@ export const formatAaveAsset = (_symbol) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const getMerkleCampaigns = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
37
|
try {
|
|
38
|
-
const res = yield fetch('https://api
|
|
38
|
+
const res = yield fetch('https://api-merkl.angle.money/v4/opportunities?mainProtocolId=aave', {
|
|
39
39
|
signal: AbortSignal.timeout(DEFAULT_TIMEOUT),
|
|
40
40
|
});
|
|
41
41
|
if (!res.ok)
|
package/esm/claiming/aaveV3.js
CHANGED
|
@@ -92,7 +92,7 @@ export function getMeritUnclaimedRewards(account_1, network_1) {
|
|
|
92
92
|
return __awaiter(this, arguments, void 0, function* (account, network, acceptMorpho = true) {
|
|
93
93
|
let data;
|
|
94
94
|
try {
|
|
95
|
-
const res = yield fetch(`https://api
|
|
95
|
+
const res = yield fetch(`https://api-merkl.angle.money/v4/users/${account}/rewards?chainId=${network}`, { signal: AbortSignal.timeout(3000) });
|
|
96
96
|
data = yield res.json();
|
|
97
97
|
}
|
|
98
98
|
catch (error) {
|
package/package.json
CHANGED
package/src/aaveV3/merkl.ts
CHANGED
|
@@ -31,7 +31,7 @@ export const formatAaveAsset = (_symbol: string) => {
|
|
|
31
31
|
|
|
32
32
|
export const getMerkleCampaigns = async (chainId: NetworkNumber): Promise<MerkleRewardMap> => {
|
|
33
33
|
try {
|
|
34
|
-
const res = await fetch('https://api
|
|
34
|
+
const res = await fetch('https://api-merkl.angle.money/v4/opportunities?mainProtocolId=aave', {
|
|
35
35
|
signal: AbortSignal.timeout(DEFAULT_TIMEOUT),
|
|
36
36
|
});
|
|
37
37
|
if (!res.ok) throw new Error('Failed to fetch Merkle campaigns');
|
package/src/claiming/aaveV3.ts
CHANGED
|
@@ -106,7 +106,7 @@ export async function getUnclaimedRewardsForAllMarkets(
|
|
|
106
106
|
export async function getMeritUnclaimedRewards(account: EthAddress, network: NetworkNumber, acceptMorpho: boolean = true): Promise<ClaimableToken[]> {
|
|
107
107
|
let data;
|
|
108
108
|
try {
|
|
109
|
-
const res = await fetch(`https://api
|
|
109
|
+
const res = await fetch(`https://api-merkl.angle.money/v4/users/${account}/rewards?chainId=${network}`,
|
|
110
110
|
{ signal: AbortSignal.timeout(3000) });
|
|
111
111
|
data = await res.json();
|
|
112
112
|
} catch (error) {
|