llamanodes / web3-proxy

Fast loadbalancing and caching proxy for Ethereum or chains with similar JSON-RPC methods
https://llamanodes.com
GNU General Public License v3.0
148 stars 33 forks source link

only add to users cost if user has downgrade_tier_id set (otherwise leave their balance alone) #100

Closed yenicelik closed 1 year ago

yenicelik commented 1 year ago

just had an idea. we should only add to the user’s costs (and/or subtract from their balance) if the user’s tier has downgrade_tier_id set. if they don’t have a downgrade tier, then we want to just leave their balance alone.

yenicelik commented 1 year ago

I think the current solution is good, where we have two different counters for balance: one for when the user exceeds his balance (thus is eating up the free tier), and one that counts when the balance is non-zero (thus the downgrade-tier is not touched).

I will close this issue because of this, please re-open it if you think a different solution is required