Skip to content

Commit 0b7ad55

Browse files
committed
fix(c4-272): remove unnecessary use of safe math
Signed-off-by: Tomás Migone <[email protected]>
1 parent 534d224 commit 0b7ad55

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contracts/l2/token/GraphTokenUpgradeable.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pragma solidity ^0.7.6;
44

55
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20BurnableUpgradeable.sol";
66
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
7-
import "@openzeppelin/contracts/math/SafeMath.sol";
87

98
import "../../upgrades/GraphUpgradeable.sol";
109
import "../../governance/Governed.sol";
@@ -26,7 +25,6 @@ import "../../governance/Governed.sol";
2625
* the original's constructor + non-upgradeable approach.
2726
*/
2827
contract GraphTokenUpgradeable is GraphUpgradeable, Governed, ERC20BurnableUpgradeable {
29-
using SafeMath for uint256;
3028

3129
// -- EIP712 --
3230
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
@@ -96,7 +94,7 @@ contract GraphTokenUpgradeable is GraphUpgradeable, Governed, ERC20BurnableUpgra
9694
require(_owner == recoveredAddress, "GRT: invalid permit");
9795
require(_deadline == 0 || block.timestamp <= _deadline, "GRT: expired permit");
9896

99-
nonces[_owner] = nonces[_owner].add(1);
97+
nonces[_owner] = nonces[_owner] + 1;
10098
_approve(_owner, _spender, _value);
10199
}
102100

0 commit comments

Comments
 (0)