-- How many distinct addresses have carried out a bond transaction in the last three months?
-- During this period, show the distribution of addresses based on the number of different tokens they have bonded.
-- (e.g. how many address have bonded 1 type of token, how many have bonded 2 types, etc)
select n_types, count(distinct origin_address) as n_wallets from (
select
count(distinct from_address_name) as n_types,
origin_address
from ethereum.udm_events
where from_address_name like 'olympusdao%bond%'
and block_timestamp >= CURRENT_DATE - 90
and symbol = 'OHM'
group by origin_address
) group by n_types