Skip to content

Never worry about gas fees again! Approve funds on one chain and all chains are automatically refilled ⛽️

Notifications You must be signed in to change notification settings

pauldev20/fillmeup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CREATED FOR ETHGLOBAL SINGAPORE

https://ethglobal.com/showcase/fill-me-up-9u13c

image

Fill Me Up

Never worry about gas fees again! Approve funds on one chain and all chains are automatically refilled.

Problem

Gas cost is annoying! You need to maintain gas on every chain you interact with, and eventually, you'll run out on some of them.

Solution

With this project, you can approve funds on a single chain. Whenever you're low on gas on any chain, your balance will automatically be filled up using those approved funds. This ensures you only spend the minimum necessary to keep just enough gas on all chains, saving you from the hassle of manual refills.

Technical

This project utilizes an intermediary contract to which users approve their funds. A central service monitors the gas levels of users who have approved funds. When a user's gas is low, the service calls the intermediary contract, which uses the approved allowance to transfer some funds to itself. It then swaps and bridges the funds to the chain that is running low. Since the contract can only transfer funds to the same user address on another chain, users maintain complete control and security, with no risk of losing their assets.

sequenceDiagram
    actor User
    participant I as IntermediaryContract
    participant Service

    User->>I: approve(intermediary)
    I<<-->>Service: Listen for Approval event
    activate Service
    Note over Service,Service: Check for funds on other chains 
    alt little funds
        Service->>I: Trigger fill up
        User-->>I: transferFrom(user, intermediary)
        Note over I,I: Initiate swap & bridge 
    end
    deactivate Service
Loading

Contracts

Hyperlane

sepolia

scroll-sepolia

LayerZero

sepolia

base-sepolia

arbitrum-sepolia

polygon-amoy

optimism-sepolia

morph

BridgeSelector

sepolia

About

Never worry about gas fees again! Approve funds on one chain and all chains are automatically refilled ⛽️

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •