Skip to content

Commit

Permalink
ether-fi: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Nov 22, 2024
1 parent 9ef9aaf commit 1d91aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fees/ether-fi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ const getSsvRevenue = async (options: FetchOptions) => {
})
let ssv_revenue = 0;
for (const log of logs) {
if (log.from == "0x8fb66F38cF86A3d5e8768f8F1754A24A6c661Fb8") {
if (log.from.toLowerCase() === "0x8fb66F38cF86A3d5e8768f8F1754A24A6c661Fb8".toLowerCase()) {
ssv_revenue += +log.value;
}
else {
ssv_revenue += +log.value / 1e8;
ssv_revenue += +log.value * 0.8;
}
}
return BigInt(ssv_revenue);
Expand Down

0 comments on commit 1d91aed

Please sign in to comment.