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

Invariant Improvements: Add invariant scenario for multiple fund treasury between distributions #129

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

prateek105
Copy link
Contributor

Description of change

High level

  • Add invariant scenario with multiple treasury funding, transfer ajna between actors and new actors being added.

actors = _buildActors(numOfActors_, tokensToDistribute_);
address[] memory newActors = _buildActors(numOfActors_, tokensToDistribute_);
for (uint256 i = 0; i < newActors.length; ++i) {
if (newActors[i] != address(0)) actors.push(newActors[i]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Were any of the newActors addresses actually 0x0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, i got some failures where actor addresses were 0x0, it was happening here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, yeah from the failure path. Makes sense

Copy link
Collaborator

@MikeHathaway MikeHathaway left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@EdNoepel EdNoepel left a comment

Choose a reason for hiding this comment

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

LGTM

@MikeHathaway MikeHathaway merged commit 86bd09c into develop Aug 16, 2023
3 checks passed
@MikeHathaway MikeHathaway deleted the multiple-fund-treasury branch August 16, 2023 18:05
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.

3 participants