Skip to content

Commit

Permalink
Code423n4 #26, _amount added twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Splidge committed Jun 15, 2021
1 parent 33543e1 commit 07c53ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/RCTreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,7 @@ contract RCTreasury is Ownable, NativeMetaTransaction, IRCTreasury {
emit LogAdjustDeposit(_user, _amount, true);

// this deposit could cancel the users foreclosure
if (
(user[_user].deposit + _amount) >
(user[_user].bidRate / minRentalDayDivisor)
) {
if (user[_user].deposit > (user[_user].bidRate / minRentalDayDivisor)) {
isForeclosed[_user] = false;
emit LogUserForeclosed(_user, false);
}
Expand Down

0 comments on commit 07c53ab

Please sign in to comment.