Skip to content

feat(MulticallerClient): Allow caller to use PermissionedMulticaller #2219

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented May 4, 2025

Can be used to batch txns to contracts that whitelist the msg.sender

Depends on across-protocol/sdk#1017

Can be used to batch txns to contracts that whitelist the msg.sender
@grasphoper grasphoper force-pushed the permissioned-multicall3 branch from 1435f8c to d304af5 Compare May 5, 2025 18:13
@@ -272,12 +284,17 @@ export class MultiCallerClient {
const callData: Multicall2Call[] = [];
let gasLimit: BigNumber | undefined = bnZero;
transactions.forEach((txn, idx) => {
if (!txn.unpermissioned || txn.chainId !== chainId) {
if (!txn.unpermissioned || !txn.sendThroughPermissionedMulticall || txn.chainId !== chainId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct?

This check seems to be saying: "if any of the txns in transactions required permissions => throw". But this is not what we're going for with the PermissionedMulticall?

Copy link
Contributor

Choose a reason for hiding this comment

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

Before we fix it here, let's first discuss our strat for using this in finalizer in Slack

Copy link
Member Author

@nicholaspai nicholaspai May 5, 2025

Choose a reason for hiding this comment

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

right, should be:

Suggested change
if (!txn.unpermissioned || !txn.sendThroughPermissionedMulticall || txn.chainId !== chainId) {
if (!(txn.unpermissioned || txn.sendThroughPermissionedMulticall) || txn.chainId !== chainId) {

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