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

Refactor protocol metrics logic to avoid repetition #97

Open
0xAurelius opened this issue Jan 9, 2024 · 0 comments
Open

Refactor protocol metrics logic to avoid repetition #97

0xAurelius opened this issue Jan 9, 2024 · 0 comments
Assignees

Comments

@0xAurelius
Copy link
Collaborator

Rather than storing a manually maintained list of reserve assets and LPs and then repeating the same lines of code for each one, we should have logic that loops over an array of non-carbon reserve assets (e.g. USDC, KLIMA), carbon reserve assets (e.g. BCT, UBO) and LP assets

This will significantly reduce repetition and reduce the manual burden of maintaining the protocol metrics

Eventually we can load the lists of assets dynamically by reading from the treasury smart contract itself, but for now let's just make them an array of constants in the code

@0xAurelius 0xAurelius self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant