Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revoke Pool rights after a time, permissionlessly #1

Open
lajarre opened this issue Jun 10, 2023 · 0 comments
Open

Revoke Pool rights after a time, permissionlessly #1

lajarre opened this issue Jun 10, 2023 · 0 comments

Comments

@lajarre
Copy link
Member

lajarre commented Jun 10, 2023

Currently, control over rights to use the delegated voting power is always in the hands of the Manager owner.

To revoke rights permissionlessly after a time we can let the Pool creator create any Pool contract that would derive from an abstract MoltenBasePool contract. The implementations would implement arbitrary revoking mechanisms, including 3-months after initialization.

contract Molten3MonthsPool is MoltenBasePool {
    uint256 startDate;
    function initialize(uint256 duration) {
        startDate = block.timestamp;
        endDate = block.timestamp + duration;
    }

    function castVote(…) {
        require((block.timestasmp >= startDate) && (block.timestamp < endDate), "Rights revoked"); 
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant