Skip to content

fix: emit credits_earned in unlock_assets event - #426

Merged
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
Enchanterme:fix/unlock-assets-emit-credits-earned
Sep 27, 2026
Merged

ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
Enchanterme:fix/unlock-assets-emit-credits-earned

Conversation

@Enchanterme

Copy link
Copy Markdown

The unlocked event previously carried (user, amount, total_credits) but omitted the credits earned in the transaction, preventing indexers from tracking credit distributions without storage scans.

Add credits_earned to the event payload so off-chain systems can track per-transaction credit distributions and build an audit trail for credit earnings.

Event payload is now (user, amount, credits_earned, total_credits).

Closes #381
Closes #382
Closes #383
Closes #384

The unlocked event previously carried (user, amount, total_credits) but
omitted the credits earned in the transaction, preventing indexers from
tracking credit distributions without storage scans.

Add credits_earned to the event payload so off-chain systems can track
per-transaction credit distributions and build an audit trail for credit
earnings.

Event payload is now (user, amount, credits_earned, total_credits).
@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@Enchanterme 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

@netlify

netlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit 8f48402
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6ab969e4b95d710008363f14
😎 Deploy Preview https://deploy-preview-426--sdcontracts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ritaifeoluwa
ritaifeoluwa merged commit 43bd034 into SmartDropLabs:main Sep 27, 2026
4 checks 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

2 participants