From 5c2d0479e985ff5d7a4ec7c56091e677fcd634f8 Mon Sep 17 00:00:00 2001 From: Iris Date: Fri, 17 Nov 2023 15:09:22 +0100 Subject: [PATCH] fix: tvl achievement --- src/endpoints/achievements/batched/verify_tvl_batched.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/endpoints/achievements/batched/verify_tvl_batched.rs b/src/endpoints/achievements/batched/verify_tvl_batched.rs index 0d865548..c02e0494 100644 --- a/src/endpoints/achievements/batched/verify_tvl_batched.rs +++ b/src/endpoints/achievements/batched/verify_tvl_batched.rs @@ -24,7 +24,7 @@ pub async fn handler( } let url = format!( - "https://stack.starkendefi.xyz/public/aggregates/{}", + "https://public.starkendefi.xyz/public/aggregates/{}", to_hex(addr) ); let client = reqwest::Client::new(); @@ -41,9 +41,9 @@ pub async fn handler( let mut achieved: Vec = vec![]; for achievement in achievements.achievements { if !achievement.completed - && (achievement.id == 11 && total_tvl_dollars >= 100.0) - || (achievement.id == 12 && total_tvl_dollars >= 1000.0) - || (achievement.id == 13 && total_tvl_dollars >= 10000.0) + && ((achievement.id == 11 && total_tvl_dollars >= 100.0) + || (achievement.id == 12 && total_tvl_dollars >= 1000.0) + || (achievement.id == 13 && total_tvl_dollars >= 10000.0)) { match state .upsert_completed_achievement(addr, achievement.id)