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 Gro protocol adapter #502

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

flabble-gro
Copy link

Initial version of adapter for gro-protocol. Using the previous projects approach, discussing in Discord channel with Garrett

@flabble-gro flabble-gro changed the title Gro protocol Add Gro protocol adapter Dec 16, 2021
Copy link
Contributor

@arman37 arman37 left a comment

Choose a reason for hiding this comment

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

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

> [email protected] 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

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