change interval to refresh trade history

This commit is contained in:
Tyler Shipe 2021-09-08 14:08:54 -04:00
parent fa082d09bd
commit 5bcec8dd69
3 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ const OpenOrdersTable = () => {
})
console.log('error', `${e}`)
} finally {
await sleep(300)
await sleep(600)
actions.reloadMangoAccount()
actions.updateOpenOrders()
setCancelId(null)

View File

@ -281,7 +281,7 @@ export default function TradeForm() {
side === 'buy' ? askInfo : bidInfo
)
}
await sleep(500)
await sleep(600)
actions.reloadMangoAccount()
actions.updateOpenOrders()
actions.loadMarketFills()

View File

@ -5,7 +5,7 @@ import useInterval from './useInterval'
import useOrderbook from './useOrderbook'
const SECONDS = 1000
const _SLOW_REFRESH_INTERVAL = 10 * SECONDS
const _SLOW_REFRESH_INTERVAL = 12 * SECONDS
const useHydrateStore = () => {
const setMangoStore = useMangoStore((s) => s.set)