GasStation
Deposit funds on one chain, receive gas on multiple chains at once.
Problem Statement
Did you bridge a token to a new chain? But now can't do anything because you didn't bridge the native gas? This is why we've built GasStation.GasStation allows you to deposit any token on a supported chain, and receive native gas on a multitude of chains all at the same time.As a user: sign one tx on the front end, get gas on multiple chains at the same time.
Solution
The smart contracts are written in solidity, we wrote the front end using vite and react. The testing of the smart contracts and deployments was using hardhat.The flow works as followed.We deploy our smart contracts on each chain.A user deposits their token into our smart contract, and states where they would like to receive gas, and how much of it.We pick up the event that the user locked tokens on a source chain.We call the other smart contracts called on the other chains to drip the gas to the user.The whole thing was thrown together pretty quickly, so there was a ton of efficiencies made, and some are just long shots. I don't know why we had issues before, i don't know how we solved them, but i know that it works now and that's all that matters.
Hackathon
ETHGlobal Buenos Aires
2025
Prizes
- 🏆
Best use of MultiBaas
Curvegrid
- 🏆
Build Unchained Apps with Avail Nexus SDK
Avail
Contributors
- basedafdev
10 contributions
- jackchinski
7 contributions