Unused variables on main hide logic that was lost in merges (previousStatus, existingPool, callerUserId…)
Maintainers usually reply within 1 day
@urielit1313-creator is already working on this.
Since Oct 13, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- eslint, typescript
- Domain
- backend
Research direction
Start with the open pull requests #631 and #656, since two linked PRs already target this cleanup. The unused bindings are in bounties.service.ts (previousStatus in markMergedAndRelease, callerUserId in create), maintenance-pool.service.ts (existingPool and existingPayment), repo-scope.guard.ts (ROLES_KEY) and bounties.controller.ts (ClaimBountyDto). Done means eslint no-unused-vars passes, and the previousStatus rollback question is answered explicitly, either restored or removed on purpose.
Written by the indexing model from the issue text.
Description
Problem
eslint reports no-unused-vars errors at:
bounties.service.ts:165:previousStatusassigned inmarkMergedAndReleaseand never used, which suggests the status rollback on release failure was dropped.bounties.service.ts:38:callerUserIdparam ofcreateignored, so the sponsor identity comes from the DTO (#40).maintenance-pool.service.ts:88:existingPoolfetched and ignored in the race-loser branch.maintenance-pool.service.ts:147:existingPayment(dead lookup).repo-scope.guard.ts:16:ROLES_KEY.bounties.controller.ts:22and its spec:ClaimBountyDto.
Suggested fix
Remove or reconnect each one. In particular, confirm whether previousStatus was supposed to restore the bounty on a failed release.
Related: #46, #259
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 90
- Avg merge
- 31m
- Merged PRs (30d)
- 20
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MergeFi/backend
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug security
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug testing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug security
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
zapcooking/frontend#946 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
WiliamRosa/cosmos-semantic-platform#40 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
liberation-data/drivine#733 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
makecindy/cindy#10062 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day