@openocean.finance/widget 1.0.10 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/widget",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -76,7 +76,7 @@
76
76
  "@tanstack/react-query": "^5.62.0",
77
77
  "react": ">=18",
78
78
  "react-dom": ">=18",
79
- "wagmi": "^2.14.0"
79
+ "wagmi": "^2.15.1"
80
80
  },
81
81
  "files": ["dist/**", "src/**", "!tsconfig.json"]
82
82
  }
package/src/App.tsx CHANGED
@@ -19,7 +19,7 @@ export const App = forwardRef<WidgetDrawer, WidgetProps>((props, ref) => {
19
19
  }
20
20
  }
21
21
 
22
- // config.subvariant = 'bridge'
22
+ config.subvariant = 'bridge'
23
23
  // config.subvariantOptions = {
24
24
  // custom: 'checkout',
25
25
  // split: 'bridge',
@@ -30,7 +30,6 @@ export const NavigationHeader: React.FC = () => {
30
30
  const path = cleanedPathname.substring(cleanedPathname.lastIndexOf('/') + 1)
31
31
  const hasPath = navigationRoutesValues.includes(path)
32
32
  const splitSubvariant = subvariant === 'split' && !hasPath
33
- debugger
34
33
  return (
35
34
  <>
36
35
  <HeaderAppBar elevation={0}>
@@ -27,7 +27,6 @@ export const NavigationTabs = () => {
27
27
  !initialLoadDoneRef.current
28
28
  ) {
29
29
  if (subvariant === 'bridge') {
30
- debugger
31
30
  setState('bridge')
32
31
  } else {
33
32
  const newState: 'swap' | 'bridge' =
@@ -336,7 +336,7 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
336
336
  value: formatTokenAmount(
337
337
  typeof route.toAmountMin === 'string' &&
338
338
  !route.toAmountMin.includes('e')
339
- ? BigInt(route.toAmountMin)
339
+ ? BigInt(Math.floor(route.toAmountMin))
340
340
  : BigInt(0),
341
341
  route.toToken.decimals
342
342
  ),
@@ -1,2 +1,2 @@
1
1
  export const name = '@openocean.finance/widget'
2
- export const version = '1.0.9'
2
+ export const version = '1.0.11'