-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Added new defillama adapter to track donut TVL and protocol fees #17308
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
Conversation
|
Error while running adapter at :
|
|
Error while running adapter at projects/Donut: |
|
The adapter at projects/donut exports TVL: |
|
Hey @0xedev for fees, please submit the PR to this repo: https://github.com/DefiLlama/dimension-adapters |
projects/donut/index.js
Outdated
| }); | ||
|
|
||
| // Count tokens in LP | ||
| await api.sumTokens({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tokens in the LP should be exported as pool2
projects/donut/fees.js
Outdated
| @@ -0,0 +1,66 @@ | |||
| const { getTimestampAtStartOfDayUTC } = require("../helper/utils"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be PR'd to https://github.com/DefiLlama/dimension-adapters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, right away
|
The adapter at projects/donut exports TVL: |
|
Error while running adapter at projects/donut: |
|
The adapter at projects/donut exports TVL: |
projects/donut/index.js
Outdated
| base: { | ||
| tvl: sumTokensExport({ | ||
| owners: [MINER_ADDRESS, MULTICALL_ADDRESS, LP_ADDRESS], | ||
| tokens: [WETH_ADDRESS, DONUT_ADDRESS], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONUT_ADDRESS should not be on this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
projects/donut/index.js
Outdated
| }), | ||
| staking: sumTokensExport({ | ||
| owners: [MINER_ADDRESS, MULTICALL_ADDRESS], | ||
| tokens: [WETH_ADDRESS, DONUT_ADDRESS], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WETH_ADDRESS should not be on this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
The adapter at projects/donut exports TVL: |
Name:
Donut
Twitter Link:
https://x.com/Glaze_Corp
List of audit links if any:
Website Link:
https://www.glazecorp.io/
Logo :
https://www.glaze.click/logo.jpg
Current TVL:
~$642k (Pooled DONUT ~ 618,523 {$321K} and Pooled WETH ~102.70 {$321K})
Treasury Addresses (if the protocol has treasury)
Chain:
Base
Coingecko ID:
Coinmarketcap ID:
Short Description (to be shown on DefiLlama):
Donut is a decentralized mining protocol on Base where users spend ETH to mine DONUT tokens. The protocol features a rotating "King Glazer" mechanism, automated difficulty adjustments, and a treasury system.
Token address and ticker if any:
DONUT: 0xAE4a37d554C6D6F3E398546d8566B25052e0169C
Category:
Onchain Capital Allocator
Oracle Provider(s):
None (Protocol uses internal pricing mechanism based on time-decay auctions)
Implementation Details:
The protocol uses a Dutch auction mechanism for mining, where the price to mine decays over time within an epoch.
Documentation/Proof:
https://www.glaze.click/learn
forkedFrom:
None
methodology:
TVL counts the tokens locked in the Miner contract, Multicall contract, and the Liquidity Pool (Uniswap V2). Fees are calculated based on the ETH spent by miners to mint DONUT. Revenue is the portion of fees sent to the Treasury.
Github org/user:
https://github.com/0xedev
Does this project have a referral program?
Yes, each mining frontend takes 5% of the fee.