@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.cjs.js
CHANGED
@@ -34714,8 +34714,8 @@ function toEthereumSymbol(decimals) {
|
|
34714
34714
|
function toDecimals(number, decimals) {
|
34715
34715
|
var _number, _decimals;
|
34716
34716
|
|
34717
|
-
number =
|
34718
|
-
decimals =
|
34717
|
+
number = numberToString(((_number = number) === null || _number === void 0 ? void 0 : _number.value) || number || 0);
|
34718
|
+
decimals = numberToString(((_decimals = decimals) === null || _decimals === void 0 ? void 0 : _decimals.value) || decimals || 0);
|
34719
34719
|
|
34720
34720
|
if (!number) {
|
34721
34721
|
number = '0';
|
@@ -48495,6 +48495,12 @@ function _tryRetrieveMetadata() {
|
|
48495
48495
|
return _tryRetrieveMetadata.apply(this, arguments);
|
48496
48496
|
}
|
48497
48497
|
|
48498
|
+
var conversionEncode = {
|
48499
|
+
100: '000064',
|
48500
|
+
500: '0001f4',
|
48501
|
+
3000: '000bb8',
|
48502
|
+
10000: '002710'
|
48503
|
+
};
|
48498
48504
|
function getTokenPriceInDollarsOnUniswap(_x, _x2, _x3, _x4) {
|
48499
48505
|
return _getTokenPriceInDollarsOnUniswap.apply(this, arguments);
|
48500
48506
|
}
|
@@ -48586,7 +48592,7 @@ function _getTokenPriceInDollarsOnUniswapV() {
|
|
48586
48592
|
uniTokenWeth = new Token(chainId, wethAddress, 18, 'ETH', 'Ethereum');
|
48587
48593
|
_context3.prev = 14;
|
48588
48594
|
_context3.next = 17;
|
48589
|
-
return Promise.all(Object.keys(
|
48595
|
+
return Promise.all(Object.keys(conversionEncode).map( /*#__PURE__*/function () {
|
48590
48596
|
var _ref3 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(fee) {
|
48591
48597
|
var pool, slot0, price;
|
48592
48598
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|