ScopeLift / flexible-voting

💪🗳️ Flexible Voting – A Powerful Building Block for DAO Governance
https://flexiblevoting.com
MIT License
86 stars 8 forks source link

ATokenFlexVoting: Test that borrowers can vote and that votes aren't double counted #32

Closed davidlaprade closed 1 year ago

davidlaprade commented 1 year ago

We need to make sure that liquidity is taken into consideration when casting votes from aTokens. If some of the governance tokens have been borrowed, this should reduce the amount that the aToken can vote with. We don't want to risk double counting votes!

This was a concern of some folks from Aave, per telegram chat, so I've added some additional test assertions to check for it