DeCredit Wallet
Our ERC-4337 compatible wallet works like a credit card for any GHO transaction. You don't need to have any GHO on the balance to perform operations with it, just make sure to pay off your credit later!
Screenshots




Problem Statement
Full description on github. We encourage to read!ERC-4337 compatible wallet works like a credit card for any GHO transaction. You don't need to have any GHO on the balance to perform operations with it, just make sure to pay off your credit later!For any outcoming transaction that involves GHO if user's token balance is not enough, the module will modify this transaction to perform:flashmint of a specific amount of GHOuse those to cover the transactionpay back the flashmint balance using a loan from AAVE with previously collaterized assets.
Solution
Full description on github. We encourage to read!We implement ERC-7579-compatible module smart contract, which expands ERC-4337 smart account logic.To execute a transaction, user should get tokens fromIERC3156FlashLender, and pass the required token gated action to the calldata argument.Our ERC-7579-module handles callbacks fromIERC3156FlashLender. In a callback, token gated action is executed, tokens needed for repay are borrowed fromIAavePool, and tokens are returned toIERC3156FlashLender.We also have modified a frontend wallet for ERC-4337 wallet, making it capable of:creating smart accountinstalling our module to accountlending tokens to AAVEsending GHO tokens to any address by using flashCall toGHOFlashcallLenderAAVE borrowed and lended tokens list
Hackathon
LFGHO
2024
Prizes
- 🏆
Integration Prize
Aave
- 🏆
🏆 LFGHO Finalist
ETHGlobal
Contributors
- kroist
11 contributions