Skip to content

feat(quest-engine): add 15% platform fee extraction and employer refund mechanism#67

Merged
Kaylahray merged 1 commit into
learnault:mainfrom
phertyameen:feat/fee-extraction
May 31, 2026
Merged

feat(quest-engine): add 15% platform fee extraction and employer refund mechanism#67
Kaylahray merged 1 commit into
learnault:mainfrom
phertyameen:feat/fee-extraction

Conversation

@phertyameen
Copy link
Copy Markdown
Contributor

Implements two additions to the QuestEngine contract:

  • On Build Quest approval, 15% of the reward is routed to the RewardPool address and 85% to the learner
  • Adds refund_quest allowing employers to cancel an active quest and reclaim escrowed funds
  • Updates initialize to accept a reward_pool address
  • Tests updated to reflect fee split and cover refund happy/sad paths

Closes #43 Closes #44

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@phertyameen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Kaylahray Kaylahray merged commit f02e05c into learnault:main May 31, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

[QuestEngine] Build quest refund mechanism [QuestEngine] Platform fee extraction

2 participants