change interval to refresh trade history
This commit is contained in:
parent
fa082d09bd
commit
5bcec8dd69
|
@ -65,7 +65,7 @@ const OpenOrdersTable = () => {
|
|||
})
|
||||
console.log('error', `${e}`)
|
||||
} finally {
|
||||
await sleep(300)
|
||||
await sleep(600)
|
||||
actions.reloadMangoAccount()
|
||||
actions.updateOpenOrders()
|
||||
setCancelId(null)
|
||||
|
|
|
@ -281,7 +281,7 @@ export default function TradeForm() {
|
|||
side === 'buy' ? askInfo : bidInfo
|
||||
)
|
||||
}
|
||||
await sleep(500)
|
||||
await sleep(600)
|
||||
actions.reloadMangoAccount()
|
||||
actions.updateOpenOrders()
|
||||
actions.loadMarketFills()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue