fix default prio fee

This commit is contained in:
Adrian Brzeziński 2024-03-14 13:31:02 +01:00
parent c95841863e
commit 9eabc31245
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ const actions = mangoStore.getState().actions
const HydrateStore = () => {
const { mangoAccountPk } = useMangoAccount()
const connection = mangoStore((s) => s.connection)
const fee = mangoStore((s) => s.priorityFee)
const slowNetwork = useNetworkSpeed()
const { wallet } = useWallet()
@ -94,6 +95,7 @@ const HydrateStore = () => {
},
(slowNetwork ? 60 : 10) * SECONDS,
)
console.log(fee)
// The websocket library solana/web3.js uses closes its websocket connection when the subscription list
// is empty after opening its first time, preventing subsequent subscriptions from receiving responses.

View File

@ -40,7 +40,7 @@ export const PRIORITY_FEE_LEVELS = [
{ label: 'High', value: 2 }, // +100%
]
export const DEFAULT_PRIORITY_FEE = 1
export const DEFAULT_PRIORITY_FEE = 80000
export const DEFAULT_PRIORITY_FEE_LEVEL = PRIORITY_FEE_LEVELS[1]
const RpcSettings = () => {