The assembly create command used here can fail and return 0. However the code assumes the deployment is always successful and moves forward.
create command can fail because of following reasons, and returns 0 in such a case:
Deployment can fail due to:
Insufficient value to send.
Sub context reverted.
Insufficient gas to execute the initialisation code.
Call depth limit reached.
Stack output
address: the address of the deployed contract, 0 if the deployment failed.
However, while deploying a new token, this is not checked here.
Even though the token has not been successfully deployed, further transactions are allowed which would revert or cause incorrect token calculations.
Manual inspection.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.