-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add Doma Protocol TVL adapter #17209
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
base: main
Are you sure you want to change the base?
Conversation
|
The adapter at projects/doma exports TVL: |
|
You cant just scrape for contracts and include them as TVL - how does DOMA work? |
Doma is a DomainFi protocol enabling fractionalization of web3 domains on the Doma L2 (Chain ID: 97477). TVL tracks USDC.e balances in protocol contracts: - DomaFractionalization (diamond proxy) - DomaLaunchpad contracts - Associated Uniswap V3 pools Addresses discovered dynamically via Blockscout explorer API.
326a01c to
d8e17c6
Compare
|
The adapter at projects/doma exports TVL: |
|
Refactored! @waynebruce0x Now it queries NameTokenFractionalized events from the DomaFractionalization Basically: users deposit domains → get fractionalized into ERC-20s → sold via launchpads How Doma Works:
|
| * Fetches UniswapV3 pools that hold USDC.e (for graduated tokens) | ||
| * These are pools where fractionalized domain tokens trade against USDC.e | ||
| */ | ||
| async function fetchUniswapV3Pools() { |
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.
Are all the uniswap V3 pools going to be part of Doma TVL? Are we aiming to just count the whole chain TVL here?
|
|
||
| async function tvl(api) { | ||
| // Get all fractionalized tokens (includes launchpads and vesting wallets) | ||
| const fractionalizedTokens = await fetchFractionalizedTokens() |
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.
any uncirculating or vesting tokens shouldnt be counted in tvl
Doma is a DomainFi protocol enabling fractionalization of web3 domains on the Doma L2 (Chain ID: 97477).
TVL tracks USDC.e balances in protocol contracts:
Addresses discovered dynamically via Blockscout explorer API
Twitter:
https://x.com/domaprotocol
Audit link:
Website:
https://doma.xyz