InverseCapital / Tokenized-Votes

Tokenized Votes
0 stars 0 forks source link

Set a reference block in the future #5

Open mattiapomelli opened 2 years ago

mattiapomelli commented 2 years ago

https://github.com/InverseCapital/Tokenized-Votes/blob/aceb2d67112c1aa777e4bcf6a4fe292fa23c4726/contracts/CustomBallot.sol#L27-L33

We're currently using the block of CustomBallot's deployment as a reference for the snapshot of voting power. This means that the contract only considers voting power that users obtained before the contract was deployed.

Instead, we could allow to set a reference block in the future, in order to allow users to still transfer tokens and move voting power around for some time before the voting power is snapshotted.