Code Monkey home page Code Monkey logo

cashout's Introduction



CashFlow

⚡️ One Click, Multiple token swap for super easy mass off-ramping 💥

Key FeaturesShort DescriptionHow To UseInspirations

Screenshot 2023-07-20 at 10 54 12

Key Features

  • Batch sell multiple tokens into USDC on same network
    • E.g. Swap Cake, WMatic and Link for native USDC with one click
  • Aggregated transaction and Slippage Control
  • Native USDC bridge from source chain to destination chain through CCTP
  • Abstracted redeem USDC process thanks to WormHole Automatic relayers
    • I.e. Utilise Wormhole to deliver USDC to user wallet after destination chain USDC arrival
  • React Front end utilising Three.js
  • 1RPC https endpoints for CCTPxWormhole supported chains - maximise privacy during wallet-wide off-ramping
  • Quick withdrawal, Potential Gas Savings and Ability to optimise transfer for speed vs cost
  • Specific Ubeswap integration for liquidity enhancement on Celo Chain - Forward thinking accommodation of potential Roll-up layer 2 conversion.

Short Description

Utilising the Dzap sdks, we can identify all the tokens in a connect wallet (supports metamask, walletconnect, talisman etc). We then allow the user to dictate which tokens in their wallet to be converted to USDC and their slippage tolerance. Dzap sdk natively calls 1inch, uniswap and sushiswap, Event Horizon integrates Ubeswap to allow integration of Celo chain. Then they select which wallet address and destination chain to receive the USDC. We use the CCTP and wormhole integration together with 1RPC https endpoints for Ethereum and Avalanche C-chain for the moment.

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/Podima2/Event-Horizon

# Go into the repository
$ cd Event-Horizon

# Install dependencies
$ npm install

# Run the app
$ npm start

Note DZap SDK is not connected to front end in current version. DZap swap, of multiple tokens should be fed into CCTPxWormhole swap mechanism. Additionally, Dzap sdks are not connected to CTTPxwormhole integration due to unknown network connection issues not regarding API connectivity in the nativeUSDC demo clone.

FAQs

  1. Why is this necessary?

Off-ramping for diversified token holders is a time-consuming and potentially frustrating process in particular during moments of high volatility. Simplifying the process is critical for onboarding more users from more catered environments in web2.

  1. Why alter the circle/wormhole integration to remove the last swap from USDC to the destination chain native token?

We believe this actually allows for increased flexibility given native to USDC liquidity, therefore, should the user decide to continue swapping, they commence from a low-risk position. Additionally, by leveraging the ability to redeem USDC/USD 1-to-1, we are effectively creating a wallet-wide off-ramp mechanism.

  1. Why utilise 1RPC endpoints as opposed to other providers and why ethereum and avalanche C chain?

Other node providers such as Infura have been known to collect user information such as IP address, to maintain the ethos to right-of-privacy for Event Horizon users we believe they allign best with our values. With regards to ethereum and avalanche C chain specifically, these are two of the three networks supported by CCTP as of the present moment however we operate under the assumption that Native USDC will only continue to expand its interoperability and therefore the destination chains will become more diverse.

  1. Whats the roadmap going forward?

Utilise RFQ based crosschain DEX's in combination with xDEX's to provide enhanced support for trading pairs across chains. This would replace the dependency on the Dzap sdks. Furthermore, including support for Arbitrum, the other supported network by CCTP.

Inspirations

These examples contributed to the creation of this project:


GitHub @Podima2  ·  Twitter @The_Game_2030

cashout's People

Contributors

podima2 avatar

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.