In commiteth.util.crypto-fiat-value we define a bunch of utility functions to retrieve the fiat value of various cryptocurrencies. As part of commiteth.scheduler/update-balances these functions are called for every bounty every 10 minutes.
This results in a lot of requests to our fiat value provider (coinmarketcap usually) causing them to shut us off with 429 Too Many Requests.
We should implement a mechanism to cache our fiat value provider's response for a limited amount of time and only refresh this data if it's too old.
In
commiteth.util.crypto-fiat-value
we define a bunch of utility functions to retrieve the fiat value of various cryptocurrencies. As part ofcommiteth.scheduler/update-balances
these functions are called for every bounty every 10 minutes.This results in a lot of requests to our fiat value provider (coinmarketcap usually) causing them to shut us off with
429 Too Many Requests
.We should implement a mechanism to cache our fiat value provider's response for a limited amount of time and only refresh this data if it's too old.