Problem
In app/(tabs)/reputation.tsx (lines 119-124), the handleVouch() function submits a vouch with mentorWallet: walletAddress AND learnerWallet: walletAddress — i.e., the user is vouching for THEMSELVES. This is a logical bug.
User impact: Users can vouch for themselves, artificially inflating their own reputation. This breaks the reputation system's integrity.
Root Cause
The vouch implementation uses the current wallet address for both mentor and learner fields.
What To Build
- Add a recipient wallet address input field for the vouch
- Validate that mentor wallet ≠ learner wallet
- Show error if user tries to vouch for themselves
- Update the handleVouch() to use the correct recipient address
Files To Touch
app/(tabs)/reputation.tsx — lines 119-124 fix self-vouch bug
Acceptance Criteria
Mandatory Checks
Problem
In
app/(tabs)/reputation.tsx(lines 119-124), thehandleVouch()function submits a vouch withmentorWallet: walletAddressANDlearnerWallet: walletAddress— i.e., the user is vouching for THEMSELVES. This is a logical bug.User impact: Users can vouch for themselves, artificially inflating their own reputation. This breaks the reputation system's integrity.
Root Cause
The vouch implementation uses the current wallet address for both mentor and learner fields.
What To Build
Files To Touch
app/(tabs)/reputation.tsx— lines 119-124 fix self-vouch bugAcceptance Criteria
Mandatory Checks