diff --git a/seasons/sql/s6_part1_defi_volume.sql b/seasons/sql/s6_part1_defi_volume.sql index 94be7e75..3e5b1502 100644 --- a/seasons/sql/s6_part1_defi_volume.sql +++ b/seasons/sql/s6_part1_defi_volume.sql @@ -24,4 +24,6 @@ with swaps as ( union all select * from gaspump ) -select * from volumes \ No newline at end of file +select address, sum(volume_usd) as volume_usd from volumes +join degens using(address) +group by 1 \ No newline at end of file diff --git a/seasons/sql/s6_part2_defi_volume.sql b/seasons/sql/s6_part2_defi_volume.sql index 0cffae8f..2bc7481d 100644 --- a/seasons/sql/s6_part2_defi_volume.sql +++ b/seasons/sql/s6_part2_defi_volume.sql @@ -28,4 +28,6 @@ with swaps as ( union all select * from tondiamonds_swaps ) -select * from volumes \ No newline at end of file +select address, sum(volume_usd) as volume_usd from volumes +join degens using(address) +group by 1 \ No newline at end of file