@curvefi/api 2.69.1 → 2.69.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.
|
@@ -319,9 +319,13 @@ export class PoolTemplate extends CorePool {
|
|
|
319
319
|
}
|
|
320
320
|
const tokenInfo = yield curve.multicallProvider.all(tokenInfoCalls);
|
|
321
321
|
for (let i = 0; i < tokens.length; i++) {
|
|
322
|
-
|
|
322
|
+
const rawDec = tokenInfo[(i * 2) + 1];
|
|
323
|
+
curve.constants.DECIMALS[tokens[i]] = Number(rawDec);
|
|
323
324
|
}
|
|
324
|
-
return tokens.map((token, i) =>
|
|
325
|
+
return tokens.map((token, i) => {
|
|
326
|
+
const rawDec = tokenInfo[(i * 2) + 1];
|
|
327
|
+
return { token, symbol: tokenInfo[i * 2], decimals: Number(rawDec) };
|
|
328
|
+
});
|
|
325
329
|
}
|
|
326
330
|
else if ('claimable_reward(address)' in gaugeContract) { // gauge_synthetix
|
|
327
331
|
const rewardContract = curve.contracts[this.sRewardContract].contract;
|