Skip to content

Conversation

FetyEth
Copy link

@FetyEth FetyEth commented Aug 4, 2025

We have added Fees adapter for Warp Finance

@treeoflife2 treeoflife2 self-assigned this Aug 4, 2025
@llamabutler
Copy link

The WarpFinance adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees WarpFinance

🦙 Running WARPFINANCE adapter 🦙
---------------------------------------------------
Start Date:	Sun, 03 Aug 2025 07:09:12 GMT
End Date:	Mon, 04 Aug 2025 07:09:12 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 27/7/2023
Daily fees: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1754291351 (2025-08-04T07:09:11.000Z)

@treeoflife2 treeoflife2 self-requested a review August 4, 2025 10:08
const fetch = async (options: FetchOptions) => {
const dailyFees = options.createBalances();
const data: any[] = await options.getLogs({
target: WARPFeeCollector,
Copy link
Member

Choose a reason for hiding this comment

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

It's Incorrect way to track the fees for Li.Fi wrappers. _integratorFee is the Fee for Li.FI so please fix that, or does Li.Fi charge same fee as integrator?

const methodology = {
Fees: 'All fees paid by users for swap and bridge tokens via LI.FI.',
Revenue: 'Fees are distributed to Warp Finance and creators',
ProtocolRevenue: 'Fees are distributed to Warp Finance.',
Copy link
Member

Choose a reason for hiding this comment

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

as per the one of your tweet, it says 50% revenue will go to token creator and 50% to protocol, is that correct?

Copy link
Author

Choose a reason for hiding this comment

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

For some reason my VScode didnt save the changes. I have updated the repo with

import { FetchOptions, SimpleAdapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";

const FeeCollectedEvent = "event FeesCollected(address indexed _token, address indexed _integrator, uint256 _integratorFee, uint256 _lifiFee)"

const WARPFeeCollector = '0x312a6be6bD9850D6a2F793b8425c39eFC01C3585';

const fetch = async (options: FetchOptions) => {
const dailyFees = options.createBalances();
const data: any[] = await options.getLogs({
target: WARPFeeCollector,
eventAbi: FeeCollectedEvent,
});
data.forEach((log: any) => {
dailyFees.add(log._token, log._integratorFee);
});
return { dailyFees, dailyRevenue: dailyFees, dailyProtocolRevenue: dailyFees };
};

const methodology = {
Fees: 'There is no fees in creating tokens. Creators pay Network fees only.',
Revenue: 'Revenue is generated via V3 Uniswap buy/sell 50% creators & 50% to Warp Finance.',
ProtocolRevenue: 'V3 Trading Fees are distributed to Warp Finance.',
}

const adapter: SimpleAdapter = {
version: 2,
fetch,
chains: [CHAIN.ETHEREUM],
start: '2023-07-27',
methodology
}

export default adapter;

Copy link
Member

@treeoflife2 treeoflife2 left a comment

Choose a reason for hiding this comment

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

.

@llamabutler
Copy link

The WarpFinance adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees WarpFinance

🦙 Running WARPFINANCE adapter 🦙
---------------------------------------------------
Start Date:	Sun, 03 Aug 2025 15:38:31 GMT
End Date:	Mon, 04 Aug 2025 15:38:31 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 27/7/2023
Daily fees: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1754321910 (2025-08-04T15:38:30.000Z)

@FetyEth
Copy link
Author

FetyEth commented Aug 9, 2025

Good day. We have changed the factory/fee address please update at your earliest convenience. Thank you

@llamabutler
Copy link

The WarpFinance adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees WarpFinance

🦙 Running WARPFINANCE adapter 🦙
---------------------------------------------------
Start Date:	Sat, 09 Aug 2025 04:47:20 GMT
End Date:	Sun, 10 Aug 2025 04:47:20 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 27/7/2023
Daily fees: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1754801239 (2025-08-10T04:47:19.000Z)


const FeeCollectedEvent = "event FeesCollected(address indexed _token, address indexed _integrator, uint256 _integratorFee, uint256 _lifiFee)"

const WARPFeeCollector = '0x86A74536f7C5548EFE9e935863eA7bE333380288';
Copy link
Member

Choose a reason for hiding this comment

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

there is no event named FeesCollected in the FeeCollector contract

@treeoflife2 treeoflife2 marked this pull request as draft August 12, 2025 08:32
@treeoflife2
Copy link
Member

converting to draft as no fee data is available or wrong implementation

@llamabutler
Copy link

The WarpFinance adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees WarpFinance

🦙 Running WARPFINANCE adapter 🦙
---------------------------------------------------
Start Date:	Sun, 24 Aug 2025 21:45:13 GMT
End Date:	Mon, 25 Aug 2025 21:45:13 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time: 27/7/2023
Daily fees: 0
Daily revenue: 0
Daily protocol revenue: 0
End timestamp: 1756158312 (2025-08-25T21:45:12.000Z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants