mixed up directions

This commit is contained in:
yenicelik 2023-06-25 21:19:13 -04:00
parent bbdff1d916
commit 627c359645

View File

@ -65,8 +65,8 @@ pub async fn query_user_stats<'a>(
{ {
// TODO: We should add the threshold that determines if a user is premium into app.config or so // TODO: We should add the threshold that determines if a user is premium into app.config or so
Some(user_balance) => { Some(user_balance) => {
if user_balance.total_spent_outside_free_tier - user_balance.total_deposits if user_balance.total_deposits - user_balance.total_spent_outside_free_tier
< Decimal::from(0) <= Decimal::from(0)
{ {
trace!("User has 0 balance"); trace!("User has 0 balance");
return Err(Web3ProxyError::PaymentRequired); return Err(Web3ProxyError::PaymentRequired);