Create a new /tvl/save endpoint to store daily tvl. the key for DB can be the timestamp.
On /tvl endpoint then extend the json output for include the daily TVl. Keeping as the TvlUSD the current (latest) TVL.
Don't change the TvlUSD as this is already integrated in Defillama and changes could break their integration.
Create a new /tvl/save endpoint to store daily tvl. the key for DB can be the timestamp.
On /tvl endpoint then extend the json output for include the daily TVl. Keeping as the TvlUSD the current (latest) TVL. Don't change the TvlUSD as this is already integrated in Defillama and changes could break their integration.