|
@@ -22,7 +22,7 @@ export interface PoolInfo {
|
|
|
/** Pool address → PoolInfo */
|
|
/** Pool address → PoolInfo */
|
|
|
let poolCache: Map<string, PoolInfo> = new Map()
|
|
let poolCache: Map<string, PoolInfo> = new Map()
|
|
|
let lastFetchTime = 0
|
|
let lastFetchTime = 0
|
|
|
-const CACHE_TTL_MS = 60_000 // 1 minute
|
|
|
|
|
|
|
+const CACHE_TTL_MS = 60 * 60_000 // 60 minutes
|
|
|
|
|
|
|
|
interface ByrealApiResponse {
|
|
interface ByrealApiResponse {
|
|
|
retCode: number
|
|
retCode: number
|