Merge pull request #151 from yenicelik/devel

mixed up directions
This commit is contained in:
David 2023-06-25 21:20:06 -04:00 committed by GitHub
commit f15d30a98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
Some(user_balance) => {
if user_balance.total_spent_outside_free_tier - user_balance.total_deposits
< Decimal::from(0)
if user_balance.total_deposits - user_balance.total_spent_outside_free_tier
<= Decimal::from(0)
{
trace!("User has 0 balance");
return Err(Web3ProxyError::PaymentRequired);