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.
getTotalCdsDepositedAmount
reverts ->withDraw
in borrowing.sol reverts, users cannot withdraw fundsgetTotalCdsDepositedAmount
reverts ->liquidationType1
reverts, 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;
}