-
Notifications
You must be signed in to change notification settings - Fork 1.7k
track ave ai fees/revenue #6331
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import { SimpleAdapter, FetchOptions } from "../../adapters/types"; | ||
| import { CHAIN } from "../../helpers/chains"; | ||
| import { METRIC } from "../../helpers/metrics" | ||
|
|
||
| const contracts: Record<string, string> = { | ||
| [CHAIN.BASE]: "0x282970F452371454332Ca522cE59F318a2C81484", | ||
| [CHAIN.BSC]: "0xd270845b7EBb0B013DfCCD9cA782a57Bfb7A359A", | ||
| [CHAIN.ETHEREUM]: "0x60943cb06b76A24431659165c81a03c16F1C325C", | ||
| } | ||
| const feeTopic = "0xc08acb1892d97145a15c4cc6206956e56a7482a9af175f548b7b40eb336790dd"; | ||
|
|
||
| async function fetch(options: FetchOptions) { | ||
| const { getLogs, createBalances } = options; | ||
| const dailyFees = createBalances(); | ||
| const contract = contracts[options.chain] | ||
| const logs = await getLogs({ target: contract, topics: [feeTopic], entireLog: true }); | ||
|
Comment on lines
+15
to
+16
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add validation for missing contract address. If a chain is added to the adapter configuration but not to the 🛡️ Proposed fix to add validation const contract = contracts[options.chain]
+ if (!contract) throw new Error(`No contract configured for chain: ${options.chain}`)
const logs = await getLogs({ target: contract, topics: [feeTopic], entireLog: true });🤖 Prompt for AI Agents |
||
| logs.forEach((log: any) => { | ||
| const token = "0x" + log.topics[1].slice(26); | ||
| const amount = BigInt(log.data); | ||
| dailyFees.add(token, amount, METRIC.TRADING_FEES); | ||
| }); | ||
| return { dailyFees, dailyRevenue: dailyFees }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: Ave.ai's referral program offers rebates from trading fees generated by referred users. The platform charges a 0.8% transaction fee on trades (for bot wallets). Referrers earn up to 25% of this fee as a basic rebate, applicable on chains like Solana, ETH, BSC, Base, Core, Tron, and Ton. The Ave Rebate Promotion Program provides tiered VIP upgrades based on invited users (within 90 days) and their trading volume (within 30 days): - VIP1: 30% total rebate - VIP2: 40% total rebate - VIP3: 60% total rebate - SVIP: 60% total rebate (for influencers) Users get unique referral links/codes via the Ave.ai website (https://ave.ai/?ref={code}), app, or Telegram bot (https://t.me/AveSniperBot?start=ref_{code}). Referred friends' trades automatically generate commissions for the referrer. Past promotions included download rewards (e.g., up to $1.50 per referral in 2024), but current structure focuses on ongoing trading rebates. Citations:
🏁 Script executed: cat -n fees/aveai/index.tsRepository: DefiLlama/dimension-adapters Length of output: 1907 Track referrer rebates as Ave.ai's referral program pays referrers 25–60% of the 0.8% transaction fee, depending on VIP tier. These referrer payouts must be tracked separately:
Currently, the code treats 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| const adapter: SimpleAdapter = { | ||
| version: 2, | ||
| pullHourly: true, | ||
| adapter: { | ||
| [CHAIN.BASE]: { | ||
| fetch, | ||
| start: "2025-07-03", | ||
| }, | ||
| [CHAIN.BSC]: { | ||
| fetch, | ||
| start: "2025-07-03", | ||
| }, | ||
| [CHAIN.ETHEREUM]: { | ||
| fetch, | ||
| start: "2025-07-16" | ||
| } | ||
| }, | ||
| methodology: { | ||
| Fees: "Fees collected on each swap (0.5% for chain wallets, 0.8% for bot wallets).", | ||
| Revenue: "All fees are collected by the protocol.", | ||
| }, | ||
| breakdownMethodology: { | ||
| Fees: { | ||
| [METRIC.TRADING_FEES]: "Fees collected on each swap (0.5% for chain wallets, 0.8% for bot wallets)." | ||
| }, | ||
| Revenue: { | ||
| [METRIC.TRADING_FEES]: "All fees are collected by the protocol" | ||
| } | ||
| } | ||
| }; | ||
|
|
||
| export default adapter; | ||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: DefiLlama/dimension-adapters
Length of output: 481
🏁 Script executed:
Repository: DefiLlama/dimension-adapters
Length of output: 1907
🌐 Web query:
Ave.ai protocol smart contracts fees collection💡 Result:
Ave.ai is a multi-chain DEX aggregator and Web3 trading platform (www.ave.ai), not a traditional DeFi protocol with its own liquidity pools or lending markets. No public smart contract addresses for Ave.ai's core router or fee collection mechanisms were found in official docs, GitHub, or explorers. It integrates with 130+ chains and 300+ DEXs for one-click trading. Ave.ai charges platform service fees on transactions routed through its aggregator: - Bot Wallet: 0.8% of trade amount - Chain Wallet: 0.5% of trade amount These fees are collected per transaction alongside standard on-chain gas fees paid to networks (e.g., SOL on Solana, Gwei on ETH). Additional user-set parameters include slippage tolerance, priority fees, and anti-MEV protection, but these are not Ave.ai fees. No evidence of on-chain fee collection via Ave.ai-specific smart contracts; fees appear handled off-chain or via wallet integrations (e.g., Ave Sniper Bot confirms 0.8% trading fee). Older user agreement (2024) stated no fees, but updated docs (2025) confirm the above rates. Referral rebates up to 60% of fees for VIPs. Secondary sources confirm Ave.ai does not charge traditional maker/taker fees like CEXs but incurs aggregator routing costs and gas.
Citations:
🌐 Web query:
contract address 0x282970F452371454332Ca522cE59F318a2C81484 BASE chain💡 Result:
The contract address 0x282970F452371454332Ca522cE59F318a2C81484 on the Base chain does not appear in top search results from BaseScan, explorer.base.org, DexScreener, or official Base documentation. No name, token details, transactions, or other identifying information was found in authoritative sources. It may be a non-existent, unindexed, private, or very low-activity contract. Check directly on https://basescan.org/address/0x282970F452371454332Ca522cE59F318a2C81484 for real-time data.
Citations:
🌐 Web query:
contract address 0x60943cb06b76A24431659165c81a03c16F1C325C Ethereum💡 Result:
The Ethereum address 0x60943cb06b76A24431659165c81a03c16F1C325C is a smart contract on the Ethereum mainnet. It has 0 ETH balance, holds small amounts of tokens like USDT (0.004479) and USDC (0.00852), and has been involved in 79,062 to 85,648 transactions. The contract was created approximately 195 days ago (around October 2025) by the address 0x31781b4E...bf6270FC4. There is a UML diagram available for its Solidity code structure. No verified source code, contract name, or token symbol/name is explicitly stated in the sources. It appears to be an ERC-20 token contract based on massive transfer volumes observed in transactions (e.g., billions of token units transferred), but no official token details or project information were found. No listings on DEX trackers like DexScreener or DexTools for this address as a token.
Citations:
🌐 Web query:
0x60943cb06b76A24431659165c81a03c16F1C325C contract name type💡 Result:
The Ethereum smart contract at address 0x60943cb06b76A24431659165c81a03c16F1C325C is a TransparentUpgradeableProxy. This is an upgradeable proxy contract from OpenZeppelin that delegates calls to an implementation contract, allowing upgrades without changing the proxy address. It is verified on Etherscan as a contract with high transaction volume (over 79,000 txs), created about 195 days ago (around late 2025). SmartMuv Explorer explicitly identifies it as "TransparentUpgradeableProxy".
Citations:
🌐 Web query:
Ave.ai smart contract deployment BASE BSC Ethereum💡 Result:
Ave.ai is a decentralized on-chain data and trading platform that aggregates data from over 130 blockchains, including BASE, BSC, and Ethereum. It supports on-chain analytics, DEX trading, smart money tracking, and bot functions across these chains. However, no official smart contract addresses or deployment details for Ave.ai's own core contracts (e.g., core protocol, dApp backend contracts) on BASE, BSC, or Ethereum were found in official documentation, websites (ave.ai, doc.ave.ai), GitHub repositories, or blockchain explorers. Ave.ai appears to be primarily a frontend/client application (web, mobile apps for iOS/Android, desktop) that interacts with existing DEXs, wallets (e.g., Ave Wallet based on Trust Wallet), and on-chain data via APIs and RPCs. It facilitates user interactions with third-party smart contracts (e.g., DEX routers, tokens) but does not deploy its own central smart contracts. Official docs emphasize data aggregation, trading interfaces, and risk screening without listing proprietary contract addresses. Listed on DappBay as a DeFi tool on BNB Smart Chain (BSC), but no specific contract address provided. Various unrelated or fan-named tokens like "[Ave.ai] Ave.ai Token" (ETH: 0xF972b520F21e58287b843d03A0851d6939c3f347) exist, but these are not verified as official. Confidence: Ave.ai likely has no publicly deployed core smart contracts on these chains; it operates as a non-custodial dApp frontend.
Citations:
The contract addresses appear to be invalid or unverified Ave.ai contracts and need immediate review.
Web verification shows:
This adapter may be fundamentally incorrect if targeting a protocol that does not have on-chain fee collection mechanisms. Confirm these contracts are legitimate Ave.ai fee collection contracts and clarify the protocol's actual fee structure before proceeding.
🤖 Prompt for AI Agents