Lack of maximum and minimum vesting amount check on the vesting function #32
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
defsec
Vulnerability details
Impact
During the code review, It has been seen maxVesting amount is disabled. However, there is no maximum and minimum vesting amount defined. Users can vest small amount. For the protocol liquditiy calculation maximum and minimum threshold should be defined.
Proof of Concept
"""
https://github.com/code-423n4/2021-11-bootfinance/blob/main/vesting/contracts/Vesting.sol#L76
"""
Tools Used
Review
Recommended Mitigation Steps
It is suggested to check maximum/minimum vesting amount on the contract.
The text was updated successfully, but these errors were encountered: