Skip to content

Commit be01431

Browse files
committed
Changes after CR
1 parent 953ae66 commit be01431

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Allocator.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ contract Allocator is Initializable, Ownable2StepUpgradeable, UUPSUpgradeable, I
110110
uint256 allowanceBefore = allowance(allocator);
111111
if (allowanceBefore == 0) {
112112
revert AlreadyZero();
113-
} else if (allowanceBefore < amount) {
114-
amount = allowanceBefore;
115-
_allocators.remove(allocator);
116-
} else if (allowanceBefore == amount) {
113+
} else if (allowanceBefore <= amount) {
117114
_allocators.remove(allocator);
118115
} else {
119116
_allocators.set(allocator, allowanceBefore - amount);

0 commit comments

Comments
 (0)