@lifi/widget 1.28.2 → 1.28.3

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.
@@ -116,7 +116,7 @@ const createTheme = (mode, theme = {}) => {
116
116
  color: contrastButtonColor,
117
117
  },
118
118
  }, sizeMedium: {
119
- padding: '10px 16px',
119
+ padding: '10px 14px',
120
120
  [`.${DialogActions_1.dialogActionsClasses.root} &`]: {
121
121
  padding: '6px 12px',
122
122
  },
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.28.2";
2
+ export declare const version = "1.28.3";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/widget';
5
- exports.version = '1.28.2';
5
+ exports.version = '1.28.3';
@@ -96,10 +96,7 @@ const useSwapRoutes = () => {
96
96
  }
97
97
  const fromAmount = (0, big_js_1.default)(fromTokenAmount || 0)
98
98
  .mul(Math.pow(10, ((_d = fromToken === null || fromToken === void 0 ? void 0 : fromToken.decimals) !== null && _d !== void 0 ? _d : 0)))
99
- .toString();
100
- // const toAmount = Big(toTokenAmount || 0)
101
- // .mul(10 ** (toToken?.decimals ?? 0))
102
- // .toString();
99
+ .toFixed(0);
103
100
  const formattedSlippage = parseFloat(slippage) / 100;
104
101
  if (variant === 'nft') {
105
102
  const contractCallQuote = yield lifi.getContractCallQuote({
package/config/theme.js CHANGED
@@ -113,7 +113,7 @@ export const createTheme = (mode, theme = {}) => {
113
113
  color: contrastButtonColor,
114
114
  },
115
115
  }, sizeMedium: {
116
- padding: '10px 16px',
116
+ padding: '10px 14px',
117
117
  [`.${dialogActionsClasses.root} &`]: {
118
118
  padding: '6px 12px',
119
119
  },
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.28.2";
2
+ export declare const version = "1.28.3";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.28.2';
2
+ export const version = '1.28.3';
@@ -93,10 +93,7 @@ export const useSwapRoutes = () => {
93
93
  }
94
94
  const fromAmount = Big(fromTokenAmount || 0)
95
95
  .mul(Math.pow(10, ((_d = fromToken === null || fromToken === void 0 ? void 0 : fromToken.decimals) !== null && _d !== void 0 ? _d : 0)))
96
- .toString();
97
- // const toAmount = Big(toTokenAmount || 0)
98
- // .mul(10 ** (toToken?.decimals ?? 0))
99
- // .toString();
96
+ .toFixed(0);
100
97
  const formattedSlippage = parseFloat(slippage) / 100;
101
98
  if (variant === 'nft') {
102
99
  const contractCallQuote = yield lifi.getContractCallQuote({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.28.2",
3
+ "version": "1.28.3",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",