Small Shamrock Rook
Medium
See 'Root Cause'
The contest README states the following invariant:
Protocol cannot lend when CF_liquid < 20%, where CF_liquid = rETH_vault / synthetic_rETHdebt.
However, the code uses 200% mistakenly:
uint public cf_liquid_warning = 2000; // 200%
No response
No response
No response
In getMaxBorrow()
, the synthValueWithCF
will be calculated to be much higher than what it should be. This causes getMaxBorrow()
to return 0
, causing a DoS for borrowing.
No response
No response