-
Notifications
You must be signed in to change notification settings - Fork 946
Add TR.ENERGY yield adapter (TRON) #1896
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
Conversation
Error while running trenergy.js adapter: Test Suites: 2 failed, 2 total
|
@trxadm i think there is a misunderstanding about how the yield server works. pls check the readme (no need to add test scripts, we have these!) hardcoded staking values and apr?? |
Add dynamic TRX price from core.tr.energy and calculate TVL from total_energy.
Fetch TRX/USDT rate from core.tr.energy instead of hardcoding
Delete test.js
thanks for the comments! We’ve removed the test script and replaced the hardcoded values with live data: TRX/USDT rate is now fetched from https://core.tr.energy/api/config TVL is dynamically calculated from total_energy in https://core.tr.energy/api/energy-stats Final TVL = total_energy / 10.52 × TRX price from the config API All logic is now based on live API data, no hardcoded values remain |
@trxadm pls remove the tests files, also, pls check the readme again what needs to be exported (and shouldn't be exported from the adapter!) yield server is slightly different compared to the tvl server |
Error while running trenergy.js adapter: Test Suites: 2 failed, 2 total
|
Error while running trenergy.js adapter: Test Suites: 1 failed, 1 total
|
Error while running trenergy.js adapter: Test Suites: 1 failed, 1 total
|
@trxadm project= |
Changed project: "trenergy" to project: "tr-energy"
Error while running trenergy.js adapter: Test Suites: 1 failed, 1 total
|
edited index.js
Error while running trenergy.js adapter: Test Suites: 1 failed, 1 total
|
@trxadm the structure is still wrong, u need to create a folder |
user created new PR here #1948 |
TR.ENERGY is a non-custodial platform on TRON that automates energy delegation.
Users stake TRX on their own wallets and delegate energy rights to our hotspot to save on transaction costs.
This adapter returns estimated APY and TVL for the TRX staking via TR.ENERGY based on on-chain balances and TRX price.
Hotspot: TMP3f4UtGBc3dMAj7eA2afzyULaehN3uhZ
Website: https://tr.energy
Explorer: https://tronscan.org/#/address/TMP3f4UtGBc3dMAj7eA2afzyULaehN3uhZ