Skip to content

Smardex (USDN): Fix the USDN APR calculation#1721

Closed
estebgonza wants to merge 6 commits intoDefiLlama:masterfrom
petra-foundation:bugfix/smardex-usdn-apr
Closed

Smardex (USDN): Fix the USDN APR calculation#1721
estebgonza wants to merge 6 commits intoDefiLlama:masterfrom
petra-foundation:bugfix/smardex-usdn-apr

Conversation

@estebgonza
Copy link
Contributor

I fixed the APR: there was a decimal issue with wstETH (18 instead of 8).
The percentages weren’t correctly formatted for DefiLlama, it’s fixed now.
I noticed a 2-5% difference with the percentage calculated on the website. I’ll double-check with a backend dev today to confirm it’s just the source of the wstETH price (DefiLlama vs Pyth).

Current APR
{
pool: '0xde17a000BA631c5d7c2Bd9FB692EFeA52D90DEE2',
symbol: 'USDN',
project: 'smardex',
chain: 'Ethereum',
tvlUsd: 3042305.789094045,
apyBase: 0.5804868296606
}
APR 7 Days ago
{
pool: '0xde17a000BA631c5d7c2Bd9FB692EFeA52D90DEE2',
symbol: 'USDN',
project: 'smardex',
chain: 'Ethereum',
tvlUsd: 3042305.789094045,
apyBase: 0.7589396478978999
}

@estebgonza estebgonza closed this Feb 13, 2025
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.

1 participant