-
Notifications
You must be signed in to change notification settings - Fork 826
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
chore: Add Usual USD0++ in defillama yield server #1627
Conversation
Error while running usual adapter: Test Suites: 1 failed, 1 total
|
Error while running usual adapter: Test Suites: 1 failed, 1 total
|
The usual-money adapter exports pools: Test Suites: 1 passed, 1 total
|
This pull request introduces a new feature to fetch and calculate the APY for the USD0++ token on the Ethereum blockchain. The changes involve integrating several libraries, defining constants, and implementing the
apy
function to return the APY data.Key changes include:
Library Integrations:
@defillama/sdk
andaxios
libraries for API calls and data fetching.Constants Definition:
usd0PP
,usd0
,usual
), symbol (USD0++
), API endpoints (baseURLRewardRate
,baseURLLlamaPrice
), and a scalar value (scalarOne
).APY Calculation:
apy
function to fetch total supply, price, TVL (Total Value Locked), and reward rate, and calculate the APY based on these values.Export Module:
apy
function and a URL for staking actions.