Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permanent coupons #8

Open
5 tasks
matevz opened this issue Aug 29, 2024 · 0 comments
Open
5 tasks

Add permanent coupons #8

matevz opened this issue Aug 29, 2024 · 0 comments

Comments

@matevz
Copy link
Member

matevz commented Aug 29, 2024

Coupons for the Oasis Academy that earn you an NFT should be public and non-spendable. Add the following:

  • contracts: add COUPON_PERMANENT status
  • contracts: addPermanentCoupons() similar to addCoupons() but adds a coupon with status COUPON_PERMANENT
  • contracts: fix validCoupon() modifier to accept COUPON_PERMANENT too
  • contracts: fix claimReward() to also accept COUPON_PERMANENT and doesn't spend it
  • hardhat task: addCoupons add --permanent flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant