About the project
ENGLISH
What we built
GasslessPilotVault is a yield vault (ERC-4626) on Ethereum Sepolia that lets a user deposit USDC to automatically earn yield on Aave V3, without ever needing native ETH — all gas is paid in USD₮ through WDK integration.
The problem we solve
Onboarding into DeFi today requires users to first acquire ETH just to pay for gas, before they can do anything useful. We remove that friction: the user arrives with an empty wallet and can still deposit and start earning yield from the very first interaction.
Architecture
- Contract (Solidity / Foundry):
GasslessPilotVault.sol, an ERC-4626 vault that automatically deploys deposited capital into Aave V3, with a configurable allocation and an on-chain-calculated performance fee - WDK integration (`@tetherto/wdk-wallet-evm-erc-4337`): generates an ERC-4337 smart account without requiring a traditional wallet like MetaMask
- Gasless paymaster (Candide): sponsors the gas for every transaction, charged in real USD₮ instead of ETH
- Frontend (React + Vite + TypeScript): visual onboarding flow showing the whole experience — empty wallet (0 ETH) → USD₮ fee quote shown before signing → deposit
How the flow works
- The user "connects" and the app generates a brand-new smart account (0 ETH, 0 tokens)
- The user receives USD₮ (for gas) and USDC (to deposit)
- Depositing triggers a single UserOperation that batches
approve + deposit, sponsored by the paymaster - The vault receives the USDC and automatically supplies it to Aave V3, earning yield
- The user can withdraw at any time — the contract pulls liquidity from Aave if needed
WDK modules used
@tetherto/wdk-wallet-evm-erc-4337— smart account management and gasless UserOperation submission
Tech stack
- Contracts: Solidity, Foundry, OpenZeppelin, Aave V3
- Frontend: React, Vite, TypeScript, ethers.js
- Network: Ethereum Sepolia (testnet)
============================================================================ ESPAÑOL # # ### Qué construimos
GasslessPilotVault es una bóveda de yield (ERC-4626) en Ethereum Sepolia que permite a un usuario depositar USDC para generarlo automáticamente en Aave V3, sin necesitar ETH nativo en ningún momento — todo el gas se paga en USD₮ mediante integración con WDK.
El problema que resolvemos
Onboarding a DeFi hoy exige que el usuario primero consiga ETH solo para pagar gas, antes de poder hacer nada útil. Eliminamos esa fricción: el usuario llega con una wallet vacía, y aun así puede depositar y generar yield desde el primer momento.
Arquitectura
- Contrato (Solidity / Foundry):
GasslessPilotVault.sol, un vault ERC-4626 que despliega automáticamente el capital hacia Aave V3 en cada depósito, con allocation configurable y cobro de comisión de desempeño calculado on-chain - Integración WDK (`@tetherto/wdk-wallet-evm-erc-4337`): genera una smart account ERC-4337 sin necesidad de una wallet tradicional como MetaMask
- Paymaster gasless (Candide): patrocina el gas de cada transacción, cobrado en USD₮ real en vez de ETH
- Frontend (React + Vite + TypeScript): onboarding visual que muestra el flujo completo — wallet en 0 ETH → cotización de comisión en USD₮ antes de firmar → depósito
Cómo funciona el flujo
- El usuario "conecta" y el sistema genera una smart account nueva (0 ETH, 0 tokens)
- El usuario recibe USD₮ (para gas) y USDC (para depositar)
- Al depositar, se ejecuta una sola UserOperation que empaqueta
approve + deposit, patrocinada por el paymaster - El vault recibe el USDC y automáticamente lo deposita en Aave V3, generando yield
- El usuario puede retirar en cualquier momento — el contrato jala liquidez de Aave si hace falta
Módulos WDK utilizados
@tetherto/wdk-wallet-evm-erc-4337— gestión de la smart account y envío de UserOperations gasless
Stack técnico
- Contratos: Solidity, Foundry, OpenZeppelin, Aave V3
- Frontend: React, Vite, TypeScript, ethers.js
- Red: Ethereum Sepolia (testnet)
Hacki