Skip to content

feat: resolve issues - #210

Merged
ritaifeoluwa merged 4 commits into
SmartDropLabs:mainfrom
0xSlink:main
Aug 28, 2026
Merged

feat: resolve issues#210
ritaifeoluwa merged 4 commits into
SmartDropLabs:mainfrom
0xSlink:main

Conversation

@0xSlink

@0xSlink 0xSlink commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Closes #157 Revoke sends unvested tokens to current admin, not original funder Added DataKey::Funder storing the init-time admin; revoke now transfers unvested tokens to funder

Closes #158 migrate is undocumented no-op placeholder Added comprehensive doc comment explaining current no-op behavior and the pattern for future migrations

Closes #160 No way to list all whitelisted users Maintains a Vec

in instance storage; added get_whitelisted_users(offset, limit) with ListWhitelistedResponse

Closes #161 Credit rate changes between checkpoints undocumented

…artDropLabs#157)

Store the original funder address at initialization and use it instead
of the current admin when returning unvested tokens on revocation. This
ensures that if admin rights are transferred via transfer_admin before
revoke is called, the tokens go back to the address that originally
funded the vesting schedule.
…pLabs#158)

Add doc comment explaining that migrate is a placeholder for future
schema migrations, describing the intended pattern once real migrations
are needed (match on old version, perform transforms, stamp new version).
…ropLabs#160)

Maintain an ordered Vec<Address> of whitelisted users in instance
storage, updated by add/remove/batch_add/batch_remove. Expose
get_whitelisted_users(offset, limit) returning a paginated
ListWhitelistedResponse so admins can audit the full whitelist on-chain.
…opLabs#161)

Explain that credit_rate and global_multiplier are snapshotted per-user
at checkpoint time, so users who checkpoint less frequently may earn
credits at a different effective rate than those who checkpoint more
often during a rate change window. Document this as an intentional
design trade-off that keeps accrual local and avoids O(n) migration.
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@0xSlink 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 Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit 713ae94
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6a90b63f7e74190008d1996d
😎 Deploy Preview https://deploy-preview-210--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 3607f9a into SmartDropLabs:main Aug 28, 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