-
Notifications
You must be signed in to change notification settings - Fork 2.1k
active-users: add protocols via allium #8533
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
DaniiRix
wants to merge
11
commits into
DefiLlama:master
Choose a base branch
from
DaniiRix:feat/active-users
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
19d598f
active-users: add 18 dex via allium
DaniiRix b4d27e1
move to users/utils
DaniiRix 64a98f5
add lending protocols
DaniiRix 953a042
add caching
DaniiRix 8e1452f
add LSTs and hyperliquid
DaniiRix 7aca60f
fix LST exit addresses, drop wBETH and StakeWise
DaniiRix cd232b5
active-users: migrate uniswap+pancakeswap, add compound-v3/ethena/falcon
DaniiRix 1e364d0
add dune script
DaniiRix 23d5ff3
active-users: add 64 dex protocols from allium
DaniiRix 54f00a0
review fix
DaniiRix f03c45c
add dune dex/lending users, remove stale entries
DaniiRix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { CHAIN } from "../helpers/chains"; | ||
| import { duneDexUsersExport, duneLendingUsersExport } from "./utils/duneUsers"; | ||
|
|
||
| const dexUsers: { id: string; projects: string[]; chains: Record<string, string> }[] = [ | ||
| { | ||
| id: "parent#hybra", | ||
| projects: ["hybra"], | ||
| chains: { [CHAIN.HYPERLIQUID]: "2025-06-23" }, | ||
| }, | ||
| { | ||
| id: "parent#ramses-exchange-hl", | ||
| projects: ["ramses", "ramsesxyz"], | ||
| chains: { | ||
| [CHAIN.ARBITRUM]: "2023-03-16", | ||
| [CHAIN.HYPERLIQUID]: "2025-06-30", | ||
| }, | ||
| }, | ||
| { | ||
| id: "parent#nest", | ||
| projects: ["nest"], | ||
| chains: { [CHAIN.HYPERLIQUID]: "2025-11-06" }, | ||
| }, | ||
| ]; | ||
|
|
||
| const lendingUsers: { id: string; project: string; version: number; chains: Record<string, string> }[] = [ | ||
| { | ||
| id: "2088", // Compound V3 | ||
| project: "compound", | ||
| version: 3, | ||
| chains: { | ||
| [CHAIN.ETHEREUM]: "2022-08-26", | ||
| [CHAIN.POLYGON]: "2023-03-07", | ||
| [CHAIN.ARBITRUM]: "2023-05-14", | ||
| [CHAIN.BASE]: "2023-08-12", | ||
| [CHAIN.UNICHAIN]: "2025-03-08", | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
| export default dexUsers.map((config) => ({ | ||
| id: config.id, | ||
| adapter: duneDexUsersExport(config), | ||
| })).concat(lendingUsers.map(({ id, ...config }) => ({ | ||
| id, | ||
| adapter: duneLendingUsersExport(config), | ||
| }))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| import { CHAIN } from "../helpers/chains"; | ||
| import { alliumTokenUsersExport } from "./utils/alliumUsers"; | ||
|
|
||
| const tokenUsers = [ | ||
| { | ||
| id: "182", // Lido | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", // stETH | ||
| // The protocol burns stETH on finalisation, so the exit is the queue transfer. | ||
| exitAddresses: ["0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1"], // unstETH withdrawal queue | ||
| start: "2020-12-18", | ||
| }, | ||
| { | ||
| id: "2626", // ether.fi Stake | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0x35fA164735182de50811E8e2E824cFb9B6118ac2", // eETH, the stake receipt; weETH only wraps it | ||
| // Withdrawals park eETH here and burn later on claim. | ||
| exitAddresses: ["0x7d5706f6ef3F89B3951E23e557CDFBC3239D4E2c"], // Withdraw Request NFT | ||
| start: "2023-11-16", | ||
| }, | ||
| { | ||
| id: "900", // Rocket Pool | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0xae78736Cd615f374D3085123A210448E74Fc6393", // rETH, burns straight to zero on redeem | ||
| start: "2021-10-07", | ||
| }, | ||
| { | ||
| id: "4133", // Ethena USDe | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497", | ||
| start: "2023-11-21", | ||
| }, | ||
| { | ||
| id: "6790", // Falcon Finance | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0xc8CF6D7991f15525488b2A83Df53468D682Ba4B0", | ||
| start: "2025-02-12", | ||
| }, | ||
| { | ||
| id: "3946", // Kelp | ||
| chain: CHAIN.ETHEREUM, | ||
| token: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7", // rsETH | ||
| // Every rsETH exit goes here and none burns to zero; without it the adapter | ||
| // saw 10 users in a week where the protocol saw 50. | ||
| exitAddresses: ["0x62De59c08eB5dAE4b7E6F7a8cAd3006d6965ec16"], // LRTWithdrawalManager | ||
| start: "2023-12-06", | ||
| }, | ||
| ]; | ||
|
|
||
| export default tokenUsers.map((config) => ({ | ||
| id: config.id, | ||
| adapter: alliumTokenUsersExport(config), | ||
| })); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
hmm, this excludes stake, wrap and unwraps?
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.
wrap/unwrap is neither entry nor exit so i deliberately excluded them