-
Notifications
You must be signed in to change notification settings - Fork 66
feat: sponsored oft transfers #1926
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
feat: sponsored oft transfers #1926
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved some functions from oft/strategy to this utils file to reuse them. There should be no changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, there should be no changes beyond using the imported utils.
api/_bridges/sponsored/strategy.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this strategy to oft-sponsored
dohaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Left some remarks
dohaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
dohaki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worked on integrating the CCTP sponsored flow on top of your branch but some questions came up.
6e8e5c4
into
epic/sponsored-bridging-to-hypercore
This PR prepares the swap API to support sponsored flows to HyperCore through our own OFT periphery contracts.
Enabled routes for now:
It includes:
maxBpsToSponsorbased on real time market simulation for USDT → USDC-SPOT transfersSponsoredOFTSrcPeripherySee this example calls:
See also this Tenderly simulation showing that signature validation is working as expected. Simulation is failing only because of allowance check.
Note: only Arbitrum contract has been deployed as of now.