Commit a5a723d3 authored by Maurelian's avatar Maurelian

feat(ctb): numOwnersAfter is a better var name

parent 2d7e3ba8
......@@ -74,11 +74,11 @@ contract LivenessModule is ISemver {
// Calculate the new threshold
address[] memory owners = SAFE.getOwners();
uint256 numOwners = owners.length - 1;
uint256 numOwnersAfter = owners.length - 1;
uint256 thresholdAfter;
if (_isAboveMinOwners(numOwners)) {
if (_isAboveMinOwners(numOwnersAfter)) {
// Call the Safe to remove the owner and update the threshold
thresholdAfter = get75PercentThreshold(numOwners);
thresholdAfter = get75PercentThreshold(numOwnersAfter);
address prevOwner = _getPrevOwner(owner, owners);
_removeOwner({ _prevOwner: prevOwner, _owner: owner, _threshold: thresholdAfter });
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment