WiFi

WiFi

Solution to “Why(Wi) DeFi?” An all-in-one dApp with a seamless experience in exploring, investing in various DeFi opportunities without the need to leave the dApp even once.

WiFi

WiFi

Solution to “Why(Wi) DeFi?” An all-in-one dApp with a seamless experience in exploring, investing in various DeFi opportunities without the need to leave the dApp even once.

The problem WiFi solves

Problem

DeFi has opened diverse opportunities not possible from the centralized finance systems. It is free from many regulations and products are easily customizable and flexible. However, the complicated user experience in interacting with DeFi protocols hinders DeFi’s true potential. There are three main problems in DeFi that hinders a seamless UX.

  1. People who are not familiar with DeFi do not know WHERE to invest in. What kind of protocols there are, how they work, which one are the optimal, lucrative choice to invest in.
  2. Even if they knew where to invest in, there lies the problem of HOW to invest. Even if they knew their source and destination in moving their asset, they would need to know how to optimally swap, bridge, aggregate assets multiple times and finally deposit assets to the DeFi protocol.
  3. Finally, even if they solved the first two problems, they would need to navigate through multiple dApps, moving back and forth through different pages, which can be time consuming and stressful.

Solution

Our project aggregates all the necessary components needed for a seamless DeFi experience. First by aggregating DeFi protocol information via TheGraph API and DeFi aggregator APIs, we give a diverse investment option with high APR to choose from. Next, our Funnel Algorithm aggregates source value, composed of multiple assets from multiple chains, to the destination chain. Our Funnel Contract receives assets from the Funnel Algorithm and swaps the assets to the right amount and type of asset and deposits the funds in the DeFi protocol. This whole complicated process is abstracted, and the user only needs to choose how much and where to invest in. Other utilities such as gathering multiple assets and sending it to other chains for paying gas fees and withdrawal functionality complete the seamless UX. All the functionalities mentioned are integrated into a single dApp, making the DeFi experience accessible for everyone.

Challenges we ran into

Challenge

  1. Despite the effort to reduce the amount of transactions for a frictionless experience, the process of transferring the assets (via swap, bridging) to the DeFi protocol could not be done in a single transaction, due to bridging and transaction signatures. Swap ratio, bridging fees, gas prices are constantly changing, making these results non-deterministic which created an obstacle in depositing the exact amount of assets and optimal path in each step.
  2. Testnets lacked some DeFi infrastructures we needed for our project demo.

Solution

  1. Through recalculation after each step, we were able to calculate the optimal path for each step and the exact amount to transfer to the next step. For example, for a path abstracted into 6 steps, initially, the optimal path for step 16 is calculated and step 1 is executed. After step 1, the optimal path and assets for path 26 are recalculated and so on until the very last step.
  2. We deployed and used some mock dexes and bridges.

Tracks Applied (5)

Financial Application

By abstracting and automating the complicated where and how of DeFi investment, we simplify the UX so that users only ne...Read More

Web3.0 dApp

DeFi may seem much more complicated and time consuming, but once the complicated process is abstracted through our UX, p...Read More

Most innovative dApps on Gnosis Chain

Our project aggregates assets and users from multiple source chains and aims for mass adoption of non-web3-native users....Read More

GnosisChain

Develop Near dApps specialized for Mass Adoption

Diverse and unprecedented lucrative opportunities integrated with a seamless UX for interacting with DeFi protocols may ...Read More

NEAR Protocol

Best New Subgraph & Best Use Of Existing Subgraphs

We used the Uniswap V2 thegraph from https://thegraph.com/hosted-service/subgraph/ianlapham/uniswapv2 to track real-time...Read More

The Graph

Discussion