Need
- after discussing with Compound, there needs to be a way to store multiple custom elements:
- addresses of the provider operator on multiple blockchains for providers to receive rewards from users (eg. liquity-style)
Solution
All those needs can be easily solved with a single solution.
On deweb providers, add a /__deweb_info endpoint (available on all subdomains) that returns a JSON:
{
"app": "deweb",
"version": ...,
"misc": ...
}
Version contains the version number of the deweb provider.
And "misc" contains a raw json put in the JSON config file in the "misc_public_info" section.
Need
Solution
All those needs can be easily solved with a single solution.
On deweb providers, add a
/__deweb_infoendpoint (available on all subdomains) that returns a JSON:{ "app": "deweb", "version": ..., "misc": ... }Version contains the version number of the deweb provider.
And "misc" contains a raw json put in the JSON config file in the "misc_public_info" section.