Skip to content

track parrot fees - #5435

Closed
urvi-bala wants to merge 3 commits into
DefiLlama:masterfrom
LamprosDAO:add-parrot-fees
Closed

urvi-bala wants to merge 3 commits into
DefiLlama:masterfrom
LamprosDAO:add-parrot-fees

Conversation

@urvi-bala

Copy link
Copy Markdown
Contributor

Addresses issue: #5232

@ghost

ghost commented Dec 31, 2025

Copy link
Copy Markdown

The parrot adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees parrot

🦙 Running PARROT adapter 🦙
---------------------------------------------------
Start Date:	Tue, 30 Dec 2025 07:08:21 GMT
End Date:	Wed, 31 Dec 2025 07:08:21 GMT
---------------------------------------------------

------ ERROR ------
Error: Allium API Key is required[Ignore this error for github bot]
    at _queryAllium (/home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:47:11)
    at /home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:9:71
Allium API Key is required[Ignore this error for github bot]

@bheluga bheluga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@urvi-bala thanks for the PR.
Since parrot protocol is a CDP, we need to calculate interests paid by borrowers too

@bheluga bheluga self-assigned this Jan 2, 2026
@ghost

ghost commented Jan 3, 2026

Copy link
Copy Markdown

The parrot adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees parrot

🦙 Running PARROT adapter 🦙
---------------------------------------------------
Start Date:	Fri, 02 Jan 2026 02:17:29 GMT
End Date:	Sat, 03 Jan 2026 02:17:29 GMT
---------------------------------------------------

------ ERROR ------
Error: Allium API Key is required[Ignore this error for github bot]
    at _queryAllium (/home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:47:11)
    at /home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:9:71
Allium API Key is required[Ignore this error for github bot]

@urvi-bala

Copy link
Copy Markdown
Contributor Author

the script already captures borrower interest because all debt repayments (principal + interest) flow through the Debt Originator accounts (PAI, pBTC, pSOL), which are being tracked in the FEE_ACCOUNTS array.

@bheluga

bheluga commented Jan 5, 2026

Copy link
Copy Markdown
Member

the script already captures borrower interest because all debt repayments (principal + interest) flow through the Debt Originator accounts (PAI, pBTC, pSOL), which are being tracked in the FEE_ACCOUNTS array.

Some part of the interest should be going to supply side (liquidity providers) as well, can we track that as dailySupplySideRevenue?
dailyFees = dailyRevenue + dailySupplySideRevenue

@ghost

ghost commented Jan 6, 2026

Copy link
Copy Markdown

The parrot adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees parrot

🦙 Running PARROT adapter 🦙
---------------------------------------------------
Start Date:	Mon, 05 Jan 2026 02:45:01 GMT
End Date:	Tue, 06 Jan 2026 02:45:01 GMT
---------------------------------------------------

------ ERROR ------
Error: Allium API Key is required[Ignore this error for github bot]
    at _queryAllium (/home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:47:11)
    at /home/runner/work/dimension-adapters/dimension-adapters/helpers/allium.ts:9:71
Allium API Key is required[Ignore this error for github bot]

@bheluga

bheluga commented Jul 7, 2026

Copy link
Copy Markdown
Member

Closing the PR as protocol has ceased operations

@bheluga bheluga closed this Jul 7, 2026
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.

2 participants