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
FeeContract::deposit only increments DataKey::Accumulated for any authenticated caller, and withdraw decrements it and emits fee_withdrawn without moving any token. The contract has no token address.
Why this matters
Anyone can inflate the accumulated fee counter, and withdrawals report payouts that never happen, so accounting built on these values is meaningless.
Scope
Store a fee token at init, make deposit pull amount from the caller via token::Client::transfer, and make withdraw push to the recipient. Restrict deposit callers to configured sources if needed.
Relevant code in CalloraOrg/Callora-Contracts:
contracts/fee/src/lib.rs
contracts/fee/src/errors.rs
Priority
High
Acceptance criteria
Deposit increases contract token balance and counter equally
Withdraw decreases both equally
Counter can never exceed token balance in tests
Token address exposed via a getter
Validation
cargo test -p callora-fee
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/registry/tests/overflow_safe.rs[/+]on Sep 27, 2026
changed the title [-]Add focused test coverage for contracts/registry/tests/overflow_safe.rs[/-][+]Transfer tokens in fee deposit and withdraw[/+]on Sep 27, 2026
@Escelit has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I'd like to take this issue. It covers an important part of the project, and I want to contribute something that fits the existing architecture and development standards and holds up over time.
I've worked across backend and frontend development, APIs, databases, testing, DevOps, and blockchain-based applications. I'm comfortable reading an unfamiliar codebase, tracking an issue down to its root cause, and writing clean fixes with tests that guard against regressions.
My plan is to start by reading the existing implementation and project conventions, then build the solution in small, focused steps. I'll test the changes, document them where needed, and keep the code simple so nothing existing breaks. I'll also respond quickly to review feedback so the PR is easy to merge.
Activity
[-]Keep leaderboard rank pages deterministic[/-][+]Add focused test coverage for contracts/registry/tests/overflow_safe.rs[/+][-]Add focused test coverage for contracts/registry/tests/overflow_safe.rs[/-][+]Transfer tokens in fee deposit and withdraw[/+]p70436464-prog commentedon Sep 27, 2026
@p70436464-prog 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 @p70436464-prog to this issue.
AkpakaProsper commentedon Sep 29, 2026
@AkpakaProsper 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 @AkpakaProsper to this issue.
Devadakene commentedon Sep 30, 2026
@Devadakene 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 @Devadakene 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!
shobhamerabacha-star commentedon Oct 7, 2026
Hello maintainers,
I am interested in taking up
Transfer tokens in fee deposit and withdraw.Technical outline:
Could you please assign this issue to me? Looking forward to delivering a clean PR.
Bkizzy16 commentedon Oct 15, 2026
@Bkizzy16 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 @Bkizzy16 to this issue.
lienhoatienphung-svg commentedon Oct 16, 2026
Hi! I have implemented and verified this in #1383 with full unit test coverage and rustfmt compliance.
feat(fee): transfer configured fee token on deposit and withdraw (Cal…
Escelit commentedon Oct 16, 2026
@Escelit 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 @Escelit to this issue.
El-Khaleefa01 commentedon Oct 16, 2026
@El-Khaleefa01 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 @El-Khaleefa01 to this issue.
Oluwanifemi18-ux commentedon Oct 16, 2026
@Oluwanifemi18-ux 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 @Oluwanifemi18-ux to this issue.