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
execute_proposal succeeds with zero votes -- no quorum or minimum vote check #503
execute_proposal (learn-token lib.rs:1701) does not check if any votes were cast. If no one votes on a proposal, all vote_totals are 0, and the function still marks the proposal as executed with winning_choice = 0 and winning_votes = 0.
Why
A proposal that received zero votes should not be executable. This allows an admin to create a proposal, wait for the voting period to end, and execute it with a "winner" that no one voted for. This undermines the governance mechanism.
Scope
Add a check after the tally loop (after line 1725):
if winning_votes == 0{panic!("no votes cast");}
Acceptance Criteria
execute_proposal panics if no votes were cast
Test verifies zero-vote proposals cannot be executed
@Obito-2222 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi Maintainer,
I’m interested in taking ownership of this issue and would appreciate the opportunity to work on it if it is still available. I’ve carefully reviewed the issue requirements and have a clear understanding of the scope, expected outcome, and implementation approach.
I’m confident I can execute the task efficiently and deliver a clean, well-tested, and maintainable solution in accordance with the project’s standards and contribution guidelines. I’m also available to prioritize this issue and aim to have the implementation completed within 12 hours of being assigned.
If the issue is still unassigned, I’d be grateful if you could assign it to me. I’m ready to get started immediately.
@darkwalker2 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi Maintainer, I have the necessary skillset to resolve this issue, I am a full stack developer I would really like to contribute on this project, as I clearly understand what is needed to be done.
@Luna-netty has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hello! I’d be happy to contribute to this task.
I’m comfortable picking up unfamiliar codebases, tracing existing behavior, and making focused changes without disrupting other functionality. I’ll take ownership of the implementation from understanding the requirements through testing and final verification.
@TheHalalHunter has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi maintainer
I’d love to help out with this issue. I’ve checked the current codebase/documentation and know exactly what needs to be updated to make this clearer. I will ensure everything aligns perfectly with your existing contribution guidelines.
@joelatabs has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Dear Maintainer,
I’d be glad to take on this issue and work toward resolving it. I have relevant experience troubleshooting and addressing similar issues, and I’m confident I can contribute effectively to getting this resolved.
@Saber1Y has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi maintainer,I'd like to take this issue, Here's my solution as the issues asks:
I’ll add a guard in "execute_proposal" after the tally loop to reject proposals with zero votes, using the specified "no votes cast" panic. I’ll also add a regression test confirming that a zero-vote proposal cannot be executed.
Please assign to me I'll start immediately and open pr within 24 hours
@Ranjeet2063 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Ready to ship immediately! Focus: Smart Contract & Systems Architecture (Rust / Soroban / Web3) for "execute_proposal succeeds with zero votes -- no qu". Plan: Implement idiomatic Rust logic with strict authorization checks, gas-efficient storage patterns, and defensive error handling. Guaranteed 100% green CI & test coverage. Zero hand-holding. SLA: clean PR in 1-2h. Track record: 166+ merged PRs in Web3 (OSS score 83, Top 2%).
Submitted PR #512 with the zero-vote check in execute_proposal (if winning_votes == 0 { panic!("no votes cast"); }) and corresponding unit test test_execute_proposal_fails_with_zero_votes. All 79 token tests passing green.
Activity
Isaacayomide28 commentedon Sep 30, 2026
@Isaacayomide28 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 @Isaacayomide28 to this issue.
Obito-2222 commentedon Sep 30, 2026
@Obito-2222 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 @Obito-2222 to this issue.
darkwalker2 commentedon Sep 30, 2026
@darkwalker2 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 @darkwalker2 to this issue.
Luna-netty commentedon Sep 30, 2026
@Luna-netty 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 @Luna-netty to this issue.
umarhussainiagaie-bot commentedon Sep 30, 2026
@umarhussainiagaie-bot 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 @umarhussainiagaie-bot to this issue.
TheHalalHunter commentedon Sep 30, 2026
@TheHalalHunter 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 @TheHalalHunter to this issue.
joelatabs commentedon Sep 30, 2026
@joelatabs 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 @joelatabs to this issue.
Saber1Y commentedon Sep 30, 2026
@Saber1Y 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 @Saber1Y 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.
Ranjeet2063 commentedon Sep 30, 2026
@Ranjeet2063 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 @Ranjeet2063 to this issue.
fauztech05 commentedon Sep 30, 2026
@fauztech05 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 @fauztech05 to this issue.
lmduy2612 commentedon Oct 2, 2026
Submitted PR #512 with the zero-vote check in
execute_proposal(if winning_votes == 0 { panic!("no votes cast"); }) and corresponding unit testtest_execute_proposal_fails_with_zero_votes. All 79 token tests passing green.