Function: launch(string name, string symbol, string mediaURI)
This function allows any caller to create a LaunchToken by paying a launchFee.
Inputs
nameControl: Full control.
Constraints: No constraints.
Impact: The name of the new LaunchToken.
symbolControl: Full control.
Constraints: No constraints.
Impact: The symbol of the new LaunchToken.
mediaURIControl: Full control.
Constraints: No constraints.
Impact: The
mediaURIof the new LaunchToken.
Branches and code coverage
Intended branches
The new LaunchToken has been successfully created, and
TOTAL_SUPPLYtokens have been minted.
Negative behavior
msg.valueis less thanlaunchFee.msg.valueis greater than thelaunchFee.bondingCurveaddress is not set up and is equal to zero.quoteAssetaddress is not set up and is equal to zero.
Function call analysis
bondingCurve.setReserves(token);What is controllable? N/A.
If the return value is controllable, how is it used and how can it go wrong? This function does not return a value.
What happens if it reverts, reenters or does other unusual control flow? The
setReservesfunction reverts if the caller is not this contract. But this is not the case, so there are no problems here.
LaunchToken(token).mint(TOTAL_SUPPLY);What is controllable? N/A.
If the return value is controllable, how is it used and how can it go wrong? This function does not return a value.
What happens if it reverts, reenters or does other unusual control flow? There are no problems here.