From c5cbf4d4e9b78e3a7e22a5d8788e9c96a1812344 Mon Sep 17 00:00:00 2001 From: Owshen Network Date: Tue, 18 Jun 2024 15:56:48 +0330 Subject: [PATCH] fix: Increase update threshold --- src/apis/coins.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/coins.rs b/src/apis/coins.rs index 98b1745..61f5fc0 100644 --- a/src/apis/coins.rs +++ b/src/apis/coins.rs @@ -62,7 +62,7 @@ pub async fn coins( log::info!("Cache not found"); None }; - const UPDATE_THRESHOLD: u64 = 5; + const UPDATE_THRESHOLD: u64 = 128; // let root: U256 = contract.method("root", ())?.call().await?; let contract_chc_state: (U256, U256) = contract.method("getState", ())?.call().await?;