Skip to content

Decimal bug fix #1941

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

Merged
merged 1 commit into from
Jun 26, 2025
Merged

Decimal bug fix #1941

merged 1 commit into from
Jun 26, 2025

Conversation

0xSpartan
Copy link
Contributor

Moved the decimal over to give us the accurate APY.

apy before:

0.4116926753388426 -> .4117%

apy after (correct apy):

41.16926753388426 -> 41.17%

We were under the impression DL would auto-convert. Our mistake.

@llamatester
Copy link

The mainstreet adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬──────────────┬─────────┬───────────────┬───────────────────┬───────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────┐
│ (index) │ pool                                         │ chain   │ project      │ symbol  │ tvlUsd        │ apyBase           │ apyReward │ rewardTokens                                     │ underlyingTokens                                 │ url                          │
├─────────┼──────────────────────────────────────────────┼─────────┼──────────────┼─────────┼───────────────┼───────────────────┼───────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────┤
│ 0       │ '0xE5Fb2Ed6832deF99ddE57C0b9d9A56537C89121D' │ 'Sonic' │ 'mainstreet' │ 'MSUSD' │ 228297.894557 │ 41.16926753388426 │ 0         │ [ '0xE5Fb2Ed6832deF99ddE57C0b9d9A56537C89121D' ] │ [ '0x29219dd400f2Bf60E5a23d13Be72B486D4038894' ] │ 'https://mainstreet.finance' │
└─────────┴──────────────────────────────────────────────┴─────────┴──────────────┴─────────┴───────────────┴───────────────────┴───────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────┘

@slasher125 slasher125 merged commit 502b10b into DefiLlama:master Jun 26, 2025
1 check passed
@slasher125
Copy link
Collaborator

have updated the history

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