Input Validation on Factory.sol #75
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Warden finding
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
tensors
Vulnerability details
Add simple checks on the methods in Factory.sol to keep errors and typos from happening.
For example, the liscensingFee is 1e18 * (a percentage), while bondPercentDiv is a percentage in Bips.
This could be a potential source of errors.
Adding simple sanity checks will keep errors from occurring.
https://github.com/code-423n4/2021-10-defiprotocol/blob/7ca848f2779e2e64ed0b4756c02f0137ecd73e50/contracts/contracts/Factory.sol#L29-L32
The text was updated successfully, but these errors were encountered: