Skip to content
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

Update ZkBobPay contract #85

Merged
merged 2 commits into from
Aug 18, 2023
Merged

Update ZkBobPay contract #85

merged 2 commits into from
Aug 18, 2023

Conversation

k1rill-fedoseev
Copy link
Collaborator

@k1rill-fedoseev k1rill-fedoseev commented Aug 11, 2023

Changelog

  • Support multiple router contracts
  • Restrict allowed selectors
  • Put ZkBobPay behind proxy contract

@k1rill-fedoseev k1rill-fedoseev self-assigned this Aug 11, 2023
}

(bool status,) = oneInchRouter.call{value: msg.value}(_oneInchData);
(bool status,) = _router.call{value: msg.value}(_routerData);
Copy link
Contributor

Choose a reason for hiding this comment

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

in order to increase security does it make sense to keep of list of allowed methods for the particular router?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, not sure if it would make much sense in case of 1inch, since it will require supporting almost all selectors. But for li.fi this sounds reasonable. It looks like we only need to support one selector for swapTokensGeneric(...) - https://louper.dev/diamond/0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE?network=polygon

Implemented in 85f55a9

@akolotov akolotov merged commit 4777adf into develop Aug 18, 2023
3 checks passed
@akolotov akolotov deleted the feat/payment-link-updates branch August 18, 2023 15:15
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