Skip to content

Commit

Permalink
fix map native token
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jan 13, 2025
1 parent 293f927 commit 25e9e28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fees/eisen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ const fetch = async ({ getLogs, createBalances, chain }: FetchOptions) => {
eventAbi: event_swap,
});

logs.forEach((i) => dailyFees.add(i.toAssetId, i.fee));

logs.forEach((i) => {
if (i.toAssetId.toLowerCase() === '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'.toLowerCase()) {
dailyFees.addGasToken(i.fee);
} else {
dailyFees.add(i.toAssetId, i.fee)
}
});
return {
dailyFees: dailyFees,
dailyRevenue: dailyFees,
Expand Down

0 comments on commit 25e9e28

Please sign in to comment.