diff --git a/package-lock.json b/package-lock.json index 6bbedfac1..3272bd3d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@popperjs/core": "^2.11.5", "@rainbow-me/rainbowkit": "1.0.11", "@react-spring/web": "^9.7.1", - "@reserve-protocol/token-zapper": "2.6.3", + "@reserve-protocol/token-zapper": "2.6.7", "@uiw/react-md-editor": "^3.20.5", "@uniswap/permit2-sdk": "^1.2.0", "@viem/anvil": "^0.0.6", @@ -3807,7 +3807,7 @@ }, "node_modules/@lc-labs/rtokens": { "version": "1.1.3", - "resolved": "git+ssh://git@github.com/lc-labs/rtokens.git#50ca9e2d293674091f4624fb3a839156cdcaf1d1", + "resolved": "git+ssh://git@github.com/lc-labs/rtokens.git#5c5d339315212ca862840824a7d8caf1575812de", "license": "ISC" }, "node_modules/@ledgerhq/connect-kit-loader": { @@ -4974,9 +4974,9 @@ } }, "node_modules/@reserve-protocol/token-zapper": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@reserve-protocol/token-zapper/-/token-zapper-2.6.3.tgz", - "integrity": "sha512-Zp+uF5xmB5bN/EuikZN2ddOu2U2/dq0H+wckvySaHyuMdyh/9pLFehzcGPvExa+QcT9RtXSztnSOi08U6USwUw==", + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/@reserve-protocol/token-zapper/-/token-zapper-2.6.7.tgz", + "integrity": "sha512-qPKqT8UG8QAuY1xObTeF99jDT/EnYt6g03OL2KO5GnAM5f7dB5jZy66c6N5puPfhckggKzTduSvejumKdwdPxA==", "dependencies": { "@ethersproject/abi": "^5.7.0", "@ethersproject/providers": "^5.7.2", @@ -6255,23 +6255,23 @@ "peer": true }, "node_modules/@types/mdast": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.13.tgz", - "integrity": "sha512-HjiGiWedR0DVFkeNljpa6Lv4/IZU1+30VY5d747K7lBudFc3R0Ibr6yJ9lN3BE28VnZyDfLF/VB1Ql1ZIbKrmg==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.14.tgz", + "integrity": "sha512-gVZ04PGgw1qLZKsnWnyFv4ORnaJ+DXLdHTVSFbU8yX6xZ34Bjg4Q32yPkmveUP1yItXReKfB0Aknlh/3zxTKAw==", "dependencies": { "@types/unist": "^2" } }, "node_modules/@types/mixpanel-browser": { - "version": "2.47.3", - "resolved": "https://registry.npmjs.org/@types/mixpanel-browser/-/mixpanel-browser-2.47.3.tgz", - "integrity": "sha512-lum9ZdfLihJ89XoCrBjB8le/Vg6ohYSR2/3AdfLWGZdhUBEgftncDO9+0uW08FSN6SLqy2s9zCf55YV5sNLNYA==", + "version": "2.47.4", + "resolved": "https://registry.npmjs.org/@types/mixpanel-browser/-/mixpanel-browser-2.47.4.tgz", + "integrity": "sha512-wAwhSaIk//XY+O5Y8vnlb0Dc9Rpt0s+yHRXf1cGIYM4G5efzRjNeqWEqROf4qzP9FUgVE2M0Z8Pg9BV8Dt46yw==", "dev": true }, "node_modules/@types/ms": { - "version": "0.7.32", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.32.tgz", - "integrity": "sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==" + "version": "0.7.33", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.33.tgz", + "integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==" }, "node_modules/@types/node": { "version": "17.0.45", @@ -6279,9 +6279,9 @@ "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" }, "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.1.tgz", + "integrity": "sha512-3YmXzzPAdOTVljVMkTMBdBEvlOLg2cDQaDhnnhT3nT9uDbnJzjWhKlzb+desT12Y7tGqaN6d+AbozcKzyL36Ng==" }, "node_modules/@types/parse5": { "version": "6.0.3", @@ -6289,9 +6289,9 @@ "integrity": "sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==" }, "node_modules/@types/pbkdf2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", - "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.1.tgz", + "integrity": "sha512-4HCoGwR3221nOc7G0Z/6KgTNGgaaFGkbGrtUJsB+zlKX2LBVjFHHIUkieMBgHHXgBH5Gq6dZHJKdBYdtlhBQvw==", "dependencies": { "@types/node": "*" } @@ -6302,9 +6302,9 @@ "integrity": "sha512-Q7jDsRbzcNHIQje15CS/piKhu6lMLb9jwjxSfEIi4KcFKXW23GoJMkwQiJ8VObyfx+VmUaDcJxXaWN+cTCjVog==" }, "node_modules/@types/prop-types": { - "version": "15.7.8", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.8.tgz", - "integrity": "sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==" + "version": "15.7.9", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.9.tgz", + "integrity": "sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==" }, "node_modules/@types/react": { "version": "18.0.0", @@ -6326,9 +6326,9 @@ } }, "node_modules/@types/react-table": { - "version": "7.7.16", - "resolved": "https://registry.npmjs.org/@types/react-table/-/react-table-7.7.16.tgz", - "integrity": "sha512-khfVwkNkvFnQV+Dx5Z/4jeMWIi+qytR8/Hl89fMPQ3aGiIgVlnghwdnyrq45UVSU+9wTqQFL0kUmIk4MGaM20Q==", + "version": "7.7.17", + "resolved": "https://registry.npmjs.org/@types/react-table/-/react-table-7.7.17.tgz", + "integrity": "sha512-25/SDkn0qnvxBvxSPnMO1vf1ymvcSmwPr7qcFuYyWElTGcsOWQsV+sCFq1dVhGYdd2fSsOnP4MkZUl/q9MlG+g==", "dev": true, "dependencies": { "@types/react": "*" @@ -6358,17 +6358,17 @@ "integrity": "sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ==" }, "node_modules/@types/secp256k1": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.4.tgz", - "integrity": "sha512-oN0PFsYxDZnX/qSJ5S5OwaEDTYfekhvaM5vqui2bu1AA39pKofmgL104Q29KiOXizXS2yLjSzc5YdTyMKdcy4A==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.5.tgz", + "integrity": "sha512-aIonTBMErtE3T9MxDvTZRzcrT/mCqpEZBw3CCY/i+oG9n57N/+7obBkhFgavUAIrX21bU0LHg1XRgtaLdelBhA==", "dependencies": { "@types/node": "*" } }, "node_modules/@types/styled-system": { - "version": "5.1.19", - "resolved": "https://registry.npmjs.org/@types/styled-system/-/styled-system-5.1.19.tgz", - "integrity": "sha512-KO570UwUWA6FgD+PWrGj5Lc++J5O1SCj7BWys5SE5sSK14Sy+Wl6K13kPfFOIAZdpwTZR9bGv52FLTHCtsvHbQ==", + "version": "5.1.20", + "resolved": "https://registry.npmjs.org/@types/styled-system/-/styled-system-5.1.20.tgz", + "integrity": "sha512-oiaziko13jwrjmOCYfosXds7ZoPtWyBU96ONYtmYL2c+yh/yjcqVDs+w78VpTHLwZZ01yU9//ZyIhxqay8vbCw==", "dependencies": { "csstype": "^3.0.2" } @@ -6383,14 +6383,14 @@ } }, "node_modules/@types/trusted-types": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.4.tgz", - "integrity": "sha512-IDaobHimLQhjwsQ/NMwRVfa/yL7L/wriQPMhw1ZJall0KX6E1oxk29XMDeilW5qTIg5aoiqf5Udy8U/51aNoQQ==" + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.5.tgz", + "integrity": "sha512-I3pkr8j/6tmQtKV/ZzHtuaqYSQvyjGRKH4go60Rr0IDLlFxuRT5V32uvB1mecM5G1EVAUyF/4r4QZ1GHgz+mxA==" }, "node_modules/@types/unist": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz", - "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==" + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.9.tgz", + "integrity": "sha512-zC0iXxAv1C1ERURduJueYzkzZ2zaGyc+P2c95hgkikHPr3z8EdUZOlgEQ5X0DRmwDZn+hekycQnoeiiRVrmilQ==" }, "node_modules/@types/ws": { "version": "8.5.7", @@ -16364,9 +16364,9 @@ } }, "node_modules/rpc-websockets": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.6.0.tgz", - "integrity": "sha512-Jgcs8q6t8Go98dEulww1x7RysgTkzpCMelVxZW4hvuyFtOGpeUz9prpr2KjUa/usqxgFCd9Tu3+yhHEP9GVmiQ==", + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.6.1.tgz", + "integrity": "sha512-MmRGaJJvxTHSRxYPjJJqcj2zWnCetw7YbYbKlD0Yc7qVw6PsZhRJg1MI3mpWlpBs+4zO+urlNfLl9zLsdOD/gA==", "dependencies": { "@babel/runtime": "^7.17.2", "eventemitter3": "^4.0.7", @@ -18156,9 +18156,9 @@ } }, "node_modules/vite": { - "version": "4.4.11", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.11.tgz", - "integrity": "sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", + "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", "dev": true, "dependencies": { "esbuild": "^0.18.10", diff --git a/package.json b/package.json index c52a69aca..4270543a1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@popperjs/core": "^2.11.5", "@rainbow-me/rainbowkit": "1.0.11", "@react-spring/web": "^9.7.1", - "@reserve-protocol/token-zapper": "2.6.3", + "@reserve-protocol/token-zapper": "2.6.7", "@uiw/react-md-editor": "^3.20.5", "@uniswap/permit2-sdk": "^1.2.0", "@viem/anvil": "^0.0.6", diff --git a/src/views/issuance/components/zap/state/zapper.ts b/src/views/issuance/components/zap/state/zapper.ts index 8308bfeef..1cdb4affe 100644 --- a/src/views/issuance/components/zap/state/zapper.ts +++ b/src/views/issuance/components/zap/state/zapper.ts @@ -9,7 +9,6 @@ import { import { atom } from 'jotai' import { loadable } from 'jotai/utils' import { onlyNonNullAtom, simplifyLoadable } from 'utils/atoms/utils' -import { createProxiedOneInchAggregator } from './createProxiedOneInchAggregator' import mixpanel from 'mixpanel-browser' import { chainIdAtom, clientAtom } from 'state/atoms' @@ -88,7 +87,7 @@ export const zapperState = loadable( chainIdToConfig[provider.network.chainId].config, chainIdToConfig[provider.network.chainId].setup ) - universe.dexAggregators.push(createKyberswap('KyberSwap', universe, 30)) + universe.dexAggregators.push(createKyberswap('KyberSwap', universe, 20)) return universe } catch (e) { mixpanel.track('Failed zapper set up', {