@merkl/api 0.12.1 → 0.12.2
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.
| @@ -97,7 +97,7 @@ export const extractOpportunities = { | |
| 97 97 | 
             
                },
         | 
| 98 98 | 
             
                [Campaign.AMBIENTPROCESSOR]: ({ chainId, mainParameter, tvl, campaignParameters: params, poolBalanceToken0, poolBalanceToken1, computeChainId }, campaigns, prices) => {
         | 
| 99 99 | 
             
                    const { active, all } = campaigns;
         | 
| 100 | 
            -
                    const pair = `${params. | 
| 100 | 
            +
                    const pair = `${params.symbolBaseToken}-${params.symbolQuoteToken}`;
         | 
| 101 101 | 
             
                    const holdings = [
         | 
| 102 102 | 
             
                        { symbol: params.symbolBaseToken, amount: poolBalanceToken0 ?? 0 },
         | 
| 103 103 | 
             
                        { symbol: params.symbolQuoteToken, amount: poolBalanceToken1 ?? 0 },
         | 
| @@ -128,7 +128,7 @@ export async function AmbientDynamicData(chainId, campaigns) { | |
| 128 128 | 
             
                                            address: d.campaignParameters.baseToken,
         | 
| 129 129 | 
             
                                            chainId: chainId,
         | 
| 130 130 | 
             
                                            symbol: symbolBaseToken,
         | 
| 131 | 
            -
                                        })) | 
| 131 | 
            +
                                        }));
         | 
| 132 132 | 
             
                                        const priceToken1 = (await pricer.get({
         | 
| 133 133 | 
             
                                            address: d.campaignParameters.quoteToken,
         | 
| 134 134 | 
             
                                            chainId: chainId,
         |