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

Add "wrap/unwrap all" functions; always wrap/unwrap all in QuarkBuilder #105

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

kevincheng96
Copy link
Contributor

@kevincheng96 kevincheng96 commented Nov 18, 2024

We start using the new "wrap up to" scripts for ETH/WETH in the QuarkBuilder. In the case that ETH/WETh is bridged, we also need to always attempt to wrap/unwrap ETH/WETH on the destination chain because the QuarkBuilder cannot know ahead of time if Across will be sending ETH or WETH to the wallet.

We implement new wrap/unwrap all functions for ETH/WETH and stETH/wstETH. We also update the QuarkBuilder to always wrap/unwrap all (except for WETH, where we use "unwrap up to" because we prefer to preserve a user's WETH balance).

@kevincheng96 kevincheng96 force-pushed the kevin/wrap-up-to-builder branch from 5672d15 to 703f5f5 Compare November 19, 2024 07:46
src/builder/BridgeRoutes.sol Show resolved Hide resolved
src/builder/BridgeRoutes.sol Outdated Show resolved Hide resolved
src/builder/QuarkBuilderBase.sol Outdated Show resolved Hide resolved
src/builder/QuarkBuilderBase.sol Outdated Show resolved Hide resolved
Base automatically changed from kevin/wrap-up-to to main November 20, 2024 21:46
@kevincheng96 kevincheng96 force-pushed the kevin/wrap-up-to-builder branch from 703f5f5 to 723e8b2 Compare November 21, 2024 00:16
@kevincheng96 kevincheng96 changed the title Use wrap up to scripts in QuarkBuilder Implement "wrap/unwrap all" script; always wrap/unwrap all in QuarkBuilder Nov 21, 2024
@kevincheng96 kevincheng96 changed the title Implement "wrap/unwrap all" script; always wrap/unwrap all in QuarkBuilder Add "wrap/unwrap all" functions; always wrap/unwrap all in QuarkBuilder Nov 21, 2024
@kevincheng96 kevincheng96 force-pushed the kevin/wrap-up-to-builder branch from 723e8b2 to ea77ab6 Compare November 21, 2024 00:25
src/WrapperScripts.sol Show resolved Hide resolved
src/builder/BridgeRoutes.sol Show resolved Hide resolved
src/builder/QuarkBuilderBase.sol Outdated Show resolved Hide resolved
@kevincheng96 kevincheng96 force-pushed the kevin/wrap-up-to-builder branch from 1700ab3 to 42a2c1c Compare November 21, 2024 22:26
@kevincheng96 kevincheng96 merged commit fd0f698 into main Nov 22, 2024
4 checks passed
@kevincheng96 kevincheng96 deleted the kevin/wrap-up-to-builder branch November 22, 2024 03:18
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