morpho-org / morpho-token-upgradeable

Other
7 stars 8 forks source link

feat: rename getVotes #31

Closed Jean-Grimal closed 1 month ago

Jean-Grimal commented 1 month ago

The idea is that whereas the self delegation is required to vote or not will be decided at the voting contract level (by the slot used and verified in the contract), but not in the token contract.

Furthermore, while the getVotes function is central in the ERC20Votes, as it is the function called by the voting contract to get an account's voting power, here it is purely informative.

So I'll just call it getDelegatedVotes to expose a getter of the delegated voting power slot.