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

Add Reserve Treasury #10113

Merged
merged 3 commits into from
May 6, 2024
Merged

Add Reserve Treasury #10113

merged 3 commits into from
May 6, 2024

Conversation

KevinMoll-ls
Copy link
Contributor

There is another PR to reference this treasury from data.ts in DefiLlama-Server repository

Making another PR to reference this treasury from data.ts in DefiLlama-Server repository
@llamatester
Copy link

The adapter at projects/treasury/reserve.js exports TVL:

ethereum                  12.34 M
ethereum-ownTokens        832.21 k
ownTokens                 832.21 k

total                    12.34 M 

@llamatester
Copy link

Error while running adapter at projects/treasury/reserve.js:

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/tokenMapping.js:75:50
    at Array.forEach (<anonymous>)
    at getUniqueAddresses (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/tokenMapping.js:75:13)
    at sumTokens2 (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/unwrapLPs.js:722:12)
    at sumTokens (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/sumTokens.js:64:12)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/helper/sumTokens.js:48:25
    at getTvl (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:52:29)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:143:15
    at Array.map (<anonymous>)
    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:131:29
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'
    at Object.openSync (node:fs:596:3)
    at Object.writeFileSync (node:fs:2322:35)
    at process.saveCache (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/cache.js:152:17)
    at process.emit (node:events:529:35)
    at process.exit (node:internal/process/per_thread:191:15)
    at process.handleError (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/utils/handleError.js:18:11)
    at process.emit (node:events:529:35)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'
}

@g1nt0ki g1nt0ki merged commit c05f415 into DefiLlama:main May 6, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented May 6, 2024

thanks for the PR

@llamatester
Copy link

The adapter at projects/treasury/reserve.js exports TVL:

ethereum                  12.23 M
ethereum-ownTokens        820.74 k
ownTokens                 820.74 k

total                    12.23 M 

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.

3 participants