mixed up directions
This commit is contained in:
parent
bbdff1d916
commit
627c359645
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user