Open code423n4 opened 3 years ago
only admin can call this so highly unlikely to happen yet it would be better if code prevents that.
require share to be greater than 0.
pauliax6@gmail.com
paulius.eth
0x523B5b2Cc58A818667C22c862930B141f85d49DD
function initTranche should check that the "share" parameter is > 0, otherwise, it may be possible to initialize the same tranche again.
Impact
only admin can call this so highly unlikely to happen yet it would be better if code prevents that.
Recommended mitigation steps
require share to be greater than 0.
Tools used
Email address
pauliax6@gmail.com
Handle
paulius.eth
Eth address
0x523B5b2Cc58A818667C22c862930B141f85d49DD
Vulnerability details
function initTranche should check that the "share" parameter is > 0, otherwise, it may be possible to initialize the same tranche again.