Skip to content

Dynamic Confirmation Message Logic – Impact Product Claims #16

Description

@LuminaEnvision

mplement a backend logic that dynamically generates a congratulatory message when a user claims an Impact Product level. The message should change based on whether it is their first claim, a level upgrade, or the final milestone.

Tasks:

Retrieve User’s Current Impact Product Level:

  • Query the dIP smart contract to get the user’s existing level.

Determine & Assign the Correct Message:

  • If Level 1 is being claimed:
    Congratulations! You’ve just received the first level of DeCleanup Impact Product. 
    Come back for more! Share your referral with friends and earn more DCU Points.
    
  • If Level 2-9 is being claimed:
    Congratulations! You’ve just upgraded to a higher level of DeCleanup Impact Product. 
    Come back for more!
    
  • If Level 10 is being claimed:
    Congratulations! You’ve successfully completed all levels of DeCleanup journey at this phase! 
    Stay updated for new level updates.
    

Modify API Response for Claim Requests:

  • Implement logic in the reward claim API (/api/rewards/claim).
  • Return the correct confirmation message in the response based on the claimed level.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backendnon-rewardedonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions