@ethereansos/interfaces-core 0.4.80 → 0.4.84
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.
- package/dist/index.cjs.js +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -34703,8 +34703,8 @@ function toEthereumSymbol(decimals) {
|
|
34703
34703
|
function toDecimals(number, decimals) {
|
34704
34704
|
var _number, _decimals;
|
34705
34705
|
|
34706
|
-
number =
|
34707
|
-
decimals =
|
34706
|
+
number = numberToString(((_number = number) === null || _number === void 0 ? void 0 : _number.value) || number || 0);
|
34707
|
+
decimals = numberToString(((_decimals = decimals) === null || _decimals === void 0 ? void 0 : _decimals.value) || decimals || 0);
|
34708
34708
|
|
34709
34709
|
if (!number) {
|
34710
34710
|
number = '0';
|
@@ -48484,6 +48484,12 @@ function _tryRetrieveMetadata() {
|
|
48484
48484
|
return _tryRetrieveMetadata.apply(this, arguments);
|
48485
48485
|
}
|
48486
48486
|
|
48487
|
+
var conversionEncode = {
|
48488
|
+
100: '000064',
|
48489
|
+
500: '0001f4',
|
48490
|
+
3000: '000bb8',
|
48491
|
+
10000: '002710'
|
48492
|
+
};
|
48487
48493
|
function getTokenPriceInDollarsOnUniswap(_x, _x2, _x3, _x4) {
|
48488
48494
|
return _getTokenPriceInDollarsOnUniswap.apply(this, arguments);
|
48489
48495
|
}
|
@@ -48575,7 +48581,7 @@ function _getTokenPriceInDollarsOnUniswapV() {
|
|
48575
48581
|
uniTokenWeth = new Token(chainId, wethAddress, 18, 'ETH', 'Ethereum');
|
48576
48582
|
_context3.prev = 14;
|
48577
48583
|
_context3.next = 17;
|
48578
|
-
return Promise.all(Object.keys(
|
48584
|
+
return Promise.all(Object.keys(conversionEncode).map( /*#__PURE__*/function () {
|
48579
48585
|
var _ref3 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(fee) {
|
48580
48586
|
var pool, slot0, price;
|
48581
48587
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|