Here a new EIP2771 compatible wrapper contract is created on top of Aave Lending Pool contract and a method is created to deposit any ERC20 tokens on Aave lending contract in a gasless manner.
Check the wrapper contract at ./contracts/aaveInterface.sol
To make a gasless deposit
- User give token approval to Aave Wrapper Contract
- User call deposit method of Wrapper Contact
Both the above actions are made gasless on UI using Biconomy SDK MEXA
Check Biconomy Documentation to know more about gasless transaction using EIP 2771
In project /src directory, you can run the UI using command
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.