Case Study

Blend & Meru Case Study

Today we are here to talk about Blend, the first-ever winner of Stellar’s i³ Awards in the innovation category. Blend is changing the game when it comes to DeFi on Stellar, opening the door for underserved communities to have access to financial opportunities not often available to them through traditional banking services.

In this article, we’ll explore how Blend works, who is leveraging it, and why integrating DeFi tools like Blend contributes to creating a more inclusive financial future.

About

What is Blend?

Blend is a DeFi protocol primitive built on the Stellar blockchain that provides the foundation for users to create efficient lending pools and integrate them into their applications for a variety of use cases. These lending pools allow end-users to either deposit assets into the pool to earn interest or use collateral to borrow assets from the pool. In addition, pool creators have significant control over their lending pools with the flexibility to customize key aspects such as supported assets, collateral requirements, oracle selection, and more.

When an application, such as a crypto wallet, incorporates a DeFi primitive like Blend into its functionality, it allows users not only to store and manage their digital assets but also the opportunity to earn passive returns. This added capability enhances the user experience and offers more value beyond traditional wallet services. By providing these opportunities for users, applications can attract a broader audience, increase user engagement, and foster long-term loyalty within the blockchain ecosystem.

How Blend Works

Isolated Lending Pools

Isolated Lending Pools

Determine what assets are supported, supply parameters, if it’s a standard or owned pool, which oracle is used for pricing, and more.

Backstop Module

Backstop Module

A pool of funds that serves as first-loss capital, meaning it absorbs initial losses to reduce risk for investors and attracts additional funding for each isolated lending pool.

BLND Tokens

BLND Tokens

Blend’s protocol token; its primary purpose is to manage lending markets through the backstop module. Users who deposit into and withdraw from lending pools and/or who deposit into the backstop module are eligible to receive BLND tokens for participation.

Utilization Caps

Utilization Caps

Pool creators can set these on collateral assets to protect lenders from oracle instability or collateral asset exploits that limit borrowing to ensure lender safety.

Price Oracles

Price Oracles

Fetches prices for assets in the lending pool and are used to determine whether a borrower’s liabilities are sufficiently collateralized. The lending pool creator specifies the price oracle to use upon lending pool creation.

Lending Pools

Isolated Lending Pools and Backstop Module

This section will focus on two main components: isolated lending pools and the backstop module. For details on the other items, check out the Blend documentation.

What is a lending pool and how does it work on Blend?

A lending pool is an automated smart contract that governs the operations of the pool. It manages the interest rates, collateralization ratios, interest payment distribution, and the lending and borrowing between users for a set of supported assets. Blend is permissionless, meaning anyone can use a lending pool directly, implement a lending pool into their application, or deploy a lending pool and set the parameters that govern it.

Isolated Lending Pools

Blend employs isolated lending pools, meaning a user’s financial position and involvement in one pool is completely independent of all other pools. This ensures that the collateral and debt associated with one pool do not impact others — issues such as unpaid loans (bad debt), liquidations, or inaccurate pricing data (bad oracles) in one pool cannot affect users in another. As a result, users setting up a new lending pool don’t have to worry about unexpected risks from various other pools.

Isolated Lending Pools

Standard Pools and Owned Pools

Lending pool creators can create two different types of lending pools using Blend: standard pools or owned pools.

When standard pools (also called fixed pools) are deployed, the pool parameters cannot be changed, and all settings defined by the deployer are permanent. This reduces the risk of malicious changes or mismanagement by the deployer and minimizes the need for users to trust the pool creator.

Conversely, owned pools have a delegated address that has the authority to modify the pool state (states that determine how the pool functions) and most pool parameters, with the exception of the oracle contract address and the backstop take rate (the percentage of interest paid by pool borrowers that is sent to the pool's backstop module depositors). Owned pools are ideal for DAOs or platforms that want to manage their own lending markets, offering flexibility while also maintaining certain safeguards.

Isolated Lending Pools

Lending and Borrowing in Isolated Lending Pools

Lending: Users can deposit any supported asset into the lending pool. In return, they receive a token called a bToken, which represents their share of the total assets in the pool. The bTokenRate tracks how much interest the pool has earned over time. As the pool generates interest, the bTokenRate increases, making each bToken more valuable. When users withdraw their assets, they receive their initial deposit plus any interest earned, calculated based on the current bTokenRate.

Borrowing: Users can also borrow any supported assets in a pool if they have enough collateral deposited (Blend pools are typically overcollateralized to help improve security). The maximum value of assets someone can borrow is called their borrow limit. The borrow limit is determined by the collateral factor (increases the borrow limit based on the collateral deposited) and the liability factor (decreases the borrow limit based on the assets already borrowed). The system uses both of these factors to balance how much a user can borrow against how much collateral they’ve deposited and how much they’ve already borrowed.

Safety Net

Backstop Module

Another key component of Blend is the backstop module. Each isolated lending pool has its own backstop fund, managed by the backstop module, that acts as an emergency fund for that lending pool. If an issue arises, such as a borrower defaulting on their loan and the liquidation auction for the collateral not fully covering the debt, the backstop module fund is the first resource to help mitigate the loss. The backstop module provides an additional layer of protection for lenders and borrowers by helping to cover shortfalls in each pool, although it does not guarantee full recovery in every case.

The backstop module is an 80/20 weighted BLND:USDC AMM pool funded by users who contribute capital. Anyone can deposit into the backstop module and, in return, receive a take rate, which is a portion of the interest paid by pool borrowers. The take rate percentage is set when the pool is created and can help users decide whether to allocate funds to the lending pool, the backstop module, or both, based on the interest and take rates.

Users can withdraw their backstop module deposits at any time, but the withdrawal process involves a 21-day waiting period called a withdrawal queue. After the 21 days, users are able to withdraw their funds, provided there is no remaining bad debt in the backstop module. This withdrawal queue helps ensure the backstop module can serve its role as an additional safety net for the lending pool.

Now that we’ve got some Blend basics down, let’s talk about a wallet that already has Blend integrated into its functionality.

The Wallet

What is Meru?

Meru is a Stellar Community Fund (SCF)-funded, non-custodial USDC digital wallet launched in August 2022 that allows small-medium enterprises (SMEs), freelancers, and remote workers from Latin America to engage in cross-border trade. Meru is specifically tailored to help smaller businesses pay individual workers while avoiding typical cross-border payment issues such as high fees and long settlement times. It also allows freelancers and remote workers to get paid, save, spend, and potentially earn yield.

Blend + Meru

The launch of smart contracts on Stellar’s Mainnet in February 2024 has opened the door for projects on the network to incorporate DeFi capabilities into their offerings. Meru is one such project that took advantage of this opportunity by integrating Blend into its wallet service in 2024. This integration empowers users by providing an easy, non-custodial way to earn interest on their in-app funds, an option that may not have been accessible through traditional financial services to the everyday worker in Latin America. By incorporating Blend, Meru expands the financial possibilities for its users and improves the usability of the wallet service itself.

Integrating Blend into Meru offers our users a simple way to benefit from advanced DeFi solutions for yield generation, in a noncustodial fashion, without all the technical complexity.

Carlos Neira, Meru

The user experience for Meru’s Blend integration is designed to be simple and intuitive. Users can manage their USDC through the wallet and also access a separate section for yield generation. Depositing and withdrawing funds from the lending pool and the wallet takes just seconds and can be done at any time, opening up financial opportunities to end-users that may not have been available before.

DeFi

The Future of Financial Inclusion

DeFi primitives such as Blend have the power to open up financial opportunities to individuals who may not otherwise have them, and wallets such as Meru are already doing just that. With the Blend and Meru collaboration, freelancers and individuals in Latin America are not only able to get paid easily for their work, but they also have the opportunity to earn yield on their assets. With Blend’s over-collateralized lending model, backstop module, and isolated lending pools, users are more protected against potential negative scenarios such as bad debt or bad oracles.

Tools like Blend are game-changers, especially in emerging markets. Learn how to implement Blend into your own application by heading over to the Blend GitHub or by viewing Blend’s documentation and keep your eyes open for more Stellar-based applications using Blend in innovative ways that ultimately contribute to creating a more financially inclusive future.

Disclaimer

The projects listed above are independent third parties building on the decentralized and permissionless Stellar network. These are examples of potential utility when building on the Stellar network and are referenced for those general informational and educational purposes only. This content does not constitute a recommendation, promotion of, or solicitation to, transact in any digital assets and should not be construed as financial, legal, or investment advice. SDF does not control or endorse any third-party services referenced above and is not liable to you for third-party services in any way. If you choose to use any third-party projects listed on this page, you acknowledge that you do so independently, at your own risk, and you should ensure you are aware of any security, financial, legal, and tax implications applicable to you. Any statistics mentioned above relating to returns are based on historical data, are for information purposes only and are not an indication of future results. Always consult with independent financial professionals before making financial decisions.