Open
Conversation
arman37
suggested changes
Dec 29, 2021
Contributor
There was a problem hiding this comment.
It should count only locked tokens as TVL.
also the adapter throws error:
npm run test-tvl -- --project=gro 3250ms Wed Dec 29 22:00:53 2021
> defipulse-adapters@1.0.0 test-tvl /Users/arman/Documents/Concourse/DeFi-Pulse-Adapters
> mocha v2/testing/test/*.js "--project=gro"
Gro Protocol project adapter running & output format
runs for a variety of points at different times
TypeError: sdk.util.sumSingleBalance is not a function
at Object.tvl (/Users/arman/Documents/Concourse/DeFi-Pulse-Adapters/projects/gro/index.js:20:14)
at process._tickCallback (internal/process/next_tick.js:68:7)
1) returns valid tvl data at hour 0. Please go to the Leaderboard at https://test.defipulse.com and search for project: Gro Protocol-test-1640793807907 to validate the tvl!
2) "after each" hook: save project adapter output for "returns valid tvl data at hour 0. Please go to the Leaderboard at https://test.defipulse.com and search for project: Gro Protocol-test-1640793807907 to validate the tvl!"
0 passing (2s)
2 failing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial version of adapter for gro-protocol. Using the previous projects approach, discussing in Discord channel with Garrett