# One-click Cross-Chain Deposit

By [Via Labs](https://paragraph.com/@viaexchange) · 2023-05-09

---

What is Zaps?
-------------

Zap is a new way of interacting with projects. This is a depositing method that allows you to bundle multiple transactions into a single one, saving you valuable gas and, most importantly, time. This way is particularly useful when trying to access a pool, farm, or vault, as it condenses what could have taken anywhere from 2 to 5 or even more than 6 transactions into a single streamlined process. With Zap, you can make transactions quickly and efficiently without having to navigate through multiple website screens or worry about the potential for errors or delays in frontends of projects. Whether you're a true crypto chad who has millions in staking or a newcomer to the world of digital assets, Zap is a powerful tool that can help simplify your daily UX and make your DeFi life easier.

### What is Account Abstraction?

Account Abstraction moves Ethereum from having two types of accounts (Externally Owned Accounts and Contract Accounts) to just one - Contract Accounts. These Contract accounts can initiate transactions and pay transaction fees, and be customized to users’ needs.

> above is how a typical Defi app works today
> 
> below is how I think it should work
> 
> first, complete all actions (on simulated data if necessary), then batch-sign everything. more than one signature per interaction should be an anti-pattern

![https://twitter.com/hasufl/status/1538793436085637121](https://storage.googleapis.com/papyrus_images/d5d829dac2d6424acf42a1a0567ee6275feda7b4edb4c3705df0ea3dccfc2474.png)

https://twitter.com/hasufl/status/1538793436085637121

### Let’s Compare AA and Zaps in the DeFi landscape?

As you can see photo above, this is only theory. And for each unique project, you will have to make an addon to be able to just interact with it. Plus, you will have to bridge your tokens in the other dapp. Sounds not very UX-friendly.

Let’s take as an example route from your mooHopUSDC (Vault on Beefy for Hop USDC pool) on Optimism to the wstETH/​rETH/​sfrxETH V2 vault on Beefy on Mainnet in Balancer (AURA) LP.

Now we can start a step-by-step review for this route (for tokens):

*   From mooHopUSDC to Hop-LP-USDC - we will withdraw your Single Side LP from the Beefy Vault to clean LP token on Hop - **to Withdraw, you must have Approval for Usage.**
    
*   Withdraw your Hop-LP-USDC to USDC - **to Withdraw, you must have Approval for Usage.**
    
*   Swap from USDC to WETH - **to Swap, you must have Approval for Usage.**
    
*   Unwrap from WETH to ETH - **to Swap, you must have Approval for Usage.**
    
*   Bridge ETH to Mainnet ETH - **to Bridge, you must have Approval for Usage.** _Steps from Swap to Bridge can be without Approvals if you use us as a multistep bridge._
    

![](https://storage.googleapis.com/papyrus_images/73972f143e25adb1bb748b692f59931c9491fa50320676c9a699cdcbdb74ead9.png)

Steps on the Optimism side are done. The next steps are on Mainnet:

![](https://storage.googleapis.com/papyrus_images/69d9669044bd354cc4ab8af1485d58f5cc5245699edc76c78c896bb007005676.png)

*   Receiving ETH on Mainnet (receiving doesn’t require from you to sign or claim)
    
*   Swap from ETH to wstETH - **to Swap, you must have Approval for Usage.**
    
*   Swap from ETH to rETH - **to Swap, you must have Approval for Usage.**
    
*   Swap from ETH to sfrxETH - **to Swap, you must have Approval for Usage.**
    
*   Depositing wstETH/​rETH/​sfrxETH in Balancer LP - **to Deposit, you must have Approval for Usage for each Token.**
    
*   Deposit wstETH/​rETH/​sfrxETH in Balancer (Aura) LP - **to Deposit, you must have Approval for Usage.**
    
*   Stake it into wstETH/​rETH/​sfrxETH V2 vault on Beefy - **to Stake, you must have Approval for Usage.**
    

![](https://storage.googleapis.com/papyrus_images/ae012143eb1d477d5b0739efae530ef64159b9089e9a2c21656c111c5b84e513.png)

Let’s review in terms of UX and our route as a user:

*   Withdrawal from Beefy.
    
*   Withdrawal from Hop.
    
*   Now you can bridge directly from Hop Bridge to the Mainnet. But swapping to ETH on Optimism will slightly reduce the loss on the bridge. So it will look like this:
    
    *   Swap on 1inch.
        
    *   Bridge on Hop Bridge.
        
*   Or you can make a swap and bridge on Via router in 1 transaction.
    
*   Now you will have to swap ETH to 3 different versions of ETH on DEX or on Via or if you are an advanced user, you know about ODOS or BEBOP.
    
*   Deposit into LP on Balancer
    
*   Deposit on Aura
    
*   Stake on Beefy
    

And most importantly! **DON’T FORGET ABOUT YOUR GAS LOSSES!**

### Let’s see what Zaps can give us.

Step-by-step review for this route (for tokens):

*   You give Approval for mooStargateUSDC and after that, you send it to the wstETH/​rETH/​sfrxETH V2 vault on Beefy on Mainnet in Balancer (AURA) LP.
    

Thats it. One Approval and One-click from the swap/bridge/withdrawal/deposit/approval, and probably any type of interaction in DeFi.

![One step](https://storage.googleapis.com/papyrus_images/9a1cc35bdca96712efa1c3f25fbbd4563bbf0bbdf29554f4162a82edd07623ad.png)

One step

### Now let’s count:)

*   11 separate transactions\* Swaps/Bridge/Deposits/Withdrawals (9 if you use Via as a router for swap and bridge).
    
*   11 Approvals (9 if you use Via as a router for swap and bridge).
    
*   22 Revokes after the usage for security reasons.
    
*   You will have to visit 7 websites.
    

It is a 44/40 separate transaction from your wallet and a small bunch of websites to use. Now think about the time costs and after that about your gas.

In our V3 you just need one website, 2 txs and just one revoke

44/40 vs. 2?
------------

* * *

Final thoughts.
---------------

Everything can be composed into 3 main things you can save using our Zaps.

1.  Gas saving tool
    
2.  Time-saving tool
    
3.  Preservation of nerves
    

Consider your time and gas management with our future V3. Next time we will talk about DLN in cross-chain lending/staking.

* * *

_To learn more about Via Protocol, check out:_

*   [Twitter](https://twitter.com/via_protocol)
    
*   [Discord](https://discord.com/invite/viaexchange)
    
*   [Docs](https://docs.via.exchange/product-docs/)
    
    **See you on the cross-chain and now on cross-chain staking, Via Protocol team.**

---

*Originally published on [Via Labs](https://paragraph.com/@viaexchange/one-click-cross-chain-deposit)*
