Low Tangerine Cod
High
downsideProtected is not protected
function updateDownsideProtected(uint128 downsideProtectedAmount) external {
downsideProtected += downsideProtectedAmount;
}- can be set to any value -> _updateCurrentTotalCdsDepositedAmount revert -> deposit reverts.
getTotalCdsDepositedAmountreverts ->withDrawin borrowing.sol reverts, users cannot withdraw fundsgetTotalCdsDepositedAmountreverts ->liquidationType1reverts, liquidation ddosed
No response
No response
increase downsideProtectedAmount to uint.max
withdraw, liquidation, deposit can be ddoes
No response
- function updateDownsideProtected(uint128 downsideProtectedAmount) external {
+ function updateDownsideProtected(uint128 downsideProtectedAmount) external onlyAdmin{
downsideProtected += downsideProtectedAmount;
}