Skip to content

Conversation

@tejasbadadare
Copy link
Contributor

Summary

Enforce minimum balance in updateSubscription even when reducing or keeping the number of feeds the same.

Rationale

Initially we didn't enforce the check if the user is decreasing their feed count or keeping it the same. The thought was to be friendly to the user in case they are trying to reduce their funds burn rate. However, this is inconsistent behavior and might actually confuse the user, and it's safer to always check. Now, in all cases where the sub is getting updated and remaining active, the check is enforced.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:21pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:21pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:21pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:21pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2025 6:21pm
component-library ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2025 6:21pm

@tejasbadadare tejasbadadare merged commit fb15906 into main May 7, 2025
10 checks passed
@tejasbadadare tejasbadadare deleted the tb/pulse/enforce-min-bal-for-all-active-updated-subs branch May 7, 2025 22:52
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.

3 participants