Skip to content

Conversation

@0xsuryansh
Copy link
Member

@0xsuryansh 0xsuryansh commented Jun 17, 2025

  1. Added chain selector param to ftf hooks, this change enables the hybrid pools to utilise chain selector to perform lock/release OR burn/mint ops based on the chainselector
  2. Removed onlyRouter from _ccipReceive since it is redundant with the same check in public function of CCIPReceiver abstract contract

@0xsuryansh 0xsuryansh marked this pull request as ready for review June 17, 2025 14:25
@0xsuryansh 0xsuryansh requested a review from a team as a code owner June 17, 2025 14:25
@0xsuryansh 0xsuryansh requested review from RensR and matYang June 17, 2025 14:26
@0xsuryansh 0xsuryansh force-pushed the CCTP-6146-chainselector-param-ftf-hooks branch from f46d9fb to db77807 Compare June 25, 2025 11:26
# Conflicts:
#	chains/evm/.gas-snapshot
#	chains/evm/gobindings/generated/latest/fast_transfer_token_pool/fast_transfer_token_pool.go
#	chains/evm/gobindings/generation/generated-wrapper-dependency-versions-do-not-edit.txt
@github-actions
Copy link

github-actions bot commented Jul 1, 2025

Metric CCTP-6146-chainselector-param-ftf-hooks main
Coverage 70.1% 70.0%

// @inheritdoc CCIPReceiver
function _ccipReceive(
Client.Any2EVMMessage memory message
) internal virtual override onlyRouter {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're making changes like these please provide context. This now looks like major security issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The onlyRouter exist in ccipRouter public function, it was my mistake that I added it in the internal function as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the reason behind this change to the PR description

@0xsuryansh 0xsuryansh requested a review from RensR July 2, 2025 07:44
@0xsuryansh 0xsuryansh added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit b53c52e Jul 2, 2025
33 checks passed
@mateusz-sekara mateusz-sekara deleted the CCTP-6146-chainselector-param-ftf-hooks branch July 28, 2025 11:00
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.

2 participants