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.
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.