Skip to content

Fix #170 #171 #172 #173: boost for positions, TTL refresh event, lock… - #213

Merged
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
devpeter999:main
Aug 28, 2026
Merged

Fix #170 #171 #172 #173: boost for positions, TTL refresh event, lock…#213
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
devpeter999:main

Conversation

@devpeter999

Copy link
Copy Markdown

Summary

Fixes #170, Fixes #171, Fixes #172,Fixes #173 — four issues across farming-pool, factory, and vesting-wallet contracts.

#170 — calculate_credits ignores boost allocation for Position-based staking

calculate_credits, checkpoint_position, get_user_position, and get_credits now apply boost allocation to Position-based staking via compute_total_stake, matching the behavior already present in UserStake-based staking. Previously, Position-based users never received boost benefits.

#171 — refresh_pool_ttls does not emit event for TTL refresh activity

refresh_pool_ttls now emits a ("factory", "ttl_ref") event with (start_id, end) so operators can monitor TTL refresh activity off-chain.

#172 — lock_assets event does not include unlock_ledger timestamp

The ("pool", "locked") event now includes position.unlock_ledger in its payload so off-chain indexers can display when users can withdraw.

#173 — Vesting wallet has no get_admin function

Added a public admin() getter to the vesting wallet so frontends can query the current admin address.

…bs#173: boost for positions, TTL refresh event, lock event includes unlock_ledger, vesting admin getter
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@devpeter999 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 28, 2026

Copy link
Copy Markdown

Deploy Preview for sdcontracts ready!

Name Link
🔨 Latest commit 8274895
🔍 Latest deploy log https://app.netlify.com/projects/sdcontracts/deploys/6a90fd5a56047f000861c844
😎 Deploy Preview https://deploy-preview-213--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 cf65faa 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