Function: registerCode(byte[32] _code)
This registers a referral code for the sender — to be called by referrer.
Inputs
_codeControl: Fully controlled by caller.
Constraints: The
_codeshould not bebytes32(0)andcodeOwnersshould not be already registered.Impact: The referral code to register.
Branches and code coverage
Intended branches
The
codeOwners,codes, andreferrerTiersis correctly updated.
Negative behavior
Revert if
_codeisbytes32(0).Revert if
codeOwners[_code] != address(0).
Function call analysis
No external function calls found.