Comparing Lending Protocols: UTXO Model vs. Account Model

Translation temporarily unavailable. Showing original English.
Ergo Platform

2024年5月20日

Lending protocols are a cornerstone of decentralized finance (DeFi), enabling users to lend and borrow assets in a trustless environment. However, the underlying blockchain architecture significantly influences the design and functionality of these protocols. In this blog, we will compare lending protocols built on the Unspent Transaction Output (UTXO) model and the Account model, highlighting their respective strengths and challenges.

Concept of Lending Protocols

In lending protocols, borrowers typically use their crypto assets as collateral. Once a loan is issued, the protocol secures this collateral until repayment. Lenders, on the other hand, can leverage the potential of their crypto assets and collect interest. For instance, if two users deposit ETH and USDC, respectively, the ETH depositor can borrow USDC, while the USDC depositor can borrow ETH.

To mitigate risks, especially if the collateral's value dips below the loan amount, most protocols encourage borrowers to over-collateralize. This means adding about 50% more than the loan value as collateral, resulting in an overcollateralization ratio of 150%. Overcollateralization ratios depend on the quality and volatility of the provided collateral. Some platforms, like Aave, also allow uncollateralized flash loans that must be repaid within a single transaction.

Key Components of Lending Protocols

Smart Contracts: Automated, self-executing contracts with the terms of the agreement directly written into code. These eliminate the need for intermediaries, reducing costs and increasing trust.

  • Collateralization: To mitigate the risk of default, borrowers must provide collateral that exceeds the value of the loan. This collateral is held in the smart contract and can be liquidated if the borrower fails to repay.
  • Interest Rates: Determined algorithmically based on supply and demand dynamics within the protocol. This ensures competitive rates for both lenders and borrowers.
  • Liquidity Pools: Lenders deposit their assets into liquidity pools, which are then made available for borrowers. This pooling mechanism enhances liquidity and ensures that there are always funds available for borrowing.

The Account Model

The Account model, exemplified by Ethereum’s EVM, aggregates all funds under a single contract address for processing. This approach offers several advantages:

  • Ease of State Management: The account model simplifies state management by maintaining balances and state changes within a single account. This centralization facilitates straightforward calculations and updates, making it easier to develop complex financial applications.
  • Intuitive Engineer Implementation: In terms of engineering implementation, the Account Model is more intuitive as it handles all funds under a single contract address.
  • Security: In the Account model, assets are controlled by smart contracts. While this centralization simplifies management, it also presents a risk: if the liquidity pool contract is hacked, users could lose control of their assets.

Example: Compound, Aave
Protocols like Compound and Aave leverage the account model to provide seamless lending and borrowing experiences. Users deposit assets into smart contracts, earning interest, while borrowers take loans against their collateral. The system’s ability to manage and update states efficiently ensures smooth operation and user experience.

  • Compound: Allows users to earn interest or borrow assets against collateral with dynamic interest rates.
  • Aave: Offers a wide range of assets for lending and borrowing, along with innovative features like flash loans.

The UTXO Model

In contrast, the UTXO model, used by blockchains like Bitcoin, Ergo, and Nervos CKB, disperses funds across various users’ UTXOs/cells. This model presents unique advantages and far a different approach from the Accounts model:

Decentralized State Management: UTXO-based systems delegate the work of determining state transitions to the application layer. Each user signs off on the state transition, ensuring that no single entity can alter the transaction. This decentralization greatly enhances security and trustlessness, but also presents unique obstacles for the creation of a liquidity pool.

  • Complex Engineer Implementation: Contrary to the Account Model, the UTXO model may require the creation of a special lock to help users secure dispersed funds. This lock ensures that the funds comply with specific rules during transactions. In the case of a blockchain like Ergo, the locks are akin to guard script smart contracts.
  • Security: In the UTXO model, assets are directly controlled by the user rather than by a contract. This decentralized approach enhances asset security. Even if a contract is undeployed or compromised, users retain control over their assets, ensuring a higher level of protection.

Examples of Smart Contract UTXO Blockhains

Nervos CKB’s lending protocols must navigate the dispersed nature of UTXOs. Developers construct special locks to manage and consolidate users’ funds. These locks enforce specific conditions, such as price relationships, ensuring that funds are used appropriately during lending and borrowing operations.

In the case of Ergo, its eUTXO (extended UTXO) design enables developers to create expressive and definitive smart contracts. With a commitment to open source development, paired with Ergo’s time tested Proof of Work security parameters, the network is capable of handling diverse liquidity pools and complex lending smart contracts. Currently, lenders and borrowers can take full advantage of two protocols on Ergo: SigmaFi and Duckpools.

With SigmaFi, users can create and/or agree to loan requests for differing native assets. Various amounts of collateral can be offered in the request, and the user interface allows prospective loaners to view which requests are undercollateralized.

Duckpools takes a slightly different approach by allowing users to borrow and lend within liquidity pools (where $ERG is needed for all loan collateral). Through the Duckpools website, users can identify which native asset they want to loan to a liquidity pool, while borrowers can similarly select a liquidity pool from which they want to take a loan. Borrowers can set their own collateral ratio, but the user interface gives recommended options of 130%, 150%, and 170%.

Key Comparisons

  • State Management: The account model centralizes state management, simplifying updates and calculations. In contrast, the UTXO model decentralizes state transitions, enhancing security but increasing complexity.
  • Engineer Implementation: In terms of engineering implementation, the Account Model is more intuitive as it handles all funds under a single contract address. However, Ethereum’s Account model has been found to suffer from blockchain bloat and high gas fees.

In contrast, in the UTXO model, funds are dispersed across various UTXOs belonging to individual users, making it difficult to aggregate funds in one place. The UTXO model may require the creation of a special lock (or smart contract) to help users secure these dispersed funds. This lock ensures that the funds comply with specific rules during operations.

  • Security: In the Lending protocol of the Account model, assets are controlled by smart contracts. While this centralization simplifies management, it also presents a risk: if the liquidity pool contract is hacked, users could lose control of their assets. In contrast, the UTXO model assigns control of assets directly to the user rather than to a contract. This decentralized approach enhances asset security. Even if a contract is undeployed or compromised, users retain control over their assets, ensuring a higher level of protection.

Conclusion

Both the UTXO and Account models offer distinct advantages and challenges for lending protocols. By understanding these differences, developers can better design and implement lending protocols that leverage the strengths of their chosen blockchain architecture.

As the DeFi space continues to evolve, we can expect ongoing innovation and improvements in both models, ultimately enhancing the robustness and user experience of decentralized lending platforms.

Share post

Ergo基础设施DAO:去中心化Ergo生态系统的支柱

Ergo基础设施DAO:去中心化Ergo生态系统的支柱

Ergo的使命一直根植于去中心化,不仅在共识层面,而是在整个技术栈中。随着Ergo基础设施DAO (InfraDAO)的推出,这一愿景正在扩展到每天为生态系统提供动力的服务和基础设施。 InfraDAO现在在Paideia上正式上线,经过成功的治理投票。最初.

Ergo Platform

2025年8月13日

Mew Finance:一个为Ergo生态系统提供的有趣DeFi工具包

Mew Finance:一个为Ergo生态系统提供的有趣DeFi工具包

Mew Finance是一个基于Ergo区块链的去中心化应用套件。该项目于2024年10月启动,将DeFi、数字资产和跨链功能整合到一个统一的平台中。长期社区开发者HQΣr和Aco Šmrkas领导该项目。设计上偏向模块化、易用性和深度生态系统集成。 本文是.

Ergo Platform

2025年8月12日

Lithos:通过链上矿池实现去中心化挖矿

Lithos:通过链上矿池实现去中心化挖矿

Lithos是一个新协议,旨在通过将矿池转移到链上来彻底改革矿池的运作方式,使矿工完全控制,并消除对中心化矿池运营商的需求。与之前大多数去中心化挖矿的尝试不同,Lithos旨在高效、可扩展和安全。 什么是Lithos? Lithos是一个去中心化的矿池协议.

Ergo Platform

2025年7月24日

Sigma 6.0:更智能、更灵活的Ergo

Sigma 6.0:更智能、更灵活的Ergo

Sigma 6.

Ergo Platform

2025年7月23日

塑造Rosen的未来:关于五项关键财政提案的社区呼吁

塑造Rosen的未来:关于五项关键财政提案的社区呼吁

Rosen的联合创始人Armeanio已向Rosen财政提交了五项新提案。这些提案概述了Rosen Bridge的增长、实用性和可扩展性的战略愿景,这是Ergo互操作性基础设施的核心组成部分。 这是Ergo社区审查和讨论这一重要跨链服务未来方向的关键时刻。以.

Ergo Platform

2025年7月9日

Ergo的扩展UTXO与人工经济智能的崛起

Ergo的扩展UTXO与人工经济智能的崛起

自主经济代理的实用愿景 Ergo区块链上的自主经济代理在真实的数字经济中执行有用的工作。它们通过创建内容和提供数据分析、模式识别等服务来产生收入。它们利用收入支付运营费用,如托管费和服务器成本,并使用现代工具,如SSH和加密友好的托管服务提供商。当有额外资金.

Ergo Platform

2025年5月12日

ErgoHACK X:在Ergo区块链上的人工智能

ErgoHACK X:在Ergo区块链上的人工智能

庆祝去中心化创新的十年 加入第十届ErgoHACK,站在Ergo区块链AI革命的最前沿!释放你的创造力,与其他创新者合作,共同构建去中心化AI的未来。 关于ErgoHack ErgoHACK,旗舰社区黑客马拉松,庆祝其十周年!这一里程碑事件是Ergo生态系统.

Ergo Platform

2025年4月10日

ERG正式上线Kucoin(库币)交易所

ERG正式上线Kucoin(库币)交易所

据Kucoin官方通告,Ergo平台原生代币ERG于8月3日正式上线Kucoin(库币)交易所。目前支持的交易对是ERG/USDT。现已开放充值;2021年8月5日UTC时间上午10:00开放交易;2021年8月6日UTC时间上午10:00开放提币。 .

Ergo Foundation

2021年8月3日

Ergo两周年纪念——早期采用者应了解的核心知识

Ergo两周年纪念——早期采用者应了解的核心知识

Normal 0 false false false EN-US ZH-CN X-NONE /* Style Definitions */ table.

root7Z

2021年7月5日

关于Ergo启用官方QQ频道的公告

关于Ergo启用官方QQ频道的公告

由于Ergo官方微信号暂无法使用,Ergo官方现新增Ergo官方QQ频道:796039547。全球中文用户可通过扫描下面的二维码加入Ergo中文社区,及时了解Ergo最新官方动态. .

Eva Qing

2021年6月30日

Ergo首届黑客松大赛ERGOHACK圆满结束

Ergo首届黑客松大赛ERGOHACK圆满结束

Ergo首届黑客松大赛已经圆满结束,它正如计划那样:规模小而富有实验性,但依然收到了一些很棒的作品提交。Kushti以他的开场视频拉开了活动的序幕,然后我们总共有六个团队,其中来自anon_real(AuctionHouse、SigmaUSD UI等项目的创建.

Curia Regis Crypto

2021年6月29日

关于举办首届Ergo中国社区驱动践行活动的公告

关于举办首届Ergo中国社区驱动践行活动的公告

为了进一步提高Ergo公链平台在中国的知名度,让更多用户深入了解Ergo,同时为了践行Ergo社区驱动的理念,Ergo中国社区现特别举办“首届Ergo中国社区驱动践行活动”。活动参与者积极向新用户布道Ergo并将其引至Ergo官方指定社群,将有机会赢取ERG奖.

Eva Qing

2021年6月4日

比特币的前进之路是努力追赶Ergo ——Ergo率先实现扩展UTXO智能合约

比特币的前进之路是努力追赶Ergo ——Ergo率先实现扩展UTXO智能合约

比特币 比特币是一头野兽。是的,其底层软件需要认真升级。它真的太慢了。但是,您也必须承认它的优势,网络效应是非常强大的------比特币是加密货币之王。在全球范围内,比特币正成为一个常见、被理解和被采用的术语。大型信托、投资巨头和对冲基金经理,都被比特币的主.

Curia Regis Crypto

2021年5月23日

关于Ergo基金会任命谭声情先生担任中国区大使的公告

关于Ergo基金会任命谭声情先生担任中国区大使的公告

经Ergo基金会批准,现任命谭声情先生(英文名:Tango)担任Ergo中国区大使。 为了提升Ergo在中国的知名度与影响力,Ergo基金会现授权谭声情先生以Ergo中国区大使身份进行Ergo在中国的品牌宣传、商务洽谈、社区活动、主题推广等事宜。 此任命自.

Ergo Team

2021年5月16日

硬分叉事后说明

硬分叉事后说明

英文链接: 应@kushti的请求,我现在给大家说明一下今天在硬分叉升级期间发生的事情。有一些BUG导致矿工无法出块,现已修补好这些BUG,矿工可以出块。 version2ActivationDifficultyHex中出现往返编码失败(Round-T.

Eva Qing

2021年2月3日

硬分叉升级后Ergo挖矿须知

硬分叉升级后Ergo挖矿须知

Ergo将在区块#417,792上进行硬分叉协议升级。此次升级会引入重大更改,包括将关闭不可外包功能(Non-Outsourceability)。经过此次硬分叉之后,新的PoW(被称为Autolykos v2.

Eva Qing

2021年2月1日

如何设置和配置Ergo全节点

如何设置和配置Ergo全节点

如何设置和配置Ergo全节点 本教程说明了如何安装和运行Ergo全节点,不涵盖挖矿。  Windows用户还可以观看视频教程。 如何在Windows上设置和配置Ergo全节点 视频链接: 节点安全 这里是节点使用的一些重要方面,您的钱包及代币是否安全.

Eva Qing

2021年1月21日

既想享受乐趣,又想赚取利润? ——那就赶紧来挖ERG

既想享受乐趣,又想赚取利润? ——那就赶紧来挖ERG

Ergo GPU挖矿 本文将帮助您开始使用GPU挖矿Ergo原生代币ERG。 Ergo挖矿基于Autolykos,即一种工作量证明(PoW)算法,被设计为阻碍ASIC矿机和矿池。矿工须执行存储困难的计算(需要至少4 GB的内存,但是当前最有效的实现使用的是.

Eva Qing

2021年1月21日

适用于AMD GPU的Autolykos v2(Ergo)的OpenCL挖矿软件

适用于AMD GPU的Autolykos v2(Ergo)的OpenCL挖矿软件

适用于ergoplatform.

Eva Qing

2021年1月19日

适用于Nvidia GPU的Autolykos v2(Ergo)用Cuda挖矿软件

适用于Nvidia GPU的Autolykos v2(Ergo)用Cuda挖矿软件

用于ergoplatform.

Eva Qing

2021年1月19日

尔格基金会为主要去中心化应用(dApp)基础设施提供资助

尔格基金会为主要去中心化应用(dApp)基础设施提供资助

尔格基金会将考虑支持重大生态系统开发项目提供资助的建议。 尔格是一个面向社区的项目,该生态系统的方方面面都有许多贡献者。尔格基金会会拿出一部分资金资助此项工作,这对于构建用户所需的日常产品与服务以及更多样化的金融去中心化应用至关重要。该基金会正在积极寻求.

Guy Brandon

2020年11月17日