order placement doesnt crash
This commit is contained in:
6
cache.js
6
cache.js
@@ -30,6 +30,10 @@ export class CacheDict {
|
||||
async get(chain, key) {
|
||||
return await redis.hGet(`${chain}|${this.series}`, key)
|
||||
}
|
||||
|
||||
async contains(chain, key) {
|
||||
return await redis.hExists(`${chain}|${this.series}`, key)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +56,6 @@ async function latestBlock(chain) {
|
||||
return await blockCaches[chain].get()
|
||||
}
|
||||
|
||||
export const vaults = new CacheSet('v')
|
||||
export const vaults = new CacheDict('v')
|
||||
export const vaultTokens = new CacheDict('vt')
|
||||
export const prices = new CacheDict('p')
|
||||
|
||||
Reference in New Issue
Block a user