Skip to content

fix: require fee proxy receiver to match sender#9

Open
jynbil1 wants to merge 3 commits into
intuition-box:mainfrom
jynbil1:codex/receiver-validation-issue-1
Open

fix: require fee proxy receiver to match sender#9
jynbil1 wants to merge 3 commits into
intuition-box:mainfrom
jynbil1:codex/receiver-validation-issue-1

Conversation

@jynbil1
Copy link
Copy Markdown

@jynbil1 jynbil1 commented May 13, 2026

Fixes #1.

This implements Bounty 2A from #2.

Summary:

  • Rejects proxy calls when receiver differs from msg.sender.
  • Applies the check to createAtoms, createTriples, deposit, and depositBatch.
  • Adds regression tests for all four entrypoints so a malicious or misconfigured dApp cannot route user-funded shares to an arbitrary receiver.

Validation:

  • npm test passes: 38 passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No validation that deposit receiver is the actual user (msg.sender)

1 participant