Optimising DeFi Strategies with BalloonDogs: A Demo Use-Case

The DeFi user experience is currently overwhelmed and fragmented across various protocols and chains. There are distinct...

Optimising DeFi Strategies with BalloonDogs: A Demo Use-Case

Background

The DeFi user experience is currently overwhelmed and fragmented across various protocols and chains. There are distinct DeFi protocols operating on the same chain, as well as identical DeFi protocols deployed on multiple chains. Additionally, DeFi users encounter challenges when seeking the best protocols and chains—balancing low gas costs with maximum APYs in an ever-changing environment. Achieving this balance requires combining multiple transactions that optimize value, speed, and simplicity, which demands technical expertise in Web3 protocols and wallets.

BalloonDogs aims to address these issues through its DeFi Abstraction Layer, which leverages user intents and account abstraction. This post explores examples of how BalloonDogs leverages AA (Account Abstraction) to create a holistic and streamlined DeFi experience.

For practical demonstration, we narrowed our focus to interactions with Aave, a leading DeFi protocol, to underscore the practicality of what the BalloonDogs team is constructing. We will explore two paths: Lending $DAI on Aave using spot $LINK and retrieving $LINK by returning $aDAI. These two paths will manifest in two states: one for the wallet and one for the Aave protocol.

Defining the States

To demonstrate how BalloonDogs' DeFi Abstraction Layer optimizes DeFi strategies, we will define the following two states, s1 and s2.

s1: $LINK tokens in a wallet on Ethereum

s1 = {
    token: 0x514910771af9ca656af840dff83e8264ecf986ca, // LINK
    amount: ..., // specify the amount here
    address: 0x43B32D92d8A6b67104D621E9a9C3831A01A8c50c, // owner
    chainId: 1
}

State 1 (s1) Definition

s2: $DAI tokens in Aave protocol on Ethereum

s2 =  {
    token: 0x6B175474E89094C44Da98b954EedeAC495271d0F // DAI
    amount: ...
    protocol: 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 //Aave
    chainId: 1
}

State 1 (s2) Definition

By using BalloonDogs protocol, users can go from one state to another ( s1s2) and back (s2s1) by following two different paths as defined below.

Defining the Paths

We will describe paths for lending $LINK from the smart contract wallet(SCW) followed by withdrawing it to the SCW using the BallongDogs DeFi abstraction layer.

Definition

Users want to use their $LINK tokens to supply $DAI to Aave.

First, their $LINK has to be swapped for $DAI as the relevant Aave pool requires deposits in a specific asset. BalloonDogs enables such swaps, whether it is required for asset-specific deposits or to achieve better outcomes in terms of cost.

Now that we've outlined the paths users can move with BalloonDogs—from state s1 to s2—it's important to describe and understand how these transitions occur in practice.

The Intent

From the description above, using s1 as the "From" state and s2 as the "To" state, the DeFi Abstraction Layer interprets this intent, representing a state change, to provide specific instructions to the Smart Contract Wallet (SCW).

Diagram showing the transition path from state s1 to state s2 using BalloonDogs DeFi Abstraction Layer.
Figure 1: s1s2 Transition Path

Swap

The SCW interacts with the most optimal path to swap. In this case, the Uniswap pool was chosen to swap $LINK for $DAI.

Supply

Once the swap is complete, the transaction logic proceeds to supply the $DAI tokens to Aave.

Upon completion of the supply process, users receive $aDAI tokens, enabling them to earn interest on the supplied assets.

Approve

Both swap and supply operations require an approval step beforehand. Our network provides instructions to the SCW for these steps as well, without requiring user intervention.

Flowchart depicting the swap and supply process on BalloonDogs Protocol.
Figure 2: Swap and Supply Process on BalloonDogs Protocol

In this path, We lent $DAI on Aave with spot $LINK. Now it's time to get back our $LINK using the below path

Definition

Moving from s2s1 requires a user’s $DAI supplied on Aave to be withdrawn and swapped to $LINK.

Now that we've outlined the paths users can take with BalloonDogs— from s2 back to s1—it's important to describe and understand how these transitions occur in practice.

The Intent

In this case, s2 is defined as the from state and s1 is defined as the to state.

Diagram showing the transition path from state s2 to state s1 using BalloonDogs
Figure 3: s2s1 Transition Path

Withdrawal

First, execute the withdrawal to get $DAI back from Aave.

Swap

The withdrawn $DAI is now swapped to $LINK. The swap is based on the best available route at the time of execution.

Approve

The approvals for all of these operations are provided without user intervention.

Flowchart depicting the withdrawal and swap process on BalloonDogs Protocol.
Figure 4: Withdrawal and Swap Process on BalloonDogs

This use case shows how BalloonDogs facilitates seamless transitions between different states—whether lending $DAI on Aave using $LINK or converting $DAI back into $LINK.

These processes are executed autonomously, optimizing cost, and user experience without manual intervention. This marks the starting point for BalloonDogs. We are enthusiastic about exploring new features in the near future.

Future

We look forward to a future where users can seamlessly combine deposits and withdrawals from different protocols into a single execution stream to enable smooth DeFi navigation. In addition to protocol-level abstraction, we are also building to abstract away the complexity of multiple chains, which will provide users with a unified interface to interact with multiple liquidity sources.

Resource optimisation (gas cost, time and APY) with BalloonDogs DeFi abstraction layer
Figure 5: BalloonDogs DeFi abstraction layer optimizing DeFi experience (value, speed and simplicity) across chains and protocols.

With BalloonDogs, users can delegate complex transaction execution processes, eliminating the need for manual chain selection.

Additionally, by integrating chain abstraction capabilities into DeFi abstraction, BalloonDogs will enable users to perform actions across different blockchains with ease. Users can abstract parameters like the choice of chain or deposit token, allowing our engine to determine the optimal path and execute the transactions efficiently. This approach addresses most of the UX challenges faced by users in the blockchain space leading to the next wave of innovation like seamless multi-chain or cross-chain experiences, intuitive blockchain interactions, and optimal efficiency.

Interested in exploring more about what we are cooking?

Visit BalloonDogs to learn more about our platform. Follow us on Twitter and LinkedIn for the latest updates and insights. Together, let’s redefine DeFi for a more accessible, efficient, and interconnected financial ecosystem.