Skip to content

Create index.js #1948

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create index.js #1948

wants to merge 1 commit into from

Conversation

trxadm
Copy link

@trxadm trxadm commented Jun 27, 2025

Add TR.ENERGY yield adapter for Tron (tr-energy)

@llamatester
Copy link

The tr-energy adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 10 passed, 10 total
Snapshots: 0 total
Time: 0.263 s
Ran all test suites.

Nb of pools: 1
 

Sample pools:
┌─────────┬────────────────┬────────┬─────────────┬────────┬───────────────────┬─────────┬──────────────────┬─────────────────────┐
│ (index) │ pool           │ chain  │ project     │ symbol │ tvlUsd            │ apyBase │ underlyingTokens │ url                 │
├─────────┼────────────────┼────────┼─────────────┼────────┼───────────────────┼─────────┼──────────────────┼─────────────────────┤
│ 0       │ 'trenergy-trx' │ 'Tron' │ 'tr-energy' │ 'TRX'  │ 47763839.88029468 │ 15.1524 │ [ 'TRX' ]        │ 'https://tr.energy' │
└─────────┴────────────────┴────────┴─────────────┴────────┴───────────────────┴─────────┴──────────────────┴─────────────────────┘

@trxadm
Copy link
Author

trxadm commented Jun 27, 2025

So now I just wait for the merge?

}

module.exports = {
project: "tr-energy",
Copy link
Collaborator

Choose a reason for hiding this comment

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

can delete that line

timetravel: false,
apy,
url: "https://tr.energy",
misrepresentedTokens: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can delete that line

const stats = await getStats();

// TVL
const tvlTrx = stats.total_energy / 10.52;
Copy link
Collaborator

@slasher125 slasher125 Jun 28, 2025

Choose a reason for hiding this comment

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

@trxadm 10.52 shouldnt be hardcoded given its a dynamic conversion rate??

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