git clone https://github.com/AlbertSu123/snapshot-history.git
pip3 install gql aiohttp
and install anything else that might be missing
python3 solution.py
The task is to answer several questions about rates of voter turnout for the community-run governance process of the Aave protocol. It isn’t expected that you’ll be immediately familiar with all components involved in this question. This exercise is meant to assess both technical ability and ability to develop an introductory level of understanding of new concepts.
The questions we want to answer are as follows:
-
Which are the top 20 addresses with the highest rates of participation for Aave governance proposals on Snapshot.org, and what are each of their participation rates? [('0x06c4865ab16c9C760622f19a313a2E637E2e66a2', 0.7347670250896058), ('0x0fF9B6AB6Ec58ceB6D5ae8a1690dd5a0959aD002', 0.7060931899641577), ('0x7A3BdeE62dd34faC317Ae61cd8B3bA7c27ada145', 0.7060931899641577), ('0x76AC6Ad4e4E7c2e0b4Ceeb30745bd53df3a85774', 0.7060931899641577), ('0x9Ba6baA919BAc9Acd901dF3Bfde848FE006D3caE', 0.7060931899641577), ('0x00432772Ed25d4Eb3C6EB26Dc461239b35cf8760', 0.7025089605734767), ('0x35E6fc00e3F190A8dFe15faa219368a01028ec14', 0.7025089605734767), ('0x0516cf37B67235E07aF38ad8E388d0E68089b0F2', 0.7025089605734767), ('0x1b5b4fCEDF1252cd92496a2fd5C593b39aC49b01', 0.7025089605734767), ('0x2D5823E8e8B4dfbf599a97566ff2A121Cc141d60', 0.7025089605734767), ('0x972a8B7D891B88220780421fE4D11f174354cEEd', 0.7025089605734767), ('0xbDa0136ea391e24a938793972726f8763150c7C3', 0.6989247311827957), ('0x344b1E4Ac175f16D3bA40A688cA928E3768E275a', 0.6989247311827957), ('0x707D306714FF28560f32bF9DAE973BD33cd851c5', 0.6989247311827957), ('0xD03Ad690ed8065EDfdC1E08197a3ebC71535A7ff', 0.6989247311827957), ('0x70Ddb5AbF21202602b57F4860eE1262a594a0086', 0.6989247311827957), ('0xc97370F22eD5ac4c7B24A8E1ca9D81FEbb3b9457', 0.6989247311827957), ('0x1B9DA462D07512Fa37021973d853B59dEbB761Dd', 0.6559139784946236), ('0x79ccEDbEFbfE6c95570d85e65f8B0aC0D6bd017B', 0.6487455197132617), ('0x183bDB344A07Ee3D27f07AC4799A56E4A2fE5439', 0.6451612903225806)]
-
What rate of Snapshot participation for Aave does the University of Pennsylvania blockchain student organization have? (UPenn’s address used for voting is
0x070341aA5Ed571f0FB2c4a5641409B1A46b4961b
) 0.5519713261648745