Skip to content
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

fix fluid revenue spikes #2334

Merged
merged 4 commits into from
Jan 20, 2025

Conversation

bergben
Copy link
Contributor

@bergben bergben commented Jan 19, 2025

A timestamp was causing the bug, see comment in code

Before, random spikes because reveneFrom ends up 0 if call fails, e.g.:
image

After:
image

@llamabutler
Copy link

The fluid adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees fluid

🦙 Running FLUID adapter 🦙
---------------------------------------------------
Start Date:	Sat, 18 Jan 2025 19:27:16 GMT
End Date:	Sun, 19 Jan 2025 19:27:16 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 18/2/2024
Daily fees: 99.02 k
└─ Methodology: Interest paid by borrowers
Daily revenue: 11.33 k
└─ Methodology: Percentage of interest going to treasury
End timestamp: 1737314835 (2025-01-19T19:27:15.000Z)


ARBITRUM 👇
Backfill start time: 3/7/2024
Daily fees: 3.23 k
└─ Methodology: Interest paid by borrowers
Daily revenue: 336
└─ Methodology: Percentage of interest going to treasury
End timestamp: 1737314835 (2025-01-19T19:27:15.000Z)


BASE 👇
Backfill start time: 12/8/2024
Daily fees: 3.98 k
└─ Methodology: Interest paid by borrowers
Daily revenue: 398
└─ Methodology: Percentage of interest going to treasury
End timestamp: 1737314835 (2025-01-19T19:27:15.000Z)

@dtmkeng dtmkeng merged commit d5f063c into DefiLlama:master Jan 20, 2025
2 checks passed
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