Skip to content

Feat/farming pool features - #597

Open
OlolaJaco wants to merge 2 commits into
SmartDropLabs:mainfrom
OlolaJaco:feat/farming-pool-features-574-577
Open

OlolaJaco wants to merge 2 commits into
SmartDropLabs:mainfrom
OlolaJaco:feat/farming-pool-features-574-577

Conversation

@OlolaJaco

Copy link
Copy Markdown
Contributor

Closes #574
Closes #575
Closes #576
Closes #577

…position unlock helpers (SmartDropLabs#574, SmartDropLabs#575, SmartDropLabs#576, SmartDropLabs#577)

- get_global_multiplier / global_multiplier: return current global reward multiplier (SmartDropLabs#574)
- get_multiplier_change_count / multiplier_change_count: count of global multiplier changes (SmartDropLabs#575)
- is_position_unlocked: check if a user's time-locked position has matured (SmartDropLabs#576)
- get_position_remaining_lock: remaining ledgers until position unlock (SmartDropLabs#577)
- fix(farming-pool): validate total_deposits overflow in lock_assets
- Implement test for locking assets with overflowing total staked, ensuring typed error without state write.
- Add test for rejecting deposit not delivered in full, validating contract behavior.
- Introduce test for rejecting insufficient balance without writing state, confirming error handling.
- Create test for multiplier change count when uninitialized, verifying contract state management.
@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@OlolaJaco 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 Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit 2519aaf
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6ad90e5db80cda791e458320
😎 Deploy Preview https://deploy-preview-597--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.

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

Labels

None yet

Projects

None yet

1 participant