From 71d3d63524ce72e5835e5b8d333fd9a8803862ca Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 9 Jun 2023 16:35:44 -0700 Subject: [PATCH] put ip rate limiting back --- web3_proxy/src/frontend/users/payment.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web3_proxy/src/frontend/users/payment.rs b/web3_proxy/src/frontend/users/payment.rs index 52f12879..f471d28d 100644 --- a/web3_proxy/src/frontend/users/payment.rs +++ b/web3_proxy/src/frontend/users/payment.rs @@ -113,8 +113,7 @@ pub async fn user_balance_post( // I suppose this is ok / good, so people don't spam this endpoint as it is not "cheap" // we rate limit by ip instead of bearer token so transactions are easy to submit from scripts // TODO: if ip is a 10. or a 172., allow unlimited - // TODO: why is login_is_authorized giving me a 403?! - // login_is_authorized(&app, ip).await?; + login_is_authorized(&app, ip).await?; // Get the transaction hash, and the amount that the user wants to top up by. // Let's say that for now, 1 credit is equivalent to 1 dollar (assuming any stablecoin has a 1:1 peg)