Open code423n4 opened 3 years ago
pauliax
The check should be inclusive here to cover the case when totalAssets = withdrawalUsd: require(totalAssets > withdrawUsd, "totalAssets < withdrawalUsd");
require(totalAssets >= withdrawUsd, "totalAssets < withdrawalUsd");
Unsure what part is being referenced
Edge case that is unlikely to cause issues as gro protocol provides initial seed investment
Handle
pauliax
Vulnerability details
Impact
The check should be inclusive here to cover the case when totalAssets = withdrawalUsd: require(totalAssets > withdrawUsd, "totalAssets < withdrawalUsd");
Recommended Mitigation Steps
require(totalAssets >= withdrawUsd, "totalAssets < withdrawalUsd");