@curvefi/api 2.47.1 → 2.47.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.
|
@@ -61,7 +61,7 @@ export var COINS_ETHEREUM = lowerCaseValues({
|
|
|
61
61
|
hbtc: "0x0316EB71485b0Ab14103307bf65a021042c6d380",
|
|
62
62
|
renbtc: "0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D",
|
|
63
63
|
wbtc: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
64
|
-
tbtc: "
|
|
64
|
+
tbtc: "0x18084fba666a33d37592fa2633fd49a74dd93a88",
|
|
65
65
|
pbtc: "0x5228a22e72ccC52d415EcFd199F99D0665E7733b",
|
|
66
66
|
bbtc: "0x9be89d2a4cd102d8fecc6bf9da793be995c22541",
|
|
67
67
|
obtc: "0x8064d9Ae6cDf087b1bcd5BDf3531bD5d8C537a68",
|
|
@@ -464,7 +464,7 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
464
464
|
if (!BN(a).eq(BN(seedAmounts_1[i])))
|
|
465
465
|
throw Error("Amounts must be = ".concat(seedAmounts_1));
|
|
466
466
|
});
|
|
467
|
-
return [2 /*return*/, parseUnits(Math.
|
|
467
|
+
return [2 /*return*/, parseUnits(Math.pow(amounts.map(Number).reduce(function (a, b) { return a * b; }), 1 / amounts.length))];
|
|
468
468
|
case 6:
|
|
469
469
|
_c.trys.push([6, 13, , 15]);
|
|
470
470
|
contract = curve.contracts[curve.constants.ALIASES.stable_calc].contract;
|