Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from marcelomorgado/safemath
Browse files Browse the repository at this point in the history
Amend some missing SafeMaths
  • Loading branch information
HegicDeveloper authored May 20, 2020
2 parents e27f5a3 + 12bdc53 commit be703c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/HegicERCPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ contract HegicERCPool is
onlyOwner
{
require(lockedAmount >= amount, "Pool: Insufficient locked funds");
lockedAmount -= amount;
lockedAmount = lockedAmount.sub(amount);
require(token.transfer(to, amount), "Insufficient funds");
}
}
2 changes: 1 addition & 1 deletion contracts/HegicETHPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ contract HegicETHPool is
onlyOwner
{
require(lockedAmount >= amount, "Pool: Insufficient locked funds");
lockedAmount -= amount;
lockedAmount = lockedAmount.sub(amount);
to.transfer(amount);
}
}

0 comments on commit be703c6

Please sign in to comment.