Skip to content

Resupply: dynamically fetch fee deposit controller #2975

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wavey0x
Copy link

@wavey0x wavey0x commented Apr 21, 2025

No description provided.

@wavey0x wavey0x changed the title feat: dynamically fetch fee deposit controller Resupply: dynamically fetch fee deposit controller Apr 21, 2025
@llamabutler
Copy link

The resupply adapter exports:

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

🦙 Running RESUPPLY adapter 🦙
---------------------------------------------------
Start Date:	Sun, 20 Apr 2025 10:59:09 GMT
End Date:	Mon, 21 Apr 2025 10:59:09 GMT
---------------------------------------------------

[Error: Failed to call: address:getAddress target: 0x10101010E0C3171D894B71B3400668aF311e7D94 params: FEE_DEPOSIT_CONTROLLER on chain: [ethereum] rpc:   call reverted, reason: too many arguments: types/values length mismatch (count=1, expectedCount=0, code=UNEXPECTED_ARGUMENT, version=6.13.2)   ] {
  _underlyingError: 'Error: too many arguments: types/values length mismatch (count=1, expectedCount=0, code=UNEXPECTED_ARGUMENT, version=6.13.2)',
  _isCustomError: true,
  chain: 'ethereum'
}

@llamabutler
Copy link

The resupply adapter exports:

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

🦙 Running RESUPPLY adapter 🦙
---------------------------------------------------
Start Date:	Sun, 20 Apr 2025 11:06:34 GMT
End Date:	Mon, 21 Apr 2025 11:06:34 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 13/3/2025
Daily fees: 7.93 k
Daily revenue: 5.94 k
Daily supply side revenue: 1.98 k
Daily protocol revenue: 396
Daily holders revenue: 5.55 k
End timestamp: 1745233593 (2025-04-21T11:06:33.000Z)

@llamabutler
Copy link

The resupply adapter exports:

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

🦙 Running RESUPPLY adapter 🦙
---------------------------------------------------
Start Date:	Sun, 20 Apr 2025 14:29:02 GMT
End Date:	Mon, 21 Apr 2025 14:29:02 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 13/3/2025
Daily fees: 6.66 k
Daily revenue: 5.00 k
Daily supply side revenue: 1.67 k
Daily protocol revenue: 333
Daily holders revenue: 4.66 k
End timestamp: 1745245741 (2025-04-21T14:29:01.000Z)

@llamabutler
Copy link

The resupply adapter exports:

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

🦙 Running RESUPPLY adapter 🦙
---------------------------------------------------
Start Date:	Sun, 20 Apr 2025 14:46:34 GMT
End Date:	Mon, 21 Apr 2025 14:46:34 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 13/3/2025
Daily fees: 6.68 k
Daily revenue: 5.01 k
Daily supply side revenue: 1.67 k
Daily protocol revenue: 334
Daily holders revenue: 4.68 k
End timestamp: 1745246793 (2025-04-21T14:46:33.000Z)

Copy link
Contributor

@noateden noateden left a comment

Choose a reason for hiding this comment

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

Since ReSupply's model is similar to Liquity v1, I think insurance fee is holder revenue, it shouldn't supply side revenue.

The supply side revenue should be lending fees are earned from crvUSD and frxUSD deposited as collaterals for minting reUSD.

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