Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing APY 500 #239

Open
mikeshultz opened this issue Nov 14, 2022 · 0 comments
Open

Trailing APY 500 #239

mikeshultz opened this issue Nov 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mikeshultz
Copy link
Member

Seen in the logs:

ERROR 2022-11-14 18:50:34,532 django.request Internal Server Error: /api/v1/apr/trailing/30
2022-11-14 18:50:34 ousd-analytics[20221114t182509]  Traceback (most recent call last):
    File "/layers/google.python.pip/pip/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner      response = get_response(request)
    File "/layers/google.python.pip/pip/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/layers/google.python.pip/pip/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback      return callback(request, *args, **kwargs)
    File "/srv/core/views.py", line 314, in api_apr_trailing_days      apr = get_trailing_apr(days=int(days))
    File "/srv/core/blockchain/apy.py", line 37, in get_trailing_apr      current = rebasing_credits_per_token(block)
    File "/srv/core/blockchain/rpc.py", line 307, in rebasing_credits_per_token      return Decimal(int(data["result"][0 : 64 + 2], 16)) / E_18  KeyError: 'result'
@mikeshultz mikeshultz added the bug Something isn't working label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant