Open code423n4 opened 3 years ago
tensors
Incorrect input amounts for these variables can be disastrous for funds in the protocol. Verify using a require statement that buffer >= 100, liquidation multiplier >= 100, and haircut <= 100.
https://github.com/code-423n4/2021-08-notional/blob/4b51b0de2b448e4d36809781c097c7bc373312e9/contracts/external/actions/GovernanceAction.sol#L66
Add a require statement.
Checks are already applied: https://github.com/code-423n4/2021-08-notional/blob/main/contracts/external/actions/GovernanceAction.sol#L381-L386
per sponsor comment, invalid
Handle
tensors
Vulnerability details
Impact
Incorrect input amounts for these variables can be disastrous for funds in the protocol. Verify using a require statement that buffer >= 100, liquidation multiplier >= 100, and haircut <= 100.
Proof of Concept
https://github.com/code-423n4/2021-08-notional/blob/4b51b0de2b448e4d36809781c097c7bc373312e9/contracts/external/actions/GovernanceAction.sol#L66
Recommendation
Add a require statement.