Open
Description
If VestingWallet
receives over type(uint256).max
, then the function below will revert every time it is called, effectively bricking the vesting wallet.
openzeppelin-contracts/contracts/finance/VestingWallet.sol
Lines 139 to 144 in 5def3f7
A user can send this value by doing the following:
- Transfer the total supply of a token to the vesting wallet of amount
type(uint256).max
- Wait for some to vest and claim it
- Transfer the claimed amount back to the vesting wallet