-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: implement Allocation extension on strategies #659
Conversation
/// @notice Cooldown time from allocationEndTime after which the pool manager is allowed to withdraw tokens. | ||
uint64 public withdrawalCooldown; | ||
/// @notice amount to be distributed. It is set during the first distribute() call and stays fixed. | ||
uint256 public totalPayoutAmount; | ||
|
||
/// @notice token -> bool | ||
address public allocationToken; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of this removal I had to make some modifications on _allocate
and _distribute
error ALLOCATION_HAS_STARTED(); | ||
error ALLOCATION_HAS_ALREADY_STARTED(); | ||
|
||
/// @dev Error thrown when trying to call the function when the allocation is not active | ||
error ALLOCATION_NOT_ACTIVE(); | ||
error ALLOCATION_IS_NOT_ACTIVE(); | ||
|
||
/// @dev Error thrown when trying to call the function when the allocation has ended | ||
error ALLOCATION_NOT_ENDED(); | ||
error ALLOCATION_IS_NOT_ENDED(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to make this little change in order to prevent colliding with the same errors in Errors.sol
, maybe we should think about deprecating that library in a future PR
contracts/strategies/examples/donation-voting/DonationVotingOffchain.sol
Outdated
Show resolved
Hide resolved
contracts/strategies/examples/donation-voting/DonationVotingOnchain.sol
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes DTT-297