@openocean.finance/widget 1.0.30 → 1.0.31
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/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/hooks/useRoutes.js +1 -1
- package/dist/esm/hooks/useRoutes.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config/version.ts +1 -1
- package/src/hooks/useRoutes.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openocean.finance/widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
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": "./dist/esm/index.js",
|
package/src/config/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@openocean.finance/widget'
|
|
2
|
-
export const version = '1.0.
|
|
2
|
+
export const version = '1.0.31'
|
package/src/hooks/useRoutes.ts
CHANGED
|
@@ -355,7 +355,7 @@ export const useRoutes = ({ observableRoute }: RoutesProps = {}) => {
|
|
|
355
355
|
fromAmount: fromAmount.toString(),
|
|
356
356
|
toAmount: data?.outAmount || '0',
|
|
357
357
|
toAmountMin,
|
|
358
|
-
approvalAddress: data?.approveContract || '0x0',
|
|
358
|
+
approvalAddress: data?.approveContract || data?.to || '0x0',
|
|
359
359
|
executionDuration:
|
|
360
360
|
data?.executionDuration ||
|
|
361
361
|
Math.floor(Math.random() * 20) + 40,
|