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

Arcade Treasury TVL #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Arcade Treasury TVL #3

wants to merge 3 commits into from

Conversation

Mouzayan
Copy link

@Mouzayan Mouzayan commented Apr 26, 2024

This PR is for getting the Arcade treasury TVL via the DefiLlama adapter module.

To test, run: node test.js projects/treasury/arcade-xyz.js

The returned TVL in the treasury should equal the number of ARCD tokens held by the treasury contract multiplied by the current ARCD price.

@Mouzayan Mouzayan requested a review from sandbochs April 26, 2024 22:49
// Treasury
const ARCADE_TREASURY = '0xac2b57b372E198F09d4bF5F445CA1228771C12c5';
const ETH_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
const ARCD = '0xe020B01B6fbD83066aa2e8ee0CCD1eB8d9Cc70bF';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider renaming this var to ARCD_TOKEN

Copy link
Collaborator

@sandbochs sandbochs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the treasury export go in a file called arcade-xyz.js here https://github.com/DefiLlama/DefiLlama-Adapters/tree/main/projects/treasury ?

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

Successfully merging this pull request may close these issues.

2 participants