Open code423n4 opened 3 years ago
pauliax6@gmail.com
paulius.eth
0x523B5b2Cc58A818667C22c862930B141f85d49DD
function setLeveragePercent should check that the _leveragePercent >= 100 so that this calculation will not fail later: (leveragePercent - 100)
This variable can only be set by admin so as long as he sets the appropriate value it should be fine.
It is always nice to enforce such things via code. Code is law they say.
thanks, but in this case that would be governance's job to check
Email address
pauliax6@gmail.com
Handle
paulius.eth
Eth address
0x523B5b2Cc58A818667C22c862930B141f85d49DD
Vulnerability details
function setLeveragePercent should check that the _leveragePercent >= 100 so that this calculation will not fail later: (leveragePercent - 100)
Impact
This variable can only be set by admin so as long as he sets the appropriate value it should be fine.
Recommended mitigation steps
It is always nice to enforce such things via code. Code is law they say.