Remove the deadline#9
Conversation
This is a temporary fix, I also made a [PR in the contract repo](burnsignal/burnSignalContracts#9) to remove the deadline validation from the contracts. I think this can be enforced on the frontend alone.
Tomasvrba
left a comment
There was a problem hiding this comment.
nACK for these changes
- While it may serve no purpose in terms of not implementing selfdestruct, it serves other purposes. E.g. We should not allow users to submit/spam proposals that have an end date within seconds or hours etc. It's better to enforce this logic in the trustless backend than in the hosted frontend.
- I agree though that the contract could be improved so the frontend can retrieve the deadline from it more easily.
- Generally, I prefer to avoid commenting out code, it's always going to be in git history so better to remove it than to have dead code hanging around.
- This does not seem worth it going through the contract upgrade process for. This code does not break anything. From a design by contract perspective, the frontend just needs to enforce the deadline rules stipulated by the backend
I'm in favor of closing this PR. But if we decide to remove the deadline validation, the dead code should be removed.
I actually disagree with this. Unless the contract is going to revert all incoming funds after the resolution date, I don't think it makes sense for the deadline to have any logic at all. If someone wants to waste gas on a poll that only lasts a few blocks, so be it. We can worry about other spam prevention mechanisms later if it becomes an issue.
Great point. Will keep that in mind for future PRs.
Yeah, I do tend to agree with this. But I would like to roll this, or something similar, into whatever the next upgrade is. |
The deadline validation in the contract serves no purpose, we can validate on the frontend. I have commented it out in this PR.