castVote(proposalId, support): weight

castVote(proposalId,support):weightcastVote(proposalId, support): weight

  • Reverts if proposal is not ActiveActive

  • Reverts if voting weightweight of msg.sendermsg.sender is 0

  • Reverts if msg.sendermsg.sender already voted

  • Gets votes from the previous epoch as weightweight of msg.sendermsg.sender

  • Accounts for msg.sendermsg.sender supportsupport vote

  • Returns weightweight of msg.sendermsg.sender.

Last updated

Copyright 2024 M^0 Foundation