Skip to content

Commit

Permalink
skip map work
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Aug 18, 2024
1 parent 88a53b6 commit 5b9bc9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fees/cellula/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const adapter: Adapter = {
const dailyFees = createBalances() // ✅

// Revenue
const dailyRevenue = createBalances() // ✅
const dailyRevenue = createBalances() // ✅
const dailyProtocolRevenue = createBalances() // 70% + Food
const dailyHoldersRevenue = createBalances() // 5%
const dailySupplySideRevenue = createBalances() // 25%
Expand Down Expand Up @@ -50,12 +50,15 @@ const adapter: Adapter = {
"604800": "11900000000000000",
}
buyFoodLogs.map(e => {
if (!workTimePrice[e.workTime]) {
return
}
dailyFees.addGasToken(workTimePrice[e.workTime])
dailyRevenue.addGasToken(workTimePrice[e.workTime])
dailyProtocolRevenue.addGasToken(workTimePrice[e.workTime])
})
return {
dailyFees,
dailyFees,
dailyRevenue, dailyProtocolRevenue, dailyHoldersRevenue, dailySupplySideRevenue
}
}) as FetchV2,
Expand All @@ -68,4 +71,4 @@ const adapter: Adapter = {
version: 2,
}

export default adapter;
export default adapter;

0 comments on commit 5b9bc9c

Please sign in to comment.