@defisaver/positions-sdk 2.1.122 → 2.1.123-dev

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.
@@ -34,7 +34,7 @@ const buildIncentive = (opportunity) => {
34
34
  const getAaveV4MerkleCampaigns = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
35
35
  const result = { hub: {}, spoke: {} };
36
36
  try {
37
- const res = yield fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave', {
37
+ const res = yield fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave&type=AAVE_V4_HUB_SUPPLY,AAVE_V4_HUB_BORROW,AAVE_V4_SPOKE_SUPPLY,AAVE_V4_SPOKE_BORROW', {
38
38
  signal: AbortSignal.timeout(utils_1.LONGER_TIMEOUT),
39
39
  });
40
40
  if (!res.ok)
@@ -31,7 +31,7 @@ const buildIncentive = (opportunity) => {
31
31
  export const getAaveV4MerkleCampaigns = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
32
32
  const result = { hub: {}, spoke: {} };
33
33
  try {
34
- const res = yield fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave', {
34
+ const res = yield fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave&type=AAVE_V4_HUB_SUPPLY,AAVE_V4_HUB_BORROW,AAVE_V4_SPOKE_SUPPLY,AAVE_V4_SPOKE_BORROW', {
35
35
  signal: AbortSignal.timeout(LONGER_TIMEOUT),
36
36
  });
37
37
  if (!res.ok)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "2.1.122",
3
+ "version": "2.1.123-dev",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -34,7 +34,7 @@ const buildIncentive = (opportunity: MerklOpportunity): IncentiveData => {
34
34
  export const getAaveV4MerkleCampaigns = async (chainId: NetworkNumber): Promise<AaveV4MerklRewardMap> => {
35
35
  const result: AaveV4MerklRewardMap = { hub: {}, spoke: {} };
36
36
  try {
37
- const res = await fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave', {
37
+ const res = await fetch('https://fe.defisaver.com/api/merkl/opportunities?mainProtocolId=aave&type=AAVE_V4_HUB_SUPPLY,AAVE_V4_HUB_BORROW,AAVE_V4_SPOKE_SUPPLY,AAVE_V4_SPOKE_BORROW', {
38
38
  signal: AbortSignal.timeout(LONGER_TIMEOUT),
39
39
  });
40
40
  if (!res.ok) throw new Error('Failed to fetch Aave V4 Merkle campaigns');