Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

Common cases #5

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Common cases #5

wants to merge 43 commits into from

Conversation

expede
Copy link
Contributor

@expede expede commented Apr 10, 2018

Summary

Common Deal tokens and validators

@expede expede added the wip label Apr 10, 2018
@expede expede self-assigned this Apr 10, 2018
Prehistory | Mint | Hold | Trade |

*/
contract PhaseValidator is TokenValidator {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE TO SELF:

This actually makes sense in its own contract. We are probably going to have situations where certain users are exempt from certain phases and whatnot. Keeping these decomposed gives us the flexibility to call the parts that we need to. modifiers hardcode that logic per contract class, making it more difficult to extend. Broadly, this is good OO practice, but feels weird knowing this much about the contract in the validator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant