From 471bfb01f46348734c6b3ff9c35cb09becbca5ff Mon Sep 17 00:00:00 2001 From: Steven Valeri Date: Thu, 2 May 2024 20:34:32 -0400 Subject: [PATCH] feat: update constant name --- contracts/PointTokenVault.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/PointTokenVault.sol b/contracts/PointTokenVault.sol index 176854f..55eb849 100644 --- a/contracts/PointTokenVault.sol +++ b/contracts/PointTokenVault.sol @@ -26,7 +26,7 @@ contract PointTokenVault is UUPSUpgradeable, AccessControlUpgradeable, Multicall bytes32 public constant MERKLE_UPDATER_ROLE = keccak256("MERKLE_UPDATER_ROLE"); bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); - uint256 public constant MAX_UINT = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; + uint256 public constant MAX_UINT_256 = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // Deposit asset balancess. mapping(address => mapping(ERC20 => uint256)) public balances; // user => point-earning token => balance @@ -88,7 +88,8 @@ contract PointTokenVault is UUPSUpgradeable, AccessControlUpgradeable, Multicall // Rebasing and fee-on-transfer tokens must be wrapped before depositing. function deposit(ERC20 _token, uint256 _amount, address _receiver) public { uint256 cap = caps[address(_token)]; - if (cap != MAX_UINT) { + + if (cap != MAX_UINT_256) { if (_amount + _token.balanceOf(address(this)) > cap) { revert DepositExceedsCap(); }