Giter Club home page Giter Club logo

uni-v4-crosschain-hook's Introduction

Uniswap V4 ๐Ÿค Across Protocol Hook

Hook Art This is cross-chain hook designed to facilitate asset transfers / swaps from Ethereum L1 to any ETH L2, leveraging the Across Protocol for efficient and secure bridging. The process integrates smart contract operations with off-chain logic managed by a frontend application, ensuring a seamless user experience for cross-chain transactions.

Process Overview

The transfer and swap process involves several key steps, from the initial user action in the frontend application to the final receipt of the desired token on L2. Here's how it works:

1. User Selection and Transfer Initiation

  • User Interaction: The user accesses a frontend application, where they select the chain and the specific token they wish to swap for on the L2.
  • Transfer Trigger: The user initiates the transfer process through the frontend interface.

2. Automatic Swap to WETH on L1

  • Token Swap: The user's selected token is automatically swapped for Wrapped Ethereum (WETH) on L1 using and the afterSwap hook bridges WETH to the desired L2 network.

3. Airdrop to User

  • Relayers: Across protocol relayers facilitate the transfer and airdrop WETH to the user's address on L2.

4. Token Swap on L2

  • Token Swap: The user's WETH is automatically swapped for the desired token on L2 using the afterSwap hook.

uni-v4-crosschain-hook's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.