@curvefi/api 2.72.4 → 2.72.5
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.
|
@@ -228,9 +228,15 @@ export function buildFactoryPoolsData(factoryType, rawPoolListInput) {
|
|
|
228
228
|
}
|
|
229
229
|
else if (pool.isMetaPool) {
|
|
230
230
|
const allPoolsData = Object.assign(Object.assign({}, this.getPoolsData()), FACTORY_POOLS_DATA);
|
|
231
|
+
if (!pool.basePoolAddress) {
|
|
232
|
+
console.warn(`Skipping meta pool ${pool.id} (${pool.address}): base pool address is missing in API data.`);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
231
235
|
const basePoolId = getPoolIdByAddress.call(this, rawPoolList, pool.basePoolAddress);
|
|
232
|
-
if (!allPoolsData[basePoolId])
|
|
233
|
-
|
|
236
|
+
if (!allPoolsData[basePoolId]) {
|
|
237
|
+
console.warn(`Skipping meta pool ${pool.id} (${pool.address}): base pool "${pool.basePoolAddress}" is not loaded.`);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
234
240
|
this.constants.BASE_POOLS[basePoolId] = this.constants.BASE_POOLS[basePoolId] ? this.constants.BASE_POOLS[basePoolId] + 1 : 1;
|
|
235
241
|
const basePoolCoinNames = (_d = allPoolsData[basePoolId]) === null || _d === void 0 ? void 0 : _d.underlying_coins;
|
|
236
242
|
const basePoolCoinAddresses = (_e = allPoolsData[basePoolId]) === null || _e === void 0 ? void 0 : _e.underlying_coin_addresses;
|