fix: fixed high gas prices (#788)

* fix: fixed high gas prices

* env: remove sentry
This commit is contained in:
Linkie Link 2024-02-09 14:36:44 +01:00 committed by GitHub
parent ba8758aa91
commit ffa5abb55b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 484 additions and 475 deletions

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

View File

@ -21,60 +21,59 @@
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.32.2",
"@delphi-labs/shuttle-react": "^3.10.0",
"@keplr-wallet/cosmos": "^0.12.42",
"@sentry/nextjs": "^7.94.1",
"@delphi-labs/shuttle-react": "^3.19.1",
"@keplr-wallet/cosmos": "^0.12.67",
"@splinetool/react-spline": "^2.2.6",
"@splinetool/runtime": "^1.0.47",
"@splinetool/runtime": "^1.0.51",
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/react-table": "^8.11.8",
"@tippyjs/react": "^4.2.6",
"bignumber.js": "^9.1.2",
"classnames": "^2.3.2",
"classnames": "^2.5.1",
"debounce-promise": "^3.1.2",
"ibc-domains-sdk": "^1.1.0",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"moment": "^2.29.4",
"moment": "^2.30.1",
"next": "^13.5.4",
"react": "^18.2.0",
"react-device-detect": "^2.2.3",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.6",
"react-helmet-async": "^2.0.3",
"react-helmet-async": "^2.0.4",
"react-qr-code": "^2.0.12",
"react-router-dom": "^6.21.3",
"react-router-dom": "^6.22.0",
"react-spring": "^9.7.3",
"react-toastify": "^10.0.4",
"react-use-clipboard": "^1.0.9",
"recharts": "^2.10.1",
"recharts": "^2.12.0",
"sharp": "^0.33.2",
"swr": "^2.2.4",
"tailwind-scrollbar-hide": "^1.1.7",
"zustand": "^4.4.7"
"zustand": "^4.5.0"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@types/debounce-promise": "^3.1.9",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.throttle": "^4.1.8",
"@types/node": "^20.10.6",
"@types/react": "18.2.41",
"@types/react-dom": "18.2.18",
"@types/lodash.throttle": "^4.1.9",
"@types/node": "^20.11.17",
"@types/react": "18.2.55",
"@types/react-dom": "18.2.19",
"@types/react-helmet": "^6.1.11",
"autoprefixer": "^10.4.17",
"dotenv": "^16.4.1",
"dotenv-cli": "^7.3.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.0.4",
"eslint-config-next": "^14.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"husky": "^9.0.10",
"identity-obj-proxy": "^3.0.0",
"lint-staged": "^15.2.0",
"prettier": "^3.2.4",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"shelljs": "^0.8.5",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.4.1",
"typescript": "5.3.3"
}
}

View File

@ -194,9 +194,9 @@ function BorrowModal(props: Props) {
}
}, [
amount,
accountDebt,
isRepay,
repayFromWallet,
maxRepayAmount,
max,
asset,
borrowToWallet,

View File

@ -121,7 +121,7 @@ export default function Slider(props: Props) {
{ x: (value / 100) * -12, y: 0 },
{ x: (sliderRect.width / 100) * value, y: -2 },
]
}, [value, sliderRect.width])
}, [value, sliderRect.width, debounceFunction])
useEffect(() => {
handleSliderRect()

View File

@ -131,8 +131,8 @@ const Osmosis1: ChainConfig = {
coinDecimals: 6,
coinGeckoId: 'osmosis',
gasPriceStep: {
low: 0,
average: 0.025,
low: 0.0025,
average: 0.003,
high: 0.04,
},
},
@ -153,7 +153,7 @@ const Osmosis1: ChainConfig = {
},
explorerName: 'Mintscan',
features: ['ibc-transfer', 'ibc-go'],
gasPrice: '0.025uosmo',
gasPrice: '0.003uosmo',
id: ChainInfoID.Osmosis1,
name: 'Osmosis',
network: NETWORK.MAINNET,

View File

@ -191,7 +191,6 @@ export default function createBroadcastSlice(
if (simulateResult) {
const { success } = simulateResult
if (success) {
const fee = simulateResult.fee
return {

907
yarn.lock

File diff suppressed because it is too large Load Diff