@merkl/api 0.12.9 → 0.12.11
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.
@@ -69,7 +69,7 @@ export async function AmbientDynamicData(chainId, campaigns) {
|
|
69
69
|
baseToken: campaign.campaignParameters.baseToken,
|
70
70
|
quoteToken: campaign.campaignParameters.quoteToken,
|
71
71
|
poolIdx: campaign.campaignParameters.poolIdx,
|
72
|
-
potentialHolders: await fetchAmbientPotentialPositions(campaign.campaignParameters.poolId, campaign.
|
72
|
+
potentialHolders: await fetchAmbientPotentialPositions(campaign.campaignParameters.poolId, campaign.computeChainId),
|
73
73
|
});
|
74
74
|
}
|
75
75
|
}
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EqualizerGaugeProcessor.js
CHANGED
@@ -12,9 +12,15 @@ export class EqualizerGaugeProcessor extends GenericProcessor {
|
|
12
12
|
const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
|
13
13
|
const EXTERNAL_EQUALIZER_ENDPOINT = "https://eqapi-sonic-prod-ltanm.ondigitalocean.app/sonic/v4/gauges/";
|
14
14
|
const data = (await axios(EXTERNAL_EQUALIZER_ENDPOINT)).data.data;
|
15
|
-
|
15
|
+
let tvl = 0;
|
16
|
+
let displayName = "Stake into Equalizer Gauge";
|
17
|
+
try {
|
18
|
+
tvl = data[typeInfo.tokenAddress].token0.reserveUsd + data[typeInfo.tokenAddress].token1.reserveUsd;
|
19
|
+
displayName = `Stake into ${data[typeInfo.tokenAddress].pair.displayName} Equalizer Gauge`;
|
20
|
+
}
|
21
|
+
catch (e) { }
|
16
22
|
const priceTargetToken = tvl / totalSupply;
|
17
|
-
const displayName = `Stake into ${data[typeInfo.tokenAddress].pair.displayName} Equalizer Gauge`;
|
23
|
+
//const displayName = `Stake into ${data[typeInfo.tokenAddress].pair.displayName} Equalizer Gauge`;
|
18
24
|
return {
|
19
25
|
...typeInfo,
|
20
26
|
totalSupply,
|