1. Add allowed_from >= value check in transferFrom() of Velo.sol
There is no checks performed inside transferFrom() function of Velo.sol for the condition allowed_from >= _value.
Although, the transaction will revert in such cases because of underflow, it is a good practice to return proper revert error message.
Recommended solution
Add this check in the beginning of transferFrom() function
1. Add
allowed_from >= value
check intransferFrom()
ofVelo.sol
There is no checks performed inside
transferFrom()
function ofVelo.sol
for the conditionallowed_from >= _value
. Although, the transaction will revert in such cases because of underflow, it is a good practice to return proper revert error message.Recommended solution
Add this check in the beginning of
transferFrom()
function2. Add error string to require statement
There are some instances where revert strings are not added in require statements. Add revert strings on those require statements.
3. No address(0) checks
There is no address(0) checks in
setMinter()
. This may lead to the minter address being accidentaly set to zero address.