project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

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!

DeCredit Wallet

Created At

LFGHO

Winner of

Aave - Integration Prize

Prize Pool

ETHGlobal - 🏆 LFGHO Finalist

Project Description

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 GHO
  • use those to cover the transaction
  • pay back the flashmint balance using a loan from AAVE with previously collaterized assets.

How it's Made

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 from IERC3156FlashLender, and pass the required token gated action to the calldata argument.

Our ERC-7579-module handles callbacks from IERC3156FlashLender. In a callback, token gated action is executed, tokens needed for repay are borrowed from IAavePool, and tokens are returned to IERC3156FlashLender.

We also have modified a frontend wallet for ERC-4337 wallet, making it capable of:

  • creating smart account
  • installing our module to account
  • lending tokens to AAVE
  • sending GHO tokens to any address by using flashCall to GHOFlashcallLender
  • AAVE borrowed and lended tokens list
background image mobile

Join the mailing list

Get the latest news and updates