You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vote, create_proposal, and execute_proposal bypass pause state check in learn-token #498
Three governance functions in learn-token do not check the pause state:
vote (lib.rs:1657) -- voters can cast votes during pause
create_proposal (lib.rs:1609) -- admin can create proposals during pause
execute_proposal (lib.rs:1701) -- admin can execute proposals during pause
All three modify state (proposal vote totals, vote records, executed flag).
Why
During an emergency pause, governance operations should be frozen. An admin could create and execute a proposal during pause to take actions (like changing contract parameters) that the pause was meant to prevent. Note: #446 was previously filed and closed for this exact issue, but the code at the current HEAD still lacks the pause checks.
Scope
Add Self::require_not_paused(&env); to each function, after the auth check.
Acceptance Criteria
All three functions panic when the contract is paused
@dammy-lab has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
I can work on this issue because it is a focused Rust smart-contract change involving pause-state enforcement, authorization checks, state-changing governance functions, and regression testing. This issue is especially suitable because the required change is small and well-defined, while the tests ensure the emergency pause actually provides the intended protection.
Congratulations, @Marvy247! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @Marvy247: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
😎 @Marvy247: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
Activity
felixumeh commentedon Sep 30, 2026
@felixumeh has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @felixumeh to this issue.
Peaostrel commentedon Sep 30, 2026
@Peaostrel has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Peaostrel to this issue.
emmixeryng commentedon Sep 30, 2026
@emmixeryng has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @emmixeryng to this issue.
macsonfleek commentedon Sep 30, 2026
@macsonfleek has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @macsonfleek to this issue.
339mon commentedon Sep 30, 2026
@339mon has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @339mon to this issue.
dammy-lab commentedon Sep 30, 2026
@dammy-lab has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @dammy-lab to this issue.
MorsH14 commentedon Sep 30, 2026
@MorsH14 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @MorsH14 to this issue.
optimist82 commentedon Sep 30, 2026
@optimist82 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @optimist82 to this issue.
Richard-tobi commentedon Sep 30, 2026
@Richard-tobi has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Richard-tobi to this issue.
ravimahatonp commentedon Oct 3, 2026
Hello team,
I looked into
vote, create_proposal, and execute_proposal bypass pause state check in learn-tokenand have an implementation approach ready.Technical outline:
I can deliver a clean, tested PR within 24 hours. Please assign!
Marvy247 commentedon Oct 19, 2026
@Marvy247 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Marvy247 to this issue.
Mikewaves7 commentedon Oct 19, 2026
@Mikewaves7 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Mikewaves7 to this issue.
drips-wave commentedon Oct 19, 2026
Congratulations, @Marvy247! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @Marvy247: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
grantfox-oss commentedon Oct 19, 2026
🎉 This issue has been marked as completed on GrantFox!
@Marvy247's PR #657 was approved and merged by @DeFiVC.
🏆 @Marvy247: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,342 total points). Track your full progress on GrantFox.
👏 Great work, @Marvy247! Keep contributing to ChainLearnOfficial.
drips-wave commentedon Oct 19, 2026
This issue has been completed by @Marvy247 as part of the Stellar Wave Program's 10th Wave 🥳
😎 @Marvy247: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
fix: enforce pause state and typed allowance errors (ChainLearnOffici…