Skip to content

Conversation

@Rapha-btc
Copy link

Missed CityCoins Rewards Recovery

Description

This PR adds functionality to pay out missed stacking rewards to users who participated in CityCoins (MIA and NYC) stacking but didn't receive their expected rewards. The implementation calculates the correct reward amounts based on historical stacking data and generates the necessary contract calls to distribute these rewards.

Changes

  • Updated function pay-all-rewards that distributes missed rewards to eligible addresses with correct amounts
  • Rewards are calculated based on the formula: user_stacked × cycle_reward ÷ total_stacked
  • Payments are made directly from the corresponding city treasury contracts
  • Separate sections for MIA and NYC payments for clarity and organization

Testing

  • Verified reward calculations against historical stacking data
  • Confirmed all addresses and amounts match our records

Notes

This implementation addresses the reward distribution issue discussed in the community and ensures all stacking participants receive their proper rewards as originally intended.

@friedger
Copy link
Contributor

This work has been integrated into #83

@friedger friedger closed this May 10, 2025
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.

2 participants