Skip to content

What are borrowing and lending dApps? ​

In 1848, a group in Edinburgh founded the Edinburgh Friendly Property Investment Company, a name that nods to the friendly societies that came before it. Renamed the Scottish Building Society (SBS) in 1929, it is the oldest remaining building society in the world. Having survived a wave of demutualisations in the 1980s and 1990s, not to mention countless financial crises, wars and recessions, it does today what it has always done, which is help its members own their own homes[1][2].

As discussed in earlier sections, at a modern mutual like SBS, the money each member deposits is pooled together and lent to borrowers, who use it to buy their homes. When borrowers pay interest on their home loans, most of it is paid back to savers, with a small amount kept back to cover the costs of running the society. This includes investing in new products and, importantly, building up reserves. It's a simple system, and when things go right, it creates a virtuous circle, one which has benefited SBS members for generations. Savers grow their savings and borrowers buy their homes. But what happens when things go wrong, and a borrower, or many borrowers, cannot pay back their loans?

This is where the society's Reserves are valuable. Because a mutual is a cooperative, run for, and by its members, it cannot raise money by selling shares in itself the same way a bank can. Instead, its reserves, the profits kept back year after year, make up almost all of its capital, providing a cushion that absorbs losses before any member's savings are risked[3].

Separate to its reserves, however, when a loan does go wrong, building societies, like banks, also have a legal fallback, which is to repossess the borrower's collateral. To explain, almost every home loan, made by a bank or building society, takes the home being bought as collateral. This means the property itself is pledged as a security deposit in exchange for the money being borrowed. If the borrower is unable to keep up with the loan repayments, the lender, in this case the society acting on behalf of its other members, can recover the money lent via the security deposit. Put simply, the home itself can be legally repossessed and sold to cover what is owed, with anything left over returned to the borrower.

This practice of pledging collateral is as old as lending itself, and it is one of the reasons why mortgages have long been seen as low risk loans. After all, most people will pay for the roof over their heads before almost anything else. A saver's money, and the interest it stands to earn, is therefore protected not just by the borrower's promise to repay, but by something tangible standing behind that promise.

This is quite different from what stands behind the lending and borrowing hidden inside ROSCAs. Here there is typically no collateral involved. Instead, members agree to pay regularly into the communal pot and take turns receiving their payout. No collateral means that the group runs purely on trust; members simply trust that other members will keep paying into the group, both before and after they've received their payout.

This is not necessarily a flaw though. In fact, in 2006, Muhammad Yunus and the Grameen Bank (which he founded in Bangladesh) were jointly awarded the Nobel Peace Prize for a lending model that also runs without collateral[4]. Here, micro loans were made to some of the poorest people in the country, most of them women[5], without them needing to offer collateral up front. Instead borrowers joined groups of five, and like in ROSCAs, each loan was staggered, meaning, in the beginning only two members of the group would receive their loan, and once these loans were being repaid on time, the rest of the group's loans would be released[6]. It worked well, with Grameen reporting that collectively borrowers consistently repaid more than 95% of what they owed[7].

Economists call the trust mechanisms that underpin this kind of lending, social collateral[8]. It is the same bond that holds ROSCAs together. Like Grameen's groups, which were formed by neighbours from the same village, ROSCAs are typically formed within existing social groups; neighbours, friends, family or work colleagues[9]. That said, when things do go wrong or trust does break down, ROSCAs can break apart. If a member, for example, who has already received their payout stops making payments, there is no collateral to sell to recover the lost money, and no way to make the group whole again, except by recovering the funds from the member in question.

For this reason, where ROSCAs have grown large enough to be formally regulated, laws tend to add the same protections as in modern finance. In Brazil, consórcios, for example, are overseen by the country's central bank, and a member who receives their payout to buy a car or a home, typically pledges that same car or home as security until their remaining installments are paid[10]. On the other hand, In India, the Chit Funds Act of 1982 requires an ROSCA organiser, known as a foreman, to set aside money equal to one full pot, which is then held by the authorities as a guarantee[11].

In each case, we can see again the role that third parties, both financial and legal, play behind the scenes of borrowing and lending agreements. For a home to serve as collateral, a legal system must exist that protects private property with land that is registered and titled. That same system must also then allow a lender to repossess a property pledged as security. Similarly, it's the legal system which gives some ROSCAs the same collateral protections which banks and building societies run on.

Naturally then, collateral, and the ability to claim it when a loan goes wrong, is a fundamental part of borrowing and lending on blockchains too. Here, smart contracts replace the role of the financial and legal system, with the rules for pledged collateral written into smart contracts themselves. Cryptocurrencies, themselves running on blockchains, then usually serve as collateral assets. If a loan governed by a smart contract is repaid, the lender earns interest from the borrower, but if it is not, the collateral held by the smart contract is automatically repossessed and sold to repay the lender.

An arrangement like this therefore needs more than one contract, each doing a specific job. Imagine a borrower who wants to borrow 500 USDC, the dollar-pegged stablecoin mentioned earlier, and offers ether worth $1,000 as collateral. One contract might set out their proposal: how much USDC they want to borrow, how much they will pay back with interest, by when, and how much ether they will put up as collateral. When a lender accepts, a second contract takes the borrower’s ether and holds it as collateral, while the lender’s USDC goes to the borrower. If the borrower pays back the USDC, with interest, by the agreed deadline, the contract returns their ether. But if the deadline passes unpaid, the agreement lets the lender claim the ether instead to recover their loan amount[12].

On Ethereum, while a single smart contract can be set up for a specific job, a web of smart contracts stitched together like this for an overarching purpose form an application. In the Ethereum world these applications are known as "decentralised applications", or "dApps" for short[13].

To understand why this is, it's helpful to remember that, at its core, the internet is a network connecting computers and other devices around the world. When your web browser connects to a web address, (www.example.com) it connects to another computer, known as a server, in some part of the world. The information then displayed to you (videos, pictures, text etc.) is what is held at that particular web address, on that particular server. Many of the applications we use work in much the same way. While software installed from a CD-ROM might once have run entirely on your computer, most apps today depend on servers and an internet connection. Those servers, and the code they run, provide services which allow you to manage your accounts, store information, process your requests, etc. They are the back end of the application, and together with information held on your device, allow the application to work. Typically the server, and its code, are then controlled by a single company, which decides how the app works, what updates to make and how its users' data is used and stored. In contrast to blockchain apps you could say these apps are centralised.

Blockchain apps, or dApps, on the other hand, are described as decentralised because the core of a dApp is not stored on one company's servers. The smart contracts that make it up are instead stored in thousands of places, across a network of computers around the world, each keeping its own copy of the blockchain. This is why it is decentralised. On each copy, then, is the same web of smart contracts, each with a different job, which together serve an overarching function to form a dApp. Once published to the blockchain, these contracts, as discussed, carry out their instructions automatically whenever someone uses them, with the thousands of computers running the blockchain each confirming the outcome.

Much like the peer-to-peer file-sharing networks that came before them (LimeWire, BitTorrent etc.), dApps have no single company's servers in the middle orchestrating things, so users deal directly with the dApp's smart contracts. In practice, for a borrowing and lending dApp, this means two strangers on opposite sides of the world can come together, agree on a loan, agree on a cryptocurrency as collateral, and have that collateral held, returned or claimed as part of the loan agreement. All on what is essentially software running on the internet, with no bank administering the loan and no court needed to enforce it.

Today, borrowing and lending dApps hold billions of dollars in capital, but one of the first to see their potential and build a set of smart contracts for blockchain borrowing and lending was Stani Kulechov, then a law student at the University of Helsinki, Finland[14][15]. Noticing that the tokens being created on Ethereum held real value, he saw that "you could actually use this value as collateral and one of the interesting use cases for it could be lending"[16].

In 2017 he launched ETHLend, one of the first experiments in borrowing and lending on a blockchain[17]. It worked much like a classified ad. A borrower posted a request, set the interest rate and the length of the loan, and locked up crypto tokens as collateral worth around twice what they wanted to borrow. A lender who liked the terms would then fund the loan using ether, the currency of the Ethereum blockchain[18]. If the borrower repaid on time, they got their collateral back. If not, it went to the lender.

It worked, but it was slow. Every loan needed its own lender, and a borrower could wait days for someone willing to take the other side, while savers had to pick through requests one by one[19]. In September 2018, a dApp called Compound took a different approach. Instead of matching individual lenders with individual borrowers, Compound pooled everyone's deposits into a single "money market" for each currency, which borrowers could then draw from at any time, at an interest rate set automatically by how much of the pool was already lent out[20]. ETHLend later followed suit. Its team had already set up a new parent company that same September, called Aave, Finnish for “ghost”, and in January 2020 relaunched as Aave, a protocol built around lending pools of its own[21].

On Aave, savers deposit the tokens they want to lend (USDC for example) into a shared pool, known as a liquidity pool, one for each currency, and in return receive a matching token, called an aToken, which works as their receipt. Borrowers draw from the same pool, provided they first lock up enough collateral to cover what they borrow, and pay interest on what they take out. That interest flows back into the pool, and because aTokens are IOUs of the pool's growing balance, every saver's aToken slowly grows in line with the interest being paid in. A saver who deposits 100 USDC might later hold 103 aUSDC, because of the interest paid into the pool. They would then redeem the 103 aUSDC, for 103 USDC if they wish to leave the pool[22], a gain of 3 USDC or $3.

Not all of the interest goes to savers, however. A set share of every interest payment, known as the reserve factor, is kept back and paid into a separate smart contract called the reserve contract[23]. Like the profits of the Scottish Building Society, these funds pay for the running and development of the dApp, and act as a cushion when things go wrong. Aave's reserves have indeed been drawn on, for example, to cover losses when a borrower's collateral could not be sold in time to repay their loan[24].

This of course raises a question. If a dApp is open source software running on a blockchain, with no company behind its servers, who controls its reserve contract and decides how the money earned by the dApp is spent? At first, the answer is usually the team that wrote the code. Over time, though, many dApps have handed over that control to their users. In June 2020, Compound, for example, began giving out governance tokens, which carry votes on how the dApp is to be run, with a large share going to the people who saved and borrowed on it, in proportion to how much they used it. Aave and other dApps soon followed[25] with their own governance tokens. By using the dApp then, its users become its owners, much like the members of a cooperative, but with ownership following use rather than the other way around. Today Aave, like Compound, is run this way, using the votes of its token holders.

Zooming out finally, the pieces are familiar. Savings are pooled and lent to borrowers, as at a mutual. Loans are backed by collateral that can be claimed if they go wrong, as with a mortgage. A share of the interest is kept back as reserves. And the organisation running the system is governed by its users voting. Almost piece by piece, the cooperative financial system is being rebuilt from first principles, this time as smart contracts running on blockchains. All a part of a wider movement colloquially known as decentralised finance, or DeFi.

Footnotes ​

  1. Nigel Watson, 175 Years of Helping Home Owners and Savers, St Matthew's Press for the Scottish Building Society, 2023, ch. 1, "Foundations 1848–74". The society was founded on 16 March 1848 as the Edinburgh Friendly Property Investment Company; today's society descends from its successor companies and took the name Scottish Building Society in 1929. See also Scottish Building Society, "About us", https://www.scottishbs.co.uk/about-us/ (accessed 12 Nov 2026).

  2. Building Societies Association, "List of demutualised building societies", July 2026, https://www.bsa.org.uk/information/consumer-factsheets/general-information/list-of-demutualised-building-societies (accessed 12 Nov 2026), which lists ten conversions and takeovers between 1989 and 2000.

  3. Building Societies Association, "What are PIBS?", https://www.bsa.org.uk/information/consumer-factsheets/general-information/what-are-pibs (accessed 12 Nov 2026); Scottish Building Society, "Annual Report & Accounts for the year ended 31 January 2026", note 27, "Capital structure", p. 87, https://www.scottishbs.co.uk/media/4mthgms3/scottish-building-society-annual-report-and-acccounts-2026-web.pdf (accessed 12 Nov 2026), where general reserves of £46.2 million make up almost all of the society's £46.4 million of regulatory capital. Besides reserves, building societies can raise capital through core capital deferred shares (CCDS) and, in the past, issued permanent interest-bearing shares (PIBS).

  4. The Nobel Prize, "The Nobel Peace Prize 2006", https://www.nobelprize.org/prizes/peace/2006/summary/ (accessed 12 Nov 2026).

  5. Grameen Bank, "Introduction", https://grameenbank.org.bd/about/introduction (accessed 12 Nov 2026), which states that no collateral is required and that 97% of its 10.63 million borrowers are women (figures as of August 2026).

  6. Global Development Research Center, "Grameen Bank lending model", https://www.gdrc.org/icm/model/grameen.html (accessed 12 Nov 2026).

  7. Grameen Bank, "Introduction" (as note 5), a recovery rate of 95.66% as of August 2026; Jonathan Morduch, "The Role of Subsidies in Microfinance: Evidence from the Grameen Bank", Journal of Development Economics 60(1), 1999, pp. 229–248, which puts the rate at around 98% up to 1995 but notes that Grameen's definition of repayment is not the standard one. Grameen's "recovery rate" is the share of repayments falling due in a period that is actually paid, not the share of loans repaid in full.

  8. Timothy Besley and Stephen Coate, "Group Lending, Repayment Incentives and Social Collateral", Journal of Development Economics 46(1), 1995, pp. 1–18.

  9. University of Bath and Communomics CIC, "Rotating Savings and Credit Associations (ROSCAs) in London's Black and Minoritised Communities: Scale, structure and the case for formal recognition", July 2026, section 4.2.4 and Table 15, p. 48, https://communomics.com/ROSCA.pdf (accessed 12 Nov 2026), whose survey of 311 members found groups built on ties between friends or neighbours (62.4%), family or relatives (51.4%) and work colleagues (19.9%); Christy Chung Hevener, "Alternative Financial Vehicles: Rotating Savings and Credit Associations (ROSCAs)", Discussion Paper, Community Affairs Department, Federal Reserve Bank of Philadelphia, November 2006, p. 6, https://www.philadelphiafed.org/-/media/frbp/assets/community-development/discussion-papers/discussionpaper-ROSCAs.pdf (accessed 12 Nov 2026), which describes ROSCAs as groups of "closely knit people, usually family or friends". Timothy Besley, Stephen Coate and Glenn Loury, "The Economics of Rotating Savings and Credit Associations", American Economic Review 83(4), 1993, pp. 792–810, https://econpapers.repec.org/RePEc:aea:aecrev✌️83:y:1993:i:4:p:792-810 (accessed 12 Nov 2026), model how ROSCAs allocate funds, but their full text could not be reached to check what they say about who forms ROSCAs, so they are not relied on for this point.

  10. Brazil, Lei nº 11.795/2008, arts. 6 and 14 §1, https://www.planalto.gov.br/ccivil_03/_ato2007-2010/2008/lei/l11795.htm (accessed 12 Nov 2026).

  11. India, The Chit Funds Act, 1982, s. 20, https://financialservices.gov.in/beta/sites/default/files/2022-10/4. THE CHIT FUNDS ACT, 1982.pdf (accessed 12 Nov 2026). Section 20 requires the foreman to lodge security equal to the chit amount with the Registrar, and allows alternatives such as a bank guarantee.

  12. Adapted from Todd Proebsting, "Writing a Collateralized Loan Contract", Program the Blockchain, 6 March 2018, https://programtheblockchain.com/posts/2018/03/06/writing-a-collateralized-loan-contract/ (accessed 12 Nov 2026), where the roles are reversed (ether is lent against token collateral).

  13. ethereum.org, "Technical introduction to dapps", https://ethereum.org/en/developers/docs/dapps/ (accessed 12 Nov 2026), where a dapp "has its backend code running on a decentralized peer-to-peer network".

  14. DefiLlama, Aave, https://defillama.com/protocol/aave (accessed 12 Nov 2026), which showed total value locked of about $16.3 billion when read on 12 November 2026.

  15. Benjamin Schiller, "Stani Kulechov Defied Crypto Winter", CoinDesk, 4 December 2023, https://www.coindesk.com/consensus-magazine/2023/12/04/stani-kulechov-defied-crypto-winter (accessed 12 Nov 2026).

  16. Camila Russo, interview with Stani Kulechov, The Defiant, 13 January 2020, https://thedefiant.substack.com/p/we-reuse-the-collateral-thats-the-29b (accessed 12 Nov 2026).

  17. ETHLend, "ETHLend.io White Paper – Democratizing Lending", 2018, https://github.com/ETHLend/Documentation/blob/master/ETHLendWhitePaper.md (accessed 12 Nov 2026); ETHLend, token sale closing post, Medium, 30 November 2017, https://medium.com/aave/ethlend-token-sale-event-successfully-closes-with-16-2-million-usd-raised-d0e0a1206141 (accessed 12 Nov 2026), reporting about $16.2 million raised.

  18. ETHLend white paper (as note 17); Steve Walters, "ETHLend Review", Coin Bureau, 2023, https://coinbureau.com/review/ethlend-lend (accessed 12 Nov 2026). Loans were made in ether only in the early version of ETHLend.

  19. Mathieu Courtois, "Peer-to-peer lending, too early to work? The ETHLend case", Morpho Labs, Medium, 8 February 2022, https://medium.com/morpho-labs/peer-to-peer-lending-too-early-to-work-the-ethlend-case-6b50e1234ec6 (accessed 12 Nov 2026). The piece describes the illiquidity of ETHLend's peer-to-peer matching, with borrowers waiting for a lender to take the other side, but gives no specific waiting time.

  20. "Compound's Ethereum Money Market Protocol Goes Live", Investing.com, 28 September 2018, https://www.investing.com/news/cryptocurrency-news/compounds-ethereum-money-market-protocol-goes-live-1627805 (accessed 12 Nov 2026); Josh Constine, TechCrunch, 27 September 2018; R. Leshner and G. Hayes, "Compound: The Money Market Protocol", white paper, 2019.

  21. "ETHLend Announces Launch of New Parent Company 'Aave'", Finance Magnates, 18 September 2018, https://financemagnates.com/thought-leadership/ethlend-announces-launch-of-new-parent-company-aave (accessed 12 Nov 2026); Aave, "Changelog", https://aave.com/docs/resources/changelog (accessed 12 Nov 2026), which dates the protocol launch to 8 January 2020.

  22. Aave, "Tokenization", Aave V3 documentation, https://aave.com/docs/aave-v3/smart-contracts/tokenization (accessed 12 Nov 2026).

  23. Aave, "Glossary", https://aave.com/docs/resources/glossary (accessed 12 Nov 2026); BGD Labs, "Aave V3 Listings. Technical parameters", Aave governance forum, https://governance.aave.com/t/bgd-aave-v3-listings-technical-parameters/9504 (accessed 12 Nov 2026). Aave's glossary describes the reserve factor as a share of borrowers' interest "allocated to the Aave Treasury"; on the collector contract that holds these funds, see Aave, "Incentives Policy & AAVE Reserve", https://docs.aave.com/aavenomics/incentives-policy-and-aave-reserve (accessed 12 Nov 2026).

  24. Osato Avan-Nomayo, "Llama and Gauntlet submit proposal to cover $1.6 million in bad debt on Aave", The Block, 23 November 2022, https://www.theblock.co/post/189606/llama-and-gauntlet-submit-proposal-to-cover-1-6-million-in-bad-debt-on-aave (accessed 12 Nov 2026); Krisztian Sandor, "DeFi Protocol Aave Clears Bad CRV Token Debt from Exploit Attempt", CoinDesk, 26 January 2023, https://www.coindesk.com/markets/2023/01/26/defi-protocol-aave-clears-bad-crv-token-debt-from-exploit-attempt (accessed 12 Nov 2026), on the governance vote that approved buying CRV to clear the debt. In November 2022 a large CRV-backed position could not be liquidated in time, leaving Aave with about $1.6 million of bad debt.

  25. "Compound governance token begins its first day of trading", The Block, 15 June 2020, https://www.theblock.co/news/defi/2020-06-15-compound-governance-tokens-begin-its-first-day-of-trading-68369 (accessed 12 Nov 2026); Samuel Haig, "Aave transfers governance to token holders", Cointelegraph, 29 October 2020, https://cointelegraph.com/news/aave-transfers-governance-to-token-holders (accessed 12 Nov 2026).