@openocean.finance/widget 1.0.11 → 1.0.13

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,10 +1,10 @@
1
1
  {
2
2
  "name": "@openocean.finance/widget",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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
- "main": "./dist/esm/index.js",
7
- "types": "./dist/esm/index.d.ts",
6
+ "main": "./src/index.ts",
7
+ "types": "./src/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
10
  "watch": "tsc -w -p ./tsconfig.json",
@@ -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.11'
2
+ export const version = '1.0.13'