@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.
@@ -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.merkl.xyz/v4/opportunities?mainProtocolId=aave', {
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)
@@ -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.merkl.xyz/v4/users/${account}/rewards?chainId=${network}`, { signal: AbortSignal.timeout(3000) });
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) {
@@ -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.merkl.xyz/v4/opportunities?mainProtocolId=aave', {
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)
@@ -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.merkl.xyz/v4/users/${account}/rewards?chainId=${network}`, { signal: AbortSignal.timeout(3000) });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "2.1.76",
3
+ "version": "2.1.78",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -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.merkl.xyz/v4/opportunities?mainProtocolId=aave', {
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');
@@ -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.merkl.xyz/v4/users/${account}/rewards?chainId=${network}`,
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) {