Refuel

Managing native or gas tokens across multiple blockchains can be cumbersome and frustrating, especially when a cross-chain swap is required just to get enough gas for your main transaction. If you've ever felt this pain, Refuel is here to help.

What Is Refuel?

Refuel is an instant bridge that allows users to swap gas tokens from one chain for gas tokens on other chains. Since gas swaps are typically small transactions meant to facilitate larger ones, processing speed and convenience are crucial. To ensure quick and efficient swaps, we've chosen a centralized approach for Refuel to make gas-to-gas swaps as fast as possible.

How Does It Work?

  1. Deployment: Refuel contracts are deployed on supported chains. In the first wave, Refuel will be available on Ethereum, Arbitrum, Base, and zkSync Era, with plans to expand support to all chains supported by XY Finance

  2. Transaction Creation: When users interact with Refuel on XY Finance, a transaction is initiated (after your approval) to transfer gas tokens from your wallet to our Refuel contract on the source chain.

  3. Confirmation: We monitor the contracts for successful transfers on the source chain to confirm these transfers are indeed completed on the source chain

  4. Completion: Upon confirmation, the contracts will initiate a corresponding transaction on the destination chain, transferring the appropriate amount of gas tokens to your address.

How Can I Use Refuel?

Here's a quick step-by-step guide.

  1. Navigate: Click the "Refuel" button in the upper navigation bar.

  2. Connect Wallet: Connect your wallet.

  3. Select Chains: Choose the source and destination chains for your gas tokens.

  4. Input Amount: Enter the token amount to swap or use the "5x Gas" / "10x Gas" buttons for pre-defined amounts based on estimated gas price.

  5. Refuel: Click the "Refuel" button to proceed.

  6. Confirm: Click the "Refuel" button again to confirm & approve the transaction.

  7. Track: After approval, monitor your transaction status on the same page.

  8. Tips: If you switched to a different page, you may find your Refuel transactions under "Transaction -> Refuel"

Last updated