-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Revenue] Make totals query multichain (#110)
* [Revenue] Make totals query multichain * Correct application specific partner fee share
- Loading branch information
Showing
3 changed files
with
50 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-- This query returns the total protocol fees (per type) that CoW DAO accrued since inception | ||
|
||
select | ||
sum(partner_fee_share) as partner_fee_share, | ||
sum(total_partner_share_all_chains) as partner_fee_share, | ||
sum(total_protocol_fee_in_eth) as total_protocol_fee_in_eth, | ||
sum(mev_blocker_fee_cow) as mev_blocker_fee_cow, | ||
sum(partner_fee_share) + sum(total_protocol_fee_in_eth) + sum(mev_blocker_fee_cow) as total_cow_dao_fee | ||
sum(mev_blocker) as mev_blocker_fee, | ||
sum(total_partner_share_all_chains) + sum(total_protocol_fee_in_eth) + sum(mev_blocker) as total_cow_dao_fee | ||
from query_3700123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters