Skip to content

track ave ai fees/revenue#6331

Merged
FelixBruguera merged 1 commit intoDefiLlama:masterfrom
FelixBruguera:aveai
Apr 3, 2026
Merged

track ave ai fees/revenue#6331
FelixBruguera merged 1 commit intoDefiLlama:masterfrom
FelixBruguera:aveai

Conversation

@FelixBruguera
Copy link
Copy Markdown
Contributor

https://github.com/DefiLlama/internal-docs/issues/39
NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a tvl adapter please submit the PR here.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  3. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data4.ts, you can edit it there and put up a PR
  4. Do not edit/push package.json/package-lock.json file as part of your changes
  5. No need to go to our discord/other channel and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama): Ave.ai
Twitter Link: https://x.com/AveaiGlobal
List of audit links if any:
Website Link: https://ave.ai/
Logo (High resolution, will be shown with rounded borders): https://doc.ave.ai/~gitbook/image?url=https%3A%2F%2F282307349-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVhfw2n4uNr4o5eCyFsyK%252Fuploads%252Fj65CotCNeLbV9GYzOaNK%252Fimage.png%3Falt%3Dmedia%26token%3De8382e69-1fca-49da-bba0-78e0cb40e247&width=768&dpr=1&quality=100&sign=d31e1da8&sv=2
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain: BSC, Base, Ethereum
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama): Ave.ai is a world-leading on-chain trading platform. It offers lightning-fast, one-click trading with a focus on security, professional, fast, and comprehensive coverage.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: Trading App
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Github org/user (Optional, if your code is open source, we can track activity):
Does this project have a referral program? Yes, https://ave.ai/referral

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 3, 2026

Summary by CodeRabbit

  • New Features
    • Added trading fee revenue tracking and monitoring capabilities through on-chain log analysis. Includes automated per-chain data collection with configurable start dates and hourly update frequency. Provides detailed methodology documentation for fee and revenue calculations.

Walkthrough

A new adapter module for the Aveai protocol has been added at fees/aveai/index.ts. This module implements a SimpleAdapter that processes on-chain logs to calculate trading-fee revenue. It queries logs by chain contract address and fee topic, extracts token addresses and fee amounts from log data, and records them as daily trading fees and revenue metrics.

Changes

Cohort / File(s) Summary
New Aveai Fees Adapter
fees/aveai/index.ts
New adapter module for calculating trading-fee revenue via on-chain log processing; includes per-chain contract address map, log querying and parsing logic, fee topic filtering, and methodology documentation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

fees, new-adapter

🚥 Pre-merge checks | ✅ 2 | ❌ 4

❌ Failed checks (2 warnings, 2 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 50.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Income Statement Compliance ⚠️ Warning Adapter fails income statement compliance; dailyRevenue incorrectly equals dailyFees instead of reflecting protocol's retained portion after referrer rebates. Implement separate tracking of referrer rebate payouts as dailySupplySideRevenue based on 25-60% fee distribution, ensuring dailyRevenue = dailyFees - dailySupplySideRevenue.
Title check ❓ Inconclusive The title 'track ave ai fees/revenue' is vague and does not follow the specified format [type] protocol-name - description, lacking clarity on the change type and detailed context. Revise the title to follow the required format, for example: '[feat] Ave.ai - Add fees and revenue tracking adapter' to clearly indicate the change type and scope.
Breakdown Methodology Check ❓ Inconclusive Repository access failures prevent verification of breakdown label consistency in fees/aveai/index.ts implementation. Restore repository access and verify that all breakdown labels in .add() calls have corresponding breakdownMethodology entries and proper export.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The PR description follows the template structure with protocol metadata fields completed (name, Twitter, website, logo, chains, category, description, referral program) and includes the required context link to internal docs issue.
Version 2 Required ✅ Passed The exported adapter sets version: 2 and enables pullHourly: true, with proper SimpleAdapter (default export) configuration as required.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@llamabutler
Copy link
Copy Markdown

The aveai adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees aveai

🦙 Running AVEAI adapter 🦙
---------------------------------------------------
Start Date:	Thu, 02 Apr 2026 13:00:00 GMT
End Date:	Fri, 03 Apr 2026 13:00:00 GMT
---------------------------------------------------

Slice 0:
Start Date:	Thu, 02 Apr 2026 13:00:00 GMT
End Date:	Thu, 02 Apr 2026 14:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 164.00     | 164.00        | 3/7/2025  
ethereum  | 2.00       | 2.00          | 16/7/2025 
Aggregate | 166.00     | 166.00        |           

Slice 1:
Start Date:	Thu, 02 Apr 2026 14:00:00 GMT
End Date:	Thu, 02 Apr 2026 15:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 87.00      | 87.00         | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 88.00      | 88.00         |           

Slice 2:
Start Date:	Thu, 02 Apr 2026 15:00:00 GMT
End Date:	Thu, 02 Apr 2026 16:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 78.00      | 78.00         | 3/7/2025  
ethereum  | 8.00       | 8.00          | 16/7/2025 
Aggregate | 86.00      | 86.00         |           

Slice 3:
Start Date:	Thu, 02 Apr 2026 16:00:00 GMT
End Date:	Thu, 02 Apr 2026 17:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 24.00      | 24.00         | 3/7/2025  
ethereum  | 2.00       | 2.00          | 16/7/2025 
Aggregate | 26.00      | 26.00         |           

Slice 4:
Start Date:	Thu, 02 Apr 2026 17:00:00 GMT
End Date:	Thu, 02 Apr 2026 18:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 32.00      | 32.00         | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 33.00      | 33.00         |           

Slice 5:
Start Date:	Thu, 02 Apr 2026 18:00:00 GMT
End Date:	Thu, 02 Apr 2026 19:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 224.00     | 224.00        | 3/7/2025  
ethereum  | 0.00       | 0.00          | 16/7/2025 
Aggregate | 224.00     | 224.00        |           

Slice 6:
Start Date:	Thu, 02 Apr 2026 19:00:00 GMT
End Date:	Thu, 02 Apr 2026 20:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 17.00      | 17.00         | 3/7/2025  
ethereum  | 0.00       | 0.00          | 16/7/2025 
Aggregate | 17.00      | 17.00         |           

Slice 7:
Start Date:	Thu, 02 Apr 2026 20:00:00 GMT
End Date:	Thu, 02 Apr 2026 21:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 7.00       | 7.00          | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 8.00       | 8.00          |           

Slice 8:
Start Date:	Thu, 02 Apr 2026 21:00:00 GMT
End Date:	Thu, 02 Apr 2026 22:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 9.00       | 9.00          | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 10.00      | 10.00         |           

Slice 9:
Start Date:	Thu, 02 Apr 2026 22:00:00 GMT
End Date:	Thu, 02 Apr 2026 23:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 7.00       | 7.00          | 3/7/2025  
ethereum  | 3.00       | 3.00          | 16/7/2025 
Aggregate | 10.00      | 10.00         |           

Slice 10:
Start Date:	Thu, 02 Apr 2026 23:00:00 GMT
End Date:	Fri, 03 Apr 2026 00:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 14.00      | 14.00         | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 15.00      | 15.00         |           

Slice 11:
Start Date:	Fri, 03 Apr 2026 00:00:00 GMT
End Date:	Fri, 03 Apr 2026 01:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 1.00       | 1.00          | 3/7/2025  
bsc       | 37.00      | 37.00         | 3/7/2025  
ethereum  | 4.00       | 4.00          | 16/7/2025 
Aggregate | 42.00      | 42.00         |           

Slice 12:
Start Date:	Fri, 03 Apr 2026 01:00:00 GMT
End Date:	Fri, 03 Apr 2026 02:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 1.00       | 1.00          | 3/7/2025  
bsc       | 72.00      | 72.00         | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 74.00      | 74.00         |           

Slice 13:
Start Date:	Fri, 03 Apr 2026 02:00:00 GMT
End Date:	Fri, 03 Apr 2026 03:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 1.00       | 1.00          | 3/7/2025  
bsc       | 19.00      | 19.00         | 3/7/2025  
ethereum  | 0.00       | 0.00          | 16/7/2025 
Aggregate | 20.00      | 20.00         |           

Slice 14:
Start Date:	Fri, 03 Apr 2026 03:00:00 GMT
End Date:	Fri, 03 Apr 2026 04:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 4.00       | 4.00          | 3/7/2025  
bsc       | 11.00      | 11.00         | 3/7/2025  
ethereum  | 2.00       | 2.00          | 16/7/2025 
Aggregate | 17.00      | 17.00         |           

Slice 15:
Start Date:	Fri, 03 Apr 2026 04:00:00 GMT
End Date:	Fri, 03 Apr 2026 05:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 6.00       | 6.00          | 3/7/2025  
bsc       | 34.00      | 34.00         | 3/7/2025  
ethereum  | 9.00       | 9.00          | 16/7/2025 
Aggregate | 49.00      | 49.00         |           

Slice 16:
Start Date:	Fri, 03 Apr 2026 05:00:00 GMT
End Date:	Fri, 03 Apr 2026 06:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 46.00      | 46.00         | 3/7/2025  
ethereum  | 0.00       | 0.00          | 16/7/2025 
Aggregate | 46.00      | 46.00         |           

Slice 17:
Start Date:	Fri, 03 Apr 2026 06:00:00 GMT
End Date:	Fri, 03 Apr 2026 07:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 101.00     | 101.00        | 3/7/2025  
ethereum  | 6.00       | 6.00          | 16/7/2025 
Aggregate | 107.00     | 107.00        |           

Slice 18:
Start Date:	Fri, 03 Apr 2026 07:00:00 GMT
End Date:	Fri, 03 Apr 2026 08:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 30.00      | 30.00         | 3/7/2025  
ethereum  | 23.00      | 23.00         | 16/7/2025 
Aggregate | 53.00      | 53.00         |           

Slice 19:
Start Date:	Fri, 03 Apr 2026 08:00:00 GMT
End Date:	Fri, 03 Apr 2026 09:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 6.00       | 6.00          | 3/7/2025  
bsc       | 77.00      | 77.00         | 3/7/2025  
ethereum  | 13.00      | 13.00         | 16/7/2025 
Aggregate | 96.00      | 96.00         |           

Slice 20:
Start Date:	Fri, 03 Apr 2026 09:00:00 GMT
End Date:	Fri, 03 Apr 2026 10:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 153.00     | 153.00        | 3/7/2025  
ethereum  | 4.00       | 4.00          | 16/7/2025 
Aggregate | 157.00     | 157.00        |           

Slice 21:
Start Date:	Fri, 03 Apr 2026 10:00:00 GMT
End Date:	Fri, 03 Apr 2026 11:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 54.00      | 54.00         | 3/7/2025  
ethereum  | 8.00       | 8.00          | 16/7/2025 
Aggregate | 62.00      | 62.00         |           

Slice 22:
Start Date:	Fri, 03 Apr 2026 11:00:00 GMT
End Date:	Fri, 03 Apr 2026 12:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 50.00      | 50.00         | 3/7/2025  
ethereum  | 1.00       | 1.00          | 16/7/2025 
Aggregate | 51.00      | 51.00         |           

Slice 23:
Start Date:	Fri, 03 Apr 2026 12:00:00 GMT
End Date:	Fri, 03 Apr 2026 13:00:00 GMT
---------------------------------------------------

chain     | Daily fees | Daily revenue | Start Time
---       | ---        | ---           | ---       
base      | 0.00       | 0.00          | 3/7/2025  
bsc       | 100.00     | 100.00        | 3/7/2025  
ethereum  | 4.00       | 4.00          | 16/7/2025 
Aggregate | 104.00     | 104.00        |           


====== TOTAL DAILY AGGREGATED (sum of slots per chain) ======

chain     | Daily fees | Daily revenue
---       | ---        | ---          
base      | 19.00      | 19.00        
bsc       | 1.45 k     | 1.45 k       
ethereum  | 95.00      | 95.00        
Aggregate | 1.56 k     | 1.56 k       

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@fees/aveai/index.ts`:
- Around line 15-16: The code uses contracts[options.chain] to set contract then
calls getLogs({ target: contract, ... }) without validating contract; add a
guard to detect when contract is undefined (e.g., when options.chain is not
present in the contracts map) and handle it by returning/throwing or logging an
explicit error before calling getLogs. Specifically update the block that reads
const contract = contracts[options.chain] to validate contract and emit a clear
error message or early return (mentioning options.chain and feeTopic) so getLogs
is never called with an undefined target.
- Line 22: The return currently sets dailyRevenue equal to dailyFees; change
this to track referrer rebates separately by adding a dailySupplySideRevenue
value (the referrer rebate amount) and set dailyRevenue = dailyFees -
dailySupplySideRevenue. Locate the place returning the object (the return {
dailyFees, dailyRevenue: dailyFees } in fees/aveai/index.ts) and replace it with
a return that includes dailySupplySideRevenue (computed from the applicable
rebate rate or input/constant you use for referrer share) and dailyRevenue
computed as dailyFees minus dailySupplySideRevenue, keeping the dailyFees output
unchanged.
- Around line 5-10: The contract addresses in the contracts map and the feeTopic
constant (symbols: contracts, CHAIN.BASE, CHAIN.BSC, CHAIN.ETHEREUM, feeTopic)
appear unverified or unrelated to Ave.ai; confirm whether these are genuine
Ave.ai fee-collection contracts by (1) verifying each address on the appropriate
block explorer (BaseScan, Etherscan, BscScan) and matching contract source/ABI
and owner/deployer to Ave.ai, (2) if they are not verified or not owned by
Ave.ai, remove or replace those chain entries in the contracts map with the
correct verified addresses or mark the chain as unsupported, and (3) if Ave.ai
fees are off-chain, convert this adapter to a no-op or document that on-chain
fee collection is unsupported and remove the feeTopic usage; update code
comments and add links to the explorer verification or official Ave.ai
documentation as proof.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e46124dd-74e3-4701-8c8e-d30343675c71

📥 Commits

Reviewing files that changed from the base of the PR and between 262246f and 6f8f42f.

📒 Files selected for processing (1)
  • fees/aveai/index.ts

Comment on lines +5 to +10
const contracts: Record<string, string> = {
[CHAIN.BASE]: "0x282970F452371454332Ca522cE59F318a2C81484",
[CHAIN.BSC]: "0xd270845b7EBb0B013DfCCD9cA782a57Bfb7A359A",
[CHAIN.ETHEREUM]: "0x60943cb06b76A24431659165c81a03c16F1C325C",
}
const feeTopic = "0xc08acb1892d97145a15c4cc6206956e56a7482a9af175f548b7b40eb336790dd";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify the event signature matches the topic
# Common fee event patterns that could produce this topic

echo "Checking if contracts are verified on block explorers..."
echo ""
echo "Base contract: 0x282970F452371454332Ca522cE59F318a2C81484"
echo "BSC contract: 0xd270845b7EBb0B013DfCCD9cA782a57Bfb7A359A"  
echo "Ethereum contract: 0x60943cb06b76A24431659165c81a03c16F1C325C"
echo ""
echo "Fee topic: 0xc08acb1892d97145a15c4cc6206956e56a7482a9af175f548b7b40eb336790dd"
echo ""
echo "To verify: check the contract ABI on respective block explorers to confirm the event signature"

Repository: DefiLlama/dimension-adapters

Length of output: 481


🏁 Script executed:

cat -n fees/aveai/index.ts

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:

  • BASE contract (0x282970F452371454332Ca522cE59F318a2C81484): Not found on BaseScan or any public explorer; appears non-existent or unindexed.
  • Ethereum contract (0x60943cb06b76A24431659165c81a03c16F1C325C): Verified as an OpenZeppelin TransparentUpgradeableProxy with high transaction volume, but no evidence it is an Ave.ai contract and purpose is unknown.
  • Ave.ai itself: Does not appear to have publicly deployed core smart contracts on these chains. It operates as a DEX aggregator/frontend dApp. Ave.ai fees (0.8% Bot Wallet, 0.5% Chain Wallet) are handled off-chain or via wallet integrations, not through on-chain fee collection contracts.

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
Verify each finding against the current code and only fix it if needed.

In `@fees/aveai/index.ts` around lines 5 - 10, The contract addresses in the
contracts map and the feeTopic constant (symbols: contracts, CHAIN.BASE,
CHAIN.BSC, CHAIN.ETHEREUM, feeTopic) appear unverified or unrelated to Ave.ai;
confirm whether these are genuine Ave.ai fee-collection contracts by (1)
verifying each address on the appropriate block explorer (BaseScan, Etherscan,
BscScan) and matching contract source/ABI and owner/deployer to Ave.ai, (2) if
they are not verified or not owned by Ave.ai, remove or replace those chain
entries in the contracts map with the correct verified addresses or mark the
chain as unsupported, and (3) if Ave.ai fees are off-chain, convert this adapter
to a no-op or document that on-chain fee collection is unsupported and remove
the feeTopic usage; update code comments and add links to the explorer
verification or official Ave.ai documentation as proof.

Comment on lines +15 to +16
const contract = contracts[options.chain]
const logs = await getLogs({ target: contract, topics: [feeTopic], entireLog: true });
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add validation for missing contract address.

If a chain is added to the adapter configuration but not to the contracts map, contract will be undefined, potentially causing silent failures or unexpected behavior in getLogs.

🛡️ 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
Verify each finding against the current code and only fix it if needed.

In `@fees/aveai/index.ts` around lines 15 - 16, The code uses
contracts[options.chain] to set contract then calls getLogs({ target: contract,
... }) without validating contract; add a guard to detect when contract is
undefined (e.g., when options.chain is not present in the contracts map) and
handle it by returning/throwing or logging an explicit error before calling
getLogs. Specifically update the block that reads const contract =
contracts[options.chain] to validate contract and emit a clear error message or
early return (mentioning options.chain and feeTopic) so getLogs is never called
with an undefined target.

const amount = BigInt(log.data);
dailyFees.add(token, amount, METRIC.TRADING_FEES);
});
return { dailyFees, dailyRevenue: dailyFees };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Ave.ai referral program fee structure and revenue sharing model

💡 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.ts

Repository: DefiLlama/dimension-adapters

Length of output: 1907


Track referrer rebates as dailySupplySideRevenue.

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:

  • dailyFees = all transaction fees collected (Gross Protocol Revenue)
  • dailySupplySideRevenue = referrer rebate payouts (Cost of Funds)
  • dailyRevenue = dailyFees - dailySupplySideRevenue (what the protocol retains)

Currently, the code treats dailyRevenue = dailyFees, which incorrectly assumes the protocol keeps 100% of fees. Adjust the calculation to reflect the actual fee distribution to referrers.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@fees/aveai/index.ts` at line 22, The return currently sets dailyRevenue equal
to dailyFees; change this to track referrer rebates separately by adding a
dailySupplySideRevenue value (the referrer rebate amount) and set dailyRevenue =
dailyFees - dailySupplySideRevenue. Locate the place returning the object (the
return { dailyFees, dailyRevenue: dailyFees } in fees/aveai/index.ts) and
replace it with a return that includes dailySupplySideRevenue (computed from the
applicable rebate rate or input/constant you use for referrer share) and
dailyRevenue computed as dailyFees minus dailySupplySideRevenue, keeping the
dailyFees output unchanged.

@FelixBruguera FelixBruguera merged commit 48b81b3 into DefiLlama:master Apr 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants