The register
function in the MiniByte
contract allows users to register with a referral code, provided they meet certain conditions. It checks if the user is already registered, validates the referral code, and ensures that the inviter has not exceeded the referral limit within a 24-hour period. Upon successful registration, it updates user data and emits a Registered
event.
refCode
(string
): The referral code provided by the user for registration.