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
Enforce admin-configured rescue cap from storage #1214
rescue_capped(admin, token, to, amount, cap) takes the cap as an argument from the same admin whose power it is supposed to limit, so it adds no protection over rescue.
Why this matters
A compromised admin simply passes a large cap; the 'capped' path gives reviewers false confidence.
Scope
Store a per-token cap set via a timelocked or separate-role setter, and have rescue itself enforce it; deprecate the argument-based variant.
Relevant code in CalloraOrg/Callora-Contracts:
contracts/rescue/src/lib.rs
contracts/rescue/tests/proptest.rs
Priority
Medium
Acceptance criteria
Rescue above stored cap fails with ExceedsCap
Changing the cap emits an event
Argument-based cap removed or ignored
Rescue proptests updated to use the stored cap
Validation
cargo test -p callora-rescue
Non-goals
Typo-only, formatting-only, or cosmetic changes.
Unrelated refactors, dependency upgrades, or broad rewrites.
Removing safeguards or weakening validation to make tests pass.
Contributor application
Before coding, describe the affected modules, proposed state/invariant changes, test strategy, compatibility considerations, and an estimate. Wait for assignment before starting implementation.
PR requirements
Use a feature branch and include Closes #<issue-number>. Address every criterion, map criteria to code and tests, explain security and failure-mode handling, and ensure CI passes.
Quality review
A maintainer will assess correctness, completeness, test depth, compatibility, observability, and adverse-case handling. A substantive implementation is required; merge or CI status alone does not guarantee reward eligibility.
changed the title [-]Keep leaderboard rank pages deterministic[/-][+]Add focused test coverage for contracts/settlement/src/errors.rs[/+]on Sep 27, 2026
changed the title [-]Add focused test coverage for contracts/settlement/src/errors.rs[/-][+]Enforce admin-configured rescue cap from storage[/+]on Sep 27, 2026
@Stanley471 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello maintainer, I'd like to work on this issue. I'll start by reviewing the existing code and conventions in the relevant files before making changes, so my implementation stays consistent with the rest of the codebase. I'll cover the requirements and acceptance criteria as listed, add tests where applicable, and verify everything builds/passes locally before opening the PR
@jamal-exe has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi, I’ve carefully examined the issue details and requirements, and I’m confident I can develop a clean, efficient, and maintainable solution. I’ll make sure to consider the existing implementation, follow the project’s conventions, and properly validate the changes before submitting my contribution.
I’d love the opportunity to work on this issue if it’s still available. I’m actively building my OSS contribution history and would appreciate the chance to contribute meaningful work to your project.
I’m ready to start immediately and aim to deliver a clean, well-tested solution within few hours.
If it’s unassigned, I’d be grateful if you could assign it to me.
Activity
[-]Keep leaderboard rank pages deterministic[/-][+]Add focused test coverage for contracts/settlement/src/errors.rs[/+][-]Add focused test coverage for contracts/settlement/src/errors.rs[/-][+]Enforce admin-configured rescue cap from storage[/+]Bigtura commentedon Sep 27, 2026
@Bigtura 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 @Bigtura to this issue.
OLAMIGHTY010 commentedon Sep 30, 2026
@OLAMIGHTY010 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 @OLAMIGHTY010 to this issue.
Viccodes11 commentedon Sep 30, 2026
@Viccodes11 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 @Viccodes11 to this issue.
Rodrigoue9 commentedon Oct 3, 2026
Hi @maintainers! I'd like to work on this issue. Here is my proposed technical approach:
Proposed Technical Approach:
require_auth), and gas optimization.soroban-sdk::Envverifying both success and failure execution paths.Key Files:
contracts/**/src/lib.rs(contract entrypoints and interface implementations)contracts/**/src/types.rsorstorage.rs(types, data keys, and state)contracts/**/src/test.rs(unit tests and integration vectors)Verification & Testing:
cargo testacross all contract crates verifying 100% pass rate.cargo clippy --all-targets -- -D warningsandcargo fmt --check.soroban contract build.Relevant Track Record:
I have successfully implemented and merged multiple production PRs across the Stellar ecosystem and Web3 open-source projects (e.g., Bitcoindefi/OpenAO #218, cybermax4200/stellar-did-credit #898 & #900, and FindMalek/sonaraem #416).
Please feel free to assign this issue to me so I can proceed with the implementation. Thank you!
Ranjeet2063 commentedon Oct 6, 2026
Hi,
I have experience with similar implementations and would like to take this on.
Solution overview:
Let me know if this aligns with the repository guidelines and assign when convenient.
lienhoatienphung-svg commentedon Oct 16, 2026
Hi! I have implemented and verified this in #1380 with full unit test coverage and rustfmt compliance.
feat(rescue): enforce stored per-token rescue cap in rescue and emit …
Stanley471 commentedon Oct 16, 2026
@Stanley471 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 @Stanley471 to this issue.
adeniyioluwaseyi192007-png commentedon Oct 16, 2026
@adeniyioluwaseyi192007-png 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 @adeniyioluwaseyi192007-png to this issue.
jamal-exe commentedon Oct 17, 2026
@jamal-exe 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 @jamal-exe to this issue.
shekwolonathanielbala-cyber commentedon Oct 18, 2026
@shekwolonathanielbala-cyber 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 @shekwolonathanielbala-cyber to this issue.