Skip to content

Add msgSender() to V4Quoter #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add msgSender() to V4Quoter #458

wants to merge 4 commits into from

Conversation

saucepoint
Copy link
Collaborator

@saucepoint saucepoint commented Apr 2, 2025

Related Issue

There's a growing subset of hooks which read the "wallet" of the swapper (or position creator). These hooks normally use the msgSender() view function exposed by Universal Router and PosM, and can facilitate transactions without failure

However, msgSender() was not available on V4Quoter, causing reverts/failures when using the quoter against a hook'd pool reading msgSender()

Description of changes

Add msgSender() external view returns (address) to V4Quoter.sol via transient storage

Add IMsgSender and added inheritance to IV4Quoter, BaseActionsRouter

return Locker.get();
}

modifier setMsgSender() {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you move this definition above the functions?

Copy link
Member

@snreynolds snreynolds left a comment

Choose a reason for hiding this comment

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

lgtm! can you add a test though?

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.

3 participants