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

feat: implement Allocation extension on strategies #659

Merged
merged 24 commits into from
Sep 11, 2024

Conversation

0xAustrian
Copy link

Closes DTT-297

@0xAustrian 0xAustrian self-assigned this Sep 4, 2024
Copy link

linear bot commented Sep 4, 2024

/// @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;
Copy link
Author

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

Comment on lines -9 to +15
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();
Copy link
Author

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

@0xAustrian 0xAustrian changed the base branch from feat/allocators-allowlist-extension to v2.1 September 5, 2024 09:25
Copy link

@0xOneTony 0xOneTony left a comment

Choose a reason for hiding this comment

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

LGTM

@0xOneTony 0xOneTony marked this pull request as ready for review September 5, 2024 14:24
@0xOneTony 0xOneTony merged commit 7c45dd8 into v2.1 Sep 11, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants