diff --git a/api/api/routes.py b/api/api/routes.py index 4fae7dc..aa1b1c8 100644 --- a/api/api/routes.py +++ b/api/api/routes.py @@ -17,12 +17,14 @@ def status(): @apiv1.route("/info") def info(): enabled_tokens = Token.enabled_tokens() + rate_limit_days = current_app.config['FAUCET_RATE_LIMIT_TIME_LIMIT_SECONDS'] / (24*60*60) enabled_tokens_json = [ { 'address': t.address, 'name': t.name, 'maximumAmount': t.max_amount_day, - 'type': t.type + 'type': t.type, + 'rateLimitDays': round(rate_limit_days, 2) } for t in enabled_tokens ] return jsonify( diff --git a/api/api/services/validator.py b/api/api/services/validator.py index 9c61252..b7342f2 100644 --- a/api/api/services/validator.py +++ b/api/api/services/validator.py @@ -1,5 +1,4 @@ import datetime -import pdb from flask import current_app, request from web3 import Web3