fix default prio fee
This commit is contained in:
parent
c95841863e
commit
9eabc31245
|
@ -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.
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue