diff --git a/src/endpoints/quest_boost/get_claim_params.rs b/src/endpoints/quest_boost/get_claim_params.rs index fb577ebf..8959551b 100644 --- a/src/endpoints/quest_boost/get_claim_params.rs +++ b/src/endpoints/quest_boost/get_claim_params.rs @@ -38,10 +38,10 @@ pub async fn handler( let boost: Document = res.unwrap(); let num_of_winners = boost.get("num_of_winners").unwrap().as_i32().unwrap(); let decimals = boost.get("token_decimals").unwrap().as_i32().unwrap(); - let amount = boost.get("amount").unwrap().as_i32().unwrap() as u32 * 10u32.pow(decimals as u32); - let modified_amount = amount / num_of_winners as u32; + let amount: u128 = boost.get("amount").unwrap().as_i32().unwrap() as u128 * 10u128.pow(decimals as u32); + let modified_amount = amount / num_of_winners as u128; let token = boost.get("token").unwrap().as_str().unwrap(); - + let winner_list = boost.get("winner").unwrap().as_array().unwrap(); let bson_value: Bson = Bson::String(address.clone());