Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a5a723d3
Unverified
Commit
a5a723d3
authored
Oct 24, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): numOwnersAfter is a better var name
parent
2d7e3ba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LivenessModule.sol
packages/contracts-bedrock/src/Safe/LivenessModule.sol
+3
-3
No files found.
packages/contracts-bedrock/src/Safe/LivenessModule.sol
View file @
a5a723d3
...
...
@@ -74,11 +74,11 @@ contract LivenessModule is ISemver {
// Calculate the new threshold
address[] memory owners = SAFE.getOwners();
uint256 numOwners = owners.length - 1;
uint256 numOwners
After
= owners.length - 1;
uint256 thresholdAfter;
if (_isAboveMinOwners(numOwners)) {
if (_isAboveMinOwners(numOwners
After
)) {
// Call the Safe to remove the owner and update the threshold
thresholdAfter = get75PercentThreshold(numOwners);
thresholdAfter = get75PercentThreshold(numOwners
After
);
address prevOwner = _getPrevOwner(owner, owners);
_removeOwner({ _prevOwner: prevOwner, _owner: owner, _threshold: thresholdAfter });
} else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment