Jump to content

Decentralized finance: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Decentralized exchanges: Filler language
m Reverted 1 edit by Sergey skill (talk) to last revision by OAbot
Tags: Twinkle Undo Mobile edit Mobile web edit
 
(45 intermediate revisions by 33 users not shown)
Line 1: Line 1:
{{short description|Financial services with no central authority}}
{{short description|Financial services with no central authority}}
{{Multiple issues|
{{POV|date=November 2022}}
{{POV|date=November 2022}}
{{unreliable sources|date=March 2022}}
{{unreliable sources|date=March 2022}}
}}

{{use dmy dates|date=May 2023}}
{{use dmy dates|date=May 2023}}
'''Decentralized finance''' (often stylized as '''DeFi''') offers [[financial instrument|financial instruments]] without relying on [[Intermediary|intermediaries]] such as [[brokerage|brokerages]], [[Exchange_(organized_market)|exchanges]], or [[bank|banks]] by using [[Smart contract|smart contracts]] on a [[blockchain]], mainly [[Ethereum]]. DeFi platforms allow people to lend or borrow funds from others, speculate on price movements on assets using [[Derivative (finance)|derivatives]], trade [[cryptocurrencies]], insure against risks, and earn [[interest]] in savings-like accounts.<ref name="Bloomberg 2020-08-26"/> DeFi uses a layered architecture and highly composable building blocks.<ref name="research" /> Some applications promote high-[[Interest rate|interest rates]]<ref name="Bloomberg 2020-08-26">{{cite news |url=https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake |title=Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake |work=Bloomberg |date=2020-08-26 |access-date=2020-10-06 }}</ref> but are subject to high risk.<ref name="Financial Times 2019-12-30">{{cite news |url=https://www.ft.com/content/16db565a-25a1-11ea-9305-4234e74b0ef3 |title='DeFi' movement promises high interest but high risk |work=Financial Times |date=2019-12-30 |access-date=2020-10-06 }}</ref> Coding errors and hacks have been common in DeFi.<ref name="Reuters 2020-08-26"/><ref name="Bloomberg 2020-08-26"/>
'''Decentralized finance''' (often stylized as '''DeFi''') provides [[financial instrument]]s and services through [[smart contract]]s on a programmable, permissionless [[blockchain]]. This approach reduces the need for [[Intermediary|intermediaries]] such as [[brokerage]]s, [[Exchange (organized market)|exchanges]], or [[bank]]s.<ref>{{Cite journal |title=IMF Working Papers Volume 2024 Issue 177: Programmability in Payment and Settlement (2024) |url=https://www.elibrary.imf.org/view/journals/001/2024/177/001.2024.issue-177-en.xml?cid=553493-com-dsp-crossref |access-date=2024-08-28 |website=IMF eLibrary |language=en |doi=10.5089/9798400286452.001|doi-access=free }}</ref> DeFi platforms enable users to lend or borrow funds, speculate on asset price movements using [[Derivative (finance)|derivatives]], trade [[cryptocurrencies]], insure against risks, and earn [[interest]] in savings-like accounts.<ref name="Bloomberg 2020-08-26"/> The DeFi ecosystem is built on a layered architecture and highly composable building blocks.<ref name="research" /> While some applications offer high [[interest rate]]s,<ref name="Bloomberg 2020-08-26">{{cite news |url=https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake |title=Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake |work=Bloomberg |date=2020-08-26 |access-date=2020-10-06 |archive-date=15 October 2020 |archive-url=https://web.archive.org/web/20201015185528/https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake |url-status=live }}</ref> they carry high risks.<ref name="Financial Times 2019-12-30">{{cite news |url=https://www.ft.com/content/16db565a-25a1-11ea-9305-4234e74b0ef3 |title='DeFi' movement promises high interest but high risk |work=Financial Times |date=2019-12-30 |access-date=2020-10-06 |archive-date=21 May 2021 |archive-url=https://web.archive.org/web/20210521183623/https://www.ft.com/content/16db565a-25a1-11ea-9305-4234e74b0ef3 |url-status=live }}</ref> Coding errors and hacks are a common challenge in DeFi.<ref name="Reuters 2020-08-26"/><ref name="Bloomberg 2020-08-26"/>


==History==
==History==
[[File:The DeFi Stack Figure.jpg|thumb|Multi-layered Architecture of the DeFi Stack]]
[[File:The DeFi Stack Figure.jpg|thumb|Multi-layered Architecture of the DeFi Stack]]
[[Decentralized exchange]]s (abbreviated DEXs) are alternative payment ecosystems with new [[Decentralized network protocol|protocol]]s for financial transactions that emerged within the framework of decentralized finance,<ref name="research">{{Cite journal|last=Schär|first=Fabian|title=Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets|url=https://files.stlouisfed.org/research/publications/review/2021/04/15/decentralized-finance-on-blockchain-and-smart-contract-based-financial-markets.pdf|journal=Review|year=2021|volume=103|issue=2|language=en|doi=10.20955/r.103.153-74|s2cid=234896331}}</ref> which is part of [[blockchain technology]] and [[fintech]].<ref>{{cite journal|url=https://academic.oup.com/jfr/article/6/2/172/5913239?login=true |title=Decentralized Finance|journal=Journal of Financial Regulation|date=September 2020|volume= 6 |issue=20 |pages=172–303 |doi=10.1093/jfr/fjaa010 |last1=Zetzsche|first1=Dirk A.|last2=Arner|first2=Douglas W.|last3=Buckley|first3=Ross P.|doi-access=free}}</ref>
[[Decentralized exchange]]s (abbreviated DEXs) are alternative payment ecosystems that use new [[Decentralized network protocol|protocol]]s for financial transactions. They emerged within decentralized finance (DeFi),<ref name="research">{{Cite journal|last=Schär|first=Fabian|title=Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets|url=https://files.stlouisfed.org/research/publications/review/2021/04/15/decentralized-finance-on-blockchain-and-smart-contract-based-financial-markets.pdf|journal=Review|year=2021|volume=103|issue=2|language=en|doi=10.20955/r.103.153-74|s2cid=234896331}}</ref> a sector of [[blockchain technology]] and [[fintech]].<ref>{{cite journal|url=https://academic.oup.com/jfr/article/6/2/172/5913239?login=true|title=Decentralized Finance|journal=Journal of Financial Regulation|date=September 2020|volume=6|issue=20|pages=172–303|doi=10.1093/jfr/fjaa010|last1=Zetzsche|first1=Dirk A.|last2=Arner|first2=Douglas W.|last3=Buckley|first3=Ross P.|doi-access=free|access-date=25 February 2022|archive-date=3 December 2021|archive-url=https://web.archive.org/web/20211203005942/https://academic.oup.com/jfr/article/6/2/172/5913239?login=true|url-status=live}}</ref>
CEXs (centralized exchanges), DEXs and DEX aggregators are all built on the multi-layered DeFi architecture or components, where each layer serves a well-defined purpose.<ref name="research"/> (See Figure: ''Multi-layered Architecture of the DeFi Stack'').
Centralized exchanges (CEXs), DEXs and DEX aggregators are all built on a multi-layered DeFi architecture, with each layer serving a well-defined purpose.<ref name="research"/> (See Figure: ''Multi-layered Architecture of the DeFi Stack'').


While they share common components of the first four layers, such as ''the Settlement layer'', ''Asset layer'', ''Protocol layer'' and ''Application layer'', DEX aggregators have an additional component or ''Aggregator layer'', which allows them to connect and interact with other DEXs via smart contracts.
While they share common components of the first four layers, such as ''the Settlement layer'', ''Asset layer'', ''Protocol layer'' and ''Application layer'', DEX aggregators have an additional component or ''Aggregator layer'', which allows them to connect and interact with other DEXs via smart contracts.


The [[Ethereum]] blockchain popularized [[Smart contract|smart contracts]], which are the basis of DeFi, in 2017. Other blockchains have since implemented smart contracts.
The [[Ethereum]] blockchain popularized [[smart contract]]s, which are the basis of DeFi, in 2017. Other blockchains have since implemented smart contracts.


[[MakerDAO]] is a prominent lending DeFi platform based on a [[stablecoin]] that was established in 2017.<ref>{{cite web|url=https://makerdao.com/en/whitepaper#abstract |title=The Maker Protocol: MakerDAO's Multi-Collateral Dai (MCD) System |publisher=MakerDAO |access-date=2021-06-18}}</ref><ref>S. Bhat, A. Kahya, R. Kumar and B. Krishnamachari (2021) "Simulating the MakerDAO stablecoin", IEEE International Conference on Blockchain and Cryptocurrency, pp. 1-2. https://anrg.usc.edu/www/papers/makerdao.pdf</ref> It allows users to borrow [[Dai (cryptocurrency)|DAI]], a token pegged to the [[United States dollar|US dollar]]. Through a set of smart contracts that govern the loan, repayment, and liquidation processes, MakerDAO aims to maintain the stable value of DAI in a [[Decentralization|decentralized]] and autonomous manner.<ref>{{Cite news|date=2020-08-26|title=Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake|access-date=2021-01-26}}</ref><ref>{{Cite book|last1=Stabile|first1=Daniel T.|url=https://books.google.com/books?id=tljwDwAAQBAJ|title=Digital Assets and Blockchain Technology: US Law and Regulation|last2=Prior|first2=Kimberly A.|last3=Hinkes|first3=Andrew M.|date=2020-07-31|publisher=Edward Elgar Publishing|isbn=978-1-78990-744-5|language=en}}</ref>
MakerDAO is a prominent lending DeFi platform based on a [[stablecoin]] that was established in 2017.<ref>{{cite web |url=https://makerdao.com/en/whitepaper#abstract |title=The Maker Protocol: MakerDAO's Multi-Collateral Dai (MCD) System |publisher=MakerDAO |access-date=2021-06-18 |archive-date=24 June 2021 |archive-url=https://web.archive.org/web/20210624200959/https://makerdao.com/en/whitepaper#abstract |url-status=live }}</ref><ref>S. Bhat, A. Kahya, R. Kumar and B. Krishnamachari (2021) "Simulating the MakerDAO stablecoin", IEEE International Conference on Blockchain and Cryptocurrency, pp. 1-2. https://anrg.usc.edu/www/papers/makerdao.pdf {{Webarchive|url=https://web.archive.org/web/20220101225016/https://anrg.usc.edu/www/papers/makerdao.pdf |date=1 January 2022 }}</ref> It allows users to borrow [[Dai (cryptocurrency)|DAI]], a token pegged to the [[United States dollar|US dollar]]. Through a set of smart contracts that govern the loan, repayment, and liquidation processes, MakerDAO aims to maintain the stable value of DAI in a [[Decentralization|decentralized]] and autonomous manner.<ref>{{Cite news|date=2020-08-26|title=Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake|access-date=2021-01-26|archive-date=15 October 2020|archive-url=https://web.archive.org/web/20201015185528/https://www.bloomberg.com/news/articles/2020-08-26/why-defi-utopia-would-be-finance-without-financiers-quicktake|url-status=live}}</ref><ref>{{Cite book|last1=Stabile|first1=Daniel T.|url=https://books.google.com/books?id=tljwDwAAQBAJ|title=Digital Assets and Blockchain Technology: US Law and Regulation|last2=Prior|first2=Kimberly A.|last3=Hinkes|first3=Andrew M.|date=2020-07-31|publisher=Edward Elgar Publishing|isbn=978-1-78990-744-5|language=en}}</ref>


In June 2020, Compound Finance, a decentralized finance protocol enabling users to lend or borrow cryptocurrency assets and which provides typical [[interest]] payments to lenders, started rewarding lenders and borrowers with a [[cryptocurrency]] called Comp. This token, which is used for running Compound, can also be traded on [[Cryptocurrency exchange|cryptocurrency exchanges]]. Other platforms followed suit, leading to stacked investment opportunities known as "yield farming" or "liquidity mining", where speculators shift cryptocurrency assets between pools in a platform and between platforms to maximize their total [[Yield (finance)|yield]], which includes not only [[interest]] and fees but also the value of additional tokens received as rewards.<ref name="The Washington Post 2020-07-31" />
In June 2020, Compound Finance, a decentralized finance protocol enabling users to lend or borrow cryptocurrency assets and which provides typical [[interest]] payments to lenders, started rewarding lenders and borrowers with a [[cryptocurrency]] called Comp. This token, which is used for running Compound, can also be traded on [[cryptocurrency exchange]]s. Other platforms followed suit, leading to stacked investment opportunities known as "yield farming" or "liquidity mining", where speculators shift cryptocurrency assets between pools in a platform and between platforms to maximize their total [[Yield (finance)|yield]], which includes not only [[interest]] and fees but also the value of additional tokens received as rewards.<ref name="The Washington Post 2020-07-31" />


In July 2020, ''[[The Washington Post]]'' described decentralized finance techniques and the risks involved.<ref name="The Washington Post 2020-07-31">{{cite news |url=https://www.washingtonpost.com/business/whats-yield-farming-and-how-do-you-grow-crypto/2020/07/25/b0fc4662-ce5d-11ea-99b0-8426e26d203b_story.html |title=What's 'Yield Farming'? (And How Do You Grow Crypto?) |newspaper=[[The Washington Post]] |date=2020-07-31 |access-date=2020-10-05 }}</ref> In September 2020, [[Bloomberg News|Bloomberg]] said that DeFi made up two-thirds of the [[cryptocurrency]] market in terms of price changes and that DeFi collateral levels had reached $9 billion.<ref name="Bloomberg 2020-10-05">{{cite news |url=https://www.bloomberg.com/news/articles/2020-09-22/defi-mania-puts-crypto-ahead-of-gold-as-2020-s-top-asset-so-far |title=Crypto Is Beating Gold as 2020's Top Asset So Far |work=[[Bloomberg News|Bloomberg]] |date=2020-09-22 |access-date=2020-10-05 }}</ref> Ethereum saw a rise in developers during 2020 due to the increased interest in DeFi.<ref>{{cite web |title=Coders Flock Back to Crypto Projects With Prices Surging Again |url=https://www.bloomberg.com/news/articles/2020-12-10/coders-flock-back-to-crypto-projects-with-prices-surging-again |website=Bloomberg.com |language=en |date=10 December 2020}}</ref>
In July 2020, ''[[The Washington Post]]'' described decentralized finance techniques and the risks involved.<ref name="The Washington Post 2020-07-31">{{cite news |url=https://www.washingtonpost.com/business/whats-yield-farming-and-how-do-you-grow-crypto/2020/07/25/b0fc4662-ce5d-11ea-99b0-8426e26d203b_story.html |title=What's 'Yield Farming'? (And How Do You Grow Crypto?) |newspaper=[[The Washington Post]] |date=2020-07-31 |access-date=2020-10-05 |archive-date=11 October 2023 |archive-url=https://web.archive.org/web/20231011093904/https://www.washingtonpost.com/business/whats-yield-farming-and-how-do-you-grow-crypto/2020/07/25/b0fc4662-ce5d-11ea-99b0-8426e26d203b_story.html |url-status=live }}</ref> In September 2020, [[Bloomberg News|Bloomberg]] said that DeFi made up two-thirds of the [[cryptocurrency]] market in terms of price changes and that DeFi collateral levels had reached $9 billion.<ref name="Bloomberg 2020-10-05">{{cite news |url=https://www.bloomberg.com/news/articles/2020-09-22/defi-mania-puts-crypto-ahead-of-gold-as-2020-s-top-asset-so-far |title=Crypto Is Beating Gold as 2020's Top Asset So Far |work=[[Bloomberg News|Bloomberg]] |date=2020-09-22 |access-date=2020-10-05 |archive-date=3 October 2020 |archive-url=https://web.archive.org/web/20201003050801/https://www.bloomberg.com/news/articles/2020-09-22/defi-mania-puts-crypto-ahead-of-gold-as-2020-s-top-asset-so-far |url-status=live }}</ref> Ethereum saw a rise in developers during 2020 due to the increased interest in DeFi.<ref>{{cite web |title=Coders Flock Back to Crypto Projects With Prices Surging Again |url=https://www.bloomberg.com/news/articles/2020-12-10/coders-flock-back-to-crypto-projects-with-prices-surging-again |website=Bloomberg.com |language=en |date=10 December 2020 |access-date=28 December 2020 |archive-date=19 April 2022 |archive-url=https://web.archive.org/web/20220419194659/https://www.bloomberg.com/news/articles/2020-12-10/coders-flock-back-to-crypto-projects-with-prices-surging-again |url-status=live }}</ref>


DeFi has attracted [[venture capital]]ists such as [[Andreessen Horowitz]]<ref name="Financial Times 2019-12-30"/> and [[Michael Novogratz]].<ref name="Bloomberg 2020-09-29">{{cite news |url=https://www.bloomberg.com/news/articles/2020-09-29/novogratz-plows-ahead-in-defi-amid-the-gamifying-of-crypto |title=Novogratz Plows Ahead In DeFi Amid the 'Gamifying' of Crypto |work=Bloomberg |date=2020-09-29 |access-date=2020-10-06 }}</ref>
DeFi has attracted [[venture capital]]ists such as [[Andreessen Horowitz]]<ref name="Financial Times 2019-12-30"/> and [[Michael Novogratz]].<ref name="Bloomberg 2020-09-29">{{cite news |url=https://www.bloomberg.com/news/articles/2020-09-29/novogratz-plows-ahead-in-defi-amid-the-gamifying-of-crypto |title=Novogratz Plows Ahead In DeFi Amid the 'Gamifying' of Crypto |work=Bloomberg |date=2020-09-29 |access-date=2020-10-06 |archive-date=9 January 2021 |archive-url=https://web.archive.org/web/20210109165654/https://www.bloomberg.com/news/articles/2020-09-29/novogratz-plows-ahead-in-defi-amid-the-gamifying-of-crypto |url-status=live }}</ref>


''The Economist'' regarded the future of digital finance in 2022 as a "three-way fight" between: [[Big Tech]], such as [[Facebook]] with its digital wallet; "big rich countries" that have been testing their own digital currencies; and software developers "building all sorts of applications" to decentralize finance. Handling the risks presented by crypto-assets already valued at $2.5 trillion was a particular challenge for US regulators.<ref>Rachana Shanbhogue (2021) "[https://www.economist.com/the-world-ahead/2021/11/08/a-three-way-fight-to-shape-the-future-of-digital-finance-has-begun A three-way fight to shape the future of digital finance has begun]", ''The Economist: The World Ahead 2022'', 8 November. Accessed 6 January 2022 </ref>
''The Economist'' regarded the future of digital finance in 2022 as a "three-way fight" between: [[Big Tech]], such as [[Facebook]] with its digital wallet; "big rich countries" that have been testing their own digital currencies; and software developers "building all sorts of applications" to decentralize finance. Handling the risks presented by crypto-assets already valued at $2.5 trillion was a particular challenge for US regulators.<ref>Rachana Shanbhogue (2021) "[https://www.economist.com/the-world-ahead/2021/11/08/a-three-way-fight-to-shape-the-future-of-digital-finance-has-begun A three-way fight to shape the future of digital finance has begun] {{Webarchive|url=https://web.archive.org/web/20220114125502/https://www.economist.com/the-world-ahead/2021/11/08/a-three-way-fight-to-shape-the-future-of-digital-finance-has-begun |date=14 January 2022 }}", ''The Economist: The World Ahead 2022'', 8 November. Accessed 6 January 2022</ref>


==Key characteristics==
==Key characteristics==


DeFi revolves around [[decentralized application|decentralized applications]], also known as DApps, that perform financial functions on [[Distributed ledger|distributed ledgers]] called blockchains, a technology that was made popular by [[Bitcoin]] and has since been adapted more broadly.<ref>[https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3791921 Decentralized Finance (DeFi): An Emergent Alternative Financial Architecture.] Regulation of Financial Institutions eJournal. Social Science Research Network (SSRN). Accessed 20 April 2021.</ref><ref name="Bloomberg 2020-08-26"/> Rather than transactions being made through a centralized intermediary such as a cryptocurrency exchange or a traditional securities exchange, transactions are directly made between participants, mediated by smart contract programs.<ref name="Financial Times 2019-12-30"/> These smart contracts, or DeFi protocols, typically run using [[Open source|open-source]] software that is built and maintained by a community of developers.<ref name="Bloomberg 2020-09-11">{{cite news|date=2020-09-11|title=Crypto Exchange Gets Millions After Copy-Paste of a Rival's Code|work=Bloomberg|url=https://www.bloomberg.com/news/articles/2020-09-11/-come-to-jesus-moment-for-crypto-finance-apps-rocks-valuations|access-date=2020-10-06}}</ref>
DeFi revolves around [[decentralized application]]s, also known as DApps, that perform financial functions on [[distributed ledger]]s called blockchains, a technology that was made popular by [[Bitcoin]] and has since been adapted more broadly.<ref>[https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3791921 Decentralized Finance (DeFi): An Emergent Alternative Financial Architecture.] {{Webarchive|url=https://web.archive.org/web/20210420021420/https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3791921 |date=20 April 2021 }} Regulation of Financial Institutions eJournal. Social Science Research Network (SSRN). Accessed 20 April 2021.</ref><ref name="Bloomberg 2020-08-26"/> Rather than transactions being made through a centralized intermediary such as a cryptocurrency exchange or a traditional securities exchange, transactions are directly made between participants, mediated by smart contract programs.<ref name="Financial Times 2019-12-30"/> These smart contracts, or DeFi protocols, typically run using [[Open source|open-source]] software that is built and maintained by a community of developers.<ref name="Bloomberg 2020-09-11">{{cite news|date=2020-09-11|title=Crypto Exchange Gets Millions After Copy-Paste of a Rival's Code|work=Bloomberg|url=https://www.bloomberg.com/news/articles/2020-09-11/-come-to-jesus-moment-for-crypto-finance-apps-rocks-valuations|access-date=2020-10-06|archive-date=24 February 2021|archive-url=https://web.archive.org/web/20210224135509/https://www.bloomberg.com/news/articles/2020-09-11/-come-to-jesus-moment-for-crypto-finance-apps-rocks-valuations|url-status=live}}</ref>


DApps are typically accessed through a browser extension or application. For example, [[MetaMask]] allows users to directly interact with Ethereum through a digital wallet.<ref>{{cite web |last1=Schroeder |first1=Stan |title=Crypto wallet MetaMask finally launches on iOS and Android, and it supports Apple Pay |url=https://mashable.com/article/metamask-ios-android/ |website=Mashable |date=2 September 2020 |language=en}}</ref><ref>{{cite web |title=MetaMask's Blockchain Mobile App Opens Doors For Next-Level Web |url=https://www.bloomberg.com/news/articles/2020-09-02/metamask-s-blockchain-mobile-app-opens-doors-for-next-level-web |website=Bloomberg.com |language=en |date=2 September 2020}}</ref> Many of these DApps can be linked to create complex financial services.<ref name="Bloomberg 2020-08-26" /> For example, [[stablecoin]] holders can lend assets like [[USD Coin]] or DAI to a liquidity pool in a borrow/lending protocol like Aave, and allow others to borrow those digital assets by depositing their own collateral.<ref>{{Cite news|last=Wilson|first=Tom|date=2020-08-26|title=Boom or bust? Welcome to the freewheeling world of crypto lending|language=en|work=Reuters|url=https://www.reuters.com/article/us-crypto-currencies-lending-insight-idUSKBN25M0GP|access-date=2021-04-08}}</ref> The protocol automatically adjusts interest rates based on the demand for the asset.<ref name="Financial Times 2019-12-30" /> Some DApps source external (off-chain) data, such as the price of an asset, through [[blockchain oracle]]s.<ref>{{cite web |last1=Orcutt |first1=Mike |title=Blockchain smart contracts are finally good for something in the real world |url=https://www.technologyreview.com/2018/11/19/139032/blockchain-smart-contracts-can-finally-have-a-real-world-impact/ |website=MIT Technology Review |access-date=24 November 2021}}</ref>
DApps are typically accessed through a browser extension or application. For example, [[MetaMask]] allows users to directly interact with Ethereum through a digital wallet.<ref>{{cite web |last1=Schroeder |first1=Stan |title=Crypto wallet MetaMask finally launches on iOS and Android, and it supports Apple Pay |url=https://mashable.com/article/metamask-ios-android/ |website=Mashable |date=2 September 2020 |language=en |access-date=15 December 2020 |archive-date=2 September 2020 |archive-url=https://web.archive.org/web/20200902193628/https://mashable.com/article/metamask-ios-android/ |url-status=live }}</ref><ref>{{cite web |title=MetaMask's Blockchain Mobile App Opens Doors For Next-Level Web |url=https://www.bloomberg.com/news/articles/2020-09-02/metamask-s-blockchain-mobile-app-opens-doors-for-next-level-web |website=Bloomberg.com |language=en |date=2 September 2020 |access-date=12 December 2020 |archive-date=12 May 2022 |archive-url=https://web.archive.org/web/20220512234519/https://www.bloomberg.com/news/articles/2020-09-02/metamask-s-blockchain-mobile-app-opens-doors-for-next-level-web |url-status=live }}</ref> Many of these DApps can be linked to create complex financial services.<ref name="Bloomberg 2020-08-26" /> For example, [[stablecoin]] holders can lend assets such as [[USD Coin]] or DAI to a liquidity pool in a borrow/lending protocol such as Aave Protocol, and allow others to borrow those digital assets by depositing their own collateral.<ref>{{Cite news|last=Wilson|first=Tom|date=2020-08-26|title=Boom or bust? Welcome to the freewheeling world of crypto lending|language=en|work=Reuters|url=https://www.reuters.com/article/us-crypto-currencies-lending-insight-idUSKBN25M0GP|access-date=2021-04-08|archive-date=17 April 2021|archive-url=https://web.archive.org/web/20210417181133/https://www.reuters.com/article/us-crypto-currencies-lending-insight-idUSKBN25M0GP|url-status=live}}</ref> The protocol automatically adjusts interest rates based on the demand for the asset.<ref name="Financial Times 2019-12-30" /> Some DApps source external (off-chain) data, such as the price of an asset, through [[blockchain oracle]]s.<ref>{{cite web |last1=Orcutt |first1=Mike |title=Blockchain smart contracts are finally good for something in the real world |url=https://www.technologyreview.com/2018/11/19/139032/blockchain-smart-contracts-can-finally-have-a-real-world-impact/ |website=MIT Technology Review |access-date=24 November 2021 |archive-date=18 May 2022 |archive-url=https://web.archive.org/web/20220518143313/https://www.technologyreview.com/2018/11/19/139032/blockchain-smart-contracts-can-finally-have-a-real-world-impact/ |url-status=live }}</ref>


Additionally, Aave introduced "flash loans", which are uncollateralized loans of an arbitrary amount that are taken out and paid back within a single blockchain transaction.<ref>{{Cite news|date=2021-02-07|title=Flash Loans Are Providing Instant Cash to Crypto Speculators|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2021-02-07/flash-loans-are-providing-instant-cash-to-crypto-speculators|access-date=2021-04-08}}</ref> Many exploits of DeFi platforms have used flash loans to manipulate cryptocurrency spot prices.<ref>{{cite web|last1=Evans|first1=Jon|date=February 18, 2020|title=DeFiance: billion dollar finance, million dollar hacks, and very little value|url=https://techcrunch.com/2020/02/18/defiance-billion-dollar-finance-million-dollar-hacks-and-very-little-value|access-date=22 November 2020|publisher=TechCrunch}}</ref>
Additionally, Aave Protocol popularized "flash loans", which are uncollateralized loans of an arbitrary amount that are taken out and paid back within a single blockchain transaction.<ref>{{Cite news|date=2021-02-07|title=Flash Loans Are Providing Instant Cash to Crypto Speculators|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2021-02-07/flash-loans-are-providing-instant-cash-to-crypto-speculators|access-date=2021-04-08|archive-date=21 February 2021|archive-url=https://web.archive.org/web/20210221004904/https://www.bloomberg.com/news/articles/2021-02-07/flash-loans-are-providing-instant-cash-to-crypto-speculators|url-status=live}}</ref> Max Wolff is credited with the original invention of flash loans with the original implementation released in 2018 by Marble Protocol.<ref>{{Citation | last = Rouse | first = Margaret | title = Flash Loan | pages = | newspaper = Techopedia | location = Panama City | date = 30 March 2023 | url = https://www.techopedia.com/definition/flash-loan | archive-url = https://web.archive.org/web/20230330114903/https://www.techopedia.com/definition/flash-loan | archive-date = 30 March 2023}}</ref><ref>{{cite web |url=https://github.com/marbleprotocol/flash-lending |title=flash-lending |author=Marble Protocol |date=5 June 2018 |website=github.com |publisher=Marble Protocol via GitHub |access-date=27 August 2024}}</ref> Many exploits of DeFi platforms have used flash loans to manipulate cryptocurrency spot prices.<ref>{{cite web|last1=Evans|first1=Jon|date=February 18, 2020|title=DeFiance: billion dollar finance, million dollar hacks, and very little value|url=https://techcrunch.com/2020/02/18/defiance-billion-dollar-finance-million-dollar-hacks-and-very-little-value|access-date=22 November 2020|publisher=TechCrunch|archive-date=1 December 2020|archive-url=https://web.archive.org/web/20201201204037/https://techcrunch.com/2020/02/18/defiance-billion-dollar-finance-million-dollar-hacks-and-very-little-value/|url-status=live}}</ref>


Another DeFi protocol is [[Uniswap]], which is a [[decentralized exchange]] (DEX) set up to trade tokens issued on Ethereum. Rather than using a centralized exchange to fill orders, Uniswap pays users to form liquidity pools in exchange for a percentage of the fees collected from traders swapping tokens in and out of the liquidity pools. Because no centralized party runs Uniswap (the platform is governed by its users), and any development team can use the open-source software, there is no entity to check the identities of the people using the platform and meet [[Know your customer|KYC/AML]] regulations. As of 2020, it is not clear what position regulators will take on the legality of such platforms.<ref name="KhalifUni">{{cite news |last1=Kharif |first1=Olga |title=DeFi Boom Makes Uniswap Most Sought-After Crypto Exchange |url=https://www.bloomberg.com/news/articles/2020-10-16/defi-boom-makes-uniswap-most-sought-after-crypto-exchange?sref=UsAjUhBb |website=Bloomberg.com |date=16 October 2020 |publisher=Bloomberg }}</ref>
Another DeFi protocol is [[Uniswap]], which is a [[decentralized exchange]] (DEX) set up to trade tokens issued on Ethereum. Rather than using a centralized exchange to fill orders, Uniswap pays users to form liquidity pools in exchange for a percentage of the fees collected from traders swapping tokens in and out of the liquidity pools. Because no centralized party runs Uniswap (the platform is governed by its users), and any development team can use the open-source software, there is no entity to check the identities of the people using the platform and meet [[Know your customer|KYC/AML]] regulations. As of 2020, it is not clear what position regulators will take on the legality of such platforms.<ref name="KhalifUni">{{cite news |last1=Kharif |first1=Olga |title=DeFi Boom Makes Uniswap Most Sought-After Crypto Exchange |url=https://www.bloomberg.com/news/articles/2020-10-16/defi-boom-makes-uniswap-most-sought-after-crypto-exchange?sref=UsAjUhBb |website=Bloomberg.com |date=16 October 2020 |publisher=Bloomberg |access-date=7 November 2020 |archive-date=3 December 2021 |archive-url=https://web.archive.org/web/20211203132203/https://www.bloomberg.com/news/articles/2020-10-16/defi-boom-makes-uniswap-most-sought-after-crypto-exchange?sref=UsAjUhBb |url-status=live }}</ref>


== Decentralized exchanges ==
== Decentralized exchanges ==


Decentralized exchanges (DEX) are a type of [[cryptocurrency exchange]], which allow for either direct [[peer-to-peer]], or Automated Market Maker (AMM) liquidity pool cryptocurrency transactions to take place without the need for an intermediary. The lack of an intermediary differentiates them from centralized exchanges (CEX).{{cn|date=February 2024}}
Decentralized exchanges (DEX) are a type of [[cryptocurrency exchange]], which allow for either direct [[peer-to-peer]], or Automated Market Maker (AMM) liquidity pool cryptocurrency transactions to take place without the need for an intermediary. The lack of an intermediary differentiates them from centralized exchanges (CEX).{{citation needed|date=February 2024}}


In transactions made through decentralized exchanges, the typical third party entities which would normally oversee the security and transfer of [[Asset|assets]] (e.g. [[Bank|banks]], [[Stockbroker|stockbrokers]], online [[payment gateways]], government [[Institution|institutions]], etc.) are substituted by a [[blockchain]] or [[distributed ledger]]. Some common methods of operation include the use of [[smart contracts]] or [[order book]] relaying – although many other variations are possible, with differing degrees of [[decentralization]].<ref name=":0">{{Cite web|last=Wong|first=Joon Ian|title=Coinbase bought a "decentralized" crypto exchange. How does that work?|url=https://qz.com/1289262/what-are-centralized-and-decentralized-cryptocurrency-exchanges/|access-date=2020-12-03|website=Quartz|date=30 May 2018 |language=en}}</ref><ref>{{Cite news|date=2017-09-28|title=This 31-Year-Old Is Trying to Revolutionize Cryptocurrency Trading|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2017-09-28/upending-digital-currency-market-is-next-act-for-ex-virtu-trader|access-date=2020-12-03}}</ref>
In transactions made through decentralized exchanges, the typical third party entities which would normally oversee the security and transfer of [[asset]]s (e.g. [[bank]]s, [[stockbroker]]s, online [[payment gateways]], government [[institution]]s, etc.) are substituted by a [[blockchain]] or [[distributed ledger]]. Some common methods of operation include the use of [[smart contracts]] or [[order book]] relaying – although many other variations are possible, with differing degrees of [[decentralization]].<ref name=":0">{{Cite web|last=Wong|first=Joon Ian|title=Coinbase bought a "decentralized" crypto exchange. How does that work?|url=https://qz.com/1289262/what-are-centralized-and-decentralized-cryptocurrency-exchanges/|access-date=2020-12-03|website=Quartz|date=30 May 2018|language=en|archive-date=3 July 2019|archive-url=https://web.archive.org/web/20190703161300/https://qz.com/1289262/what-are-centralized-and-decentralized-cryptocurrency-exchanges/|url-status=live}}</ref><ref>{{Cite news|date=2017-09-28|title=This 31-Year-Old Is Trying to Revolutionize Cryptocurrency Trading|language=en|work=Bloomberg.com|url=https://www.bloomberg.com/news/articles/2017-09-28/upending-digital-currency-market-is-next-act-for-ex-virtu-trader|access-date=2020-12-03|archive-date=9 November 2019|archive-url=https://web.archive.org/web/20191109003833/https://www.bloomberg.com/news/articles/2017-09-28/upending-digital-currency-market-is-next-act-for-ex-virtu-trader|url-status=live}}</ref>


Because traders on a decentralized exchange often do not need to transfer their assets to the exchange before executing a trade, decentralized exchanges reduce the risk of theft from [[Cryptocurrency and security|hacking of exchanges]],<ref>{{Cite news |url=https://www.wsj.com/articles/alexis-ohanians-vc-firm-invests-2-1-million-in-crypto-trading-platform-1520365270 |title=Alexis Ohanian's VC Firm Invests in Crypto Trading Platform |last=Castellanos |first=Sara |date=2018-03-06 |work=Wall Street Journal |access-date=2018-09-11 |language=en-US |issn=0099-9660}}</ref> but liquidity providers do need to transfer tokens to the decentralized exchange. Decentralized exchanges are also more anonymous than exchanges that implement [[know your customer]] (KYC) requirements.<ref>{{cite news |last1=Sigalos |first1=MacKenzie |title=Bitcoin Family is moving more than $1 million into decentralized exchanges after Sam Bankman-Fried's FTX disaster |url=https://www.cnbc.com/2022/11/30/bitcoin-family-moving-more-than-1-million-into-dexs-after-ftx-collapse.html |access-date=August 25, 2023 |work=[[CNBC]] |date=November 30, 2022}}</ref><ref>{{cite book |last1=Calcaterra |first1=Craig |last2=Kaal |first2=Wulf |title=Decentralization: Technology's Impact on Organizational and Societal Structure |date=2021 |publisher=[[De Gruyter]] |isbn=978-3-11-067403-3 |url=https://books.google.com/books?id=8EkfEAAAQBAJ&pg=PT220}}</ref>
Because traders on a decentralized exchange often do not need to transfer their assets to the exchange before executing a trade, decentralized exchanges reduce the risk of theft from [[Cryptocurrency and security|hacking of exchanges]],<ref>{{Cite news |url=https://www.wsj.com/articles/alexis-ohanians-vc-firm-invests-2-1-million-in-crypto-trading-platform-1520365270 |title=Alexis Ohanian's VC Firm Invests in Crypto Trading Platform |last=Castellanos |first=Sara |date=2018-03-06 |work=Wall Street Journal |access-date=2018-09-11 |language=en-US |issn=0099-9660 |archive-date=9 November 2020 |archive-url=https://web.archive.org/web/20201109011913/https://www.wsj.com/articles/alexis-ohanians-vc-firm-invests-2-1-million-in-crypto-trading-platform-1520365270 |url-status=live }}</ref> but liquidity providers do need to transfer tokens to the decentralized exchange. Decentralized exchanges are also more anonymous than exchanges that implement [[know your customer]] (KYC) requirements.<ref>{{cite news |last1=Sigalos |first1=MacKenzie |title=Bitcoin Family is moving more than $1 million into decentralized exchanges after Sam Bankman-Fried's FTX disaster |url=https://www.cnbc.com/2022/11/30/bitcoin-family-moving-more-than-1-million-into-dexs-after-ftx-collapse.html |access-date=August 25, 2023 |work=[[CNBC]] |date=November 30, 2022 |archive-date=25 August 2023 |archive-url=https://web.archive.org/web/20230825043749/https://www.cnbc.com/2022/11/30/bitcoin-family-moving-more-than-1-million-into-dexs-after-ftx-collapse.html |url-status=live }}</ref><ref>{{cite book |last1=Calcaterra |first1=Craig |last2=Kaal |first2=Wulf |title=Decentralization: Technology's Impact on Organizational and Societal Structure |date=2021 |publisher=[[De Gruyter]] |isbn=978-3-11-067403-3 |url=https://books.google.com/books?id=8EkfEAAAQBAJ&pg=PT220 |access-date=25 August 2023 |archive-date=25 August 2023 |archive-url=https://web.archive.org/web/20230825045501/https://books.google.com/books?id=8EkfEAAAQBAJ&pg=PT220 |url-status=live }}</ref>


There are some signs that decentralized exchanges have been suffering from low trading volumes and reduced [[market liquidity]].<ref name="wsj">{{Cite news|last1=Russolillo|first1=Steven|last2=Jeong|first2=Eun-Young|date=2018-07-16|title=Cryptocurrency Exchanges Are Getting Hacked Because It's Easy|language=en-US|work=Wall Street Journal|url=https://www.wsj.com/articles/why-cryptocurrency-exchange-hacks-keep-happening-1531656000|access-date=2018-09-11|issn=0099-9660}}</ref> The [[0x (decentralized exchange infrastructure)|0x project]], a protocol for building decentralized exchanges with interchangeable liquidity, attempts to solve this issue.<ref>{{Cite news|url=https://techcrunch.com/2018/07/16/0x/|title=0x lets any app be the Craigslist of cryptocurrency|work=TechCrunch|access-date=2018-11-24|language=en-US}}</ref>
There are some signs that decentralized exchanges have been suffering from low trading volumes and reduced [[market liquidity]].<ref name="wsj">{{Cite news|last1=Russolillo|first1=Steven|last2=Jeong|first2=Eun-Young|date=2018-07-16|title=Cryptocurrency Exchanges Are Getting Hacked Because It's Easy|language=en-US|work=Wall Street Journal|url=https://www.wsj.com/articles/why-cryptocurrency-exchange-hacks-keep-happening-1531656000|access-date=2018-09-11|issn=0099-9660|archive-date=11 September 2018|archive-url=https://web.archive.org/web/20180911094757/https://www.wsj.com/articles/why-cryptocurrency-exchange-hacks-keep-happening-1531656000|url-status=live}}</ref> The [[0x (decentralized exchange infrastructure)|0x project]], a protocol for building decentralized exchanges with interchangeable liquidity, attempts to solve this issue.<ref>{{Cite news|url=https://techcrunch.com/2018/07/16/0x/|title=0x lets any app be the Craigslist of cryptocurrency|work=TechCrunch|access-date=2018-11-24|language=en-US|archive-date=21 October 2020|archive-url=https://web.archive.org/web/20201021134708/https://techcrunch.com/2018/07/16/0x/|url-status=live}}</ref>


=== Disadvantages ===
=== Disadvantages ===
Due to a lack of [[Know your customer|KYC]] processes, and no way to revert a transaction, users are at a loss if they are ever hacked for their passwords or private keys.<ref>{{Cite news|url=https://www.bloomberg.com/news/articles/2018-01-30/record-crypto-heist-raises-the-appeal-of-a-new-type-of-exchange|title=Bloomberg - Record Crypto Heist Raises the Appeal of a New Type of Exchange|newspaper=Bloomberg|date=30 January 2018 |access-date=2018-11-17}}</ref> Additionally, liquidity providers staking in DeFi protocols can suffer what is called an impermanent loss if, when withdrawn, the token pairs they have invested have altered in value ratio significantly.<ref>{{cite book |last1=Lewis |first1=Rhian |title=Understanding Decentralized Finance: How DeFi Is Changing the Future of Money |date=2023 |publisher=[[Kogan Page]] |url=https://books.google.com/books?id=-9yzEAAAQBAJ&pg=PA76 |page=76|isbn=978-1-3986-0938-9 }}</ref><ref>{{cite book |last1=Ma |first1=Winston |last2=Huang |first2=Ken |title=Blockchain and Web3: Building the Cryptocurrency, Privacy, and Security Foundations of the Metaverse |date=2022 |publisher=[[John Wiley & Sons]] |isbn=978-1-119-89110-9 |url=https://books.google.com/books?id=v5SDEAAAQBAJ&pg=PT266}}</ref><ref>{{cite book |last1=Arslanian |first1=Henri |title=The Book of Crypto: The Complete Guide to Understanding Bitcoin, Cryptocurrencies and Digital Assets |date=2022 |publisher=[[Springer Nature]] |pages=306–307 |isbn=978-3-030-97951-5 |url=https://books.google.com/books?id=QV1uEAAAQBAJ&pg=PA306}}</ref>
Due to a lack of [[Know your customer|KYC]] processes, and no way to revert a transaction, users are at a loss if they are ever hacked for their passwords or private keys.<ref>{{Cite news|url=https://www.bloomberg.com/news/articles/2018-01-30/record-crypto-heist-raises-the-appeal-of-a-new-type-of-exchange|title=Bloomberg - Record Crypto Heist Raises the Appeal of a New Type of Exchange|newspaper=Bloomberg|date=30 January 2018|access-date=2018-11-17|archive-date=30 January 2018|archive-url=https://web.archive.org/web/20180130022220/https://www.bloomberg.com/news/articles/2018-01-30/record-crypto-heist-raises-the-appeal-of-a-new-type-of-exchange|url-status=live}}</ref> Additionally, liquidity providers staking in DeFi protocols can suffer what is called an impermanent loss if, when withdrawn, the token pairs they have invested have altered in value ratio significantly.<ref>{{cite book |last1=Lewis |first1=Rhian |title=Understanding Decentralized Finance: How DeFi Is Changing the Future of Money |date=2023 |publisher=[[Kogan Page]] |url=https://books.google.com/books?id=-9yzEAAAQBAJ&pg=PA76 |page=76 |isbn=978-1-3986-0938-9 |access-date=24 August 2023 |archive-date=24 August 2023 |archive-url=https://web.archive.org/web/20230824053618/https://books.google.com/books?id=-9yzEAAAQBAJ&pg=PA76 |url-status=live }}</ref><ref>{{cite book |last1=Ma |first1=Winston |last2=Huang |first2=Ken |title=Blockchain and Web3: Building the Cryptocurrency, Privacy, and Security Foundations of the Metaverse |date=2022 |publisher=[[John Wiley & Sons]] |isbn=978-1-119-89110-9 |url=https://books.google.com/books?id=v5SDEAAAQBAJ&pg=PT266 |access-date=24 August 2023 |archive-date=24 August 2023 |archive-url=https://web.archive.org/web/20230824060032/https://books.google.com/books?id=v5SDEAAAQBAJ&pg=PT266 |url-status=live }}</ref><ref>{{cite book |last1=Arslanian |first1=Henri |title=The Book of Crypto: The Complete Guide to Understanding Bitcoin, Cryptocurrencies and Digital Assets |date=2022 |publisher=[[Springer Nature]] |pages=306–307 |isbn=978-3-030-97951-5 |url=https://books.google.com/books?id=QV1uEAAAQBAJ&pg=PA306 |access-date=24 August 2023 |archive-date=24 August 2023 |archive-url=https://web.archive.org/web/20230824061523/https://books.google.com/books?id=QV1uEAAAQBAJ&pg=PA306 |url-status=live }}</ref>


Although liquidity pool DEX are the most widely used, they may have some drawbacks. The most common problems of liquidity pool DEXes are [[Market_impact | market price impact]], [[Slippage_(finance) | slippage]], and [[front running]].
Although liquidity pool DEX are the most widely used, they may have some drawbacks. The most common problems of liquidity pool DEXes are [[Market impact|market price impact]], [[Slippage (finance)|slippage]], and [[front running]].


Price impact occurs because of the AMM (Automated Market Makers) nature itself — the larger the deal, the stronger impact it has on the price. For example, if the [[constant function market maker|constant product AMM]] is in use, every deal must keep the product xy = k constant, where x and y are quantities of two cryptocurrencies (or tokens) in the pool. Price impact is non-linear, so the larger is the input amount Δx, the lower is the final ratio y / x that gives an exchange price. The problem is mostly significant for relatively large deals versus the liquidity pool size.<ref>{{Cite arXiv |last1=Jensen |first1=Johannes Rude |last2=Pourpouneh |first2=Mohsen |last3=Nielsen |first3=Kurt |last4=Ross |first4=Omri |date=2021 |title=The Homogeneous Properties of Automated Market Makers |class=q-fin.TR |eprint=2105.02782 }}</ref>{{better source needed|reason=Instead of a primary pre-print, please cite a secondary source published in a reliable outlet|date=May 2023}}
Price impact occurs because of the AMM (Automated Market Makers) nature itself — the larger the deal, the stronger impact it has on the price. For example, if the [[constant function market maker|constant product AMM]] is in use, every deal must keep the product xy = k constant, where x and y are quantities of two cryptocurrencies (or tokens) in the pool. Price impact is non-linear, so the larger is the input amount Δx, the lower is the final ratio y / x that gives an exchange price. The problem is mostly significant for relatively large deals versus the liquidity pool size.<ref>{{Cite arXiv |last1=Jensen |first1=Johannes Rude |last2=Pourpouneh |first2=Mohsen |last3=Nielsen |first3=Kurt |last4=Ross |first4=Omri |date=2021 |title=The Homogeneous Properties of Automated Market Makers |class=q-fin.TR |eprint=2105.02782 }}</ref>{{better source needed|reason=Instead of a primary pre-print, please cite a secondary source published in a reliable outlet|date=May 2023}}


Front running is a special type of attack in public blockchains when some participant (usually a miner) seeing an upcoming trading transaction puts his own transaction ahead (playing with a transaction fee for example), making the initial transaction less profitable or even reverted. To provide some protection against front running attacks, many DeFi exchanges offer a slippage tolerance option for end-users. This option serves as a safeguard, allowing users to set a limit on the worst acceptable price they are willing to accept from the time of transaction signing.{{cn|date=May 2023}}
Front running is a special type of attack in public blockchains when some participant (usually a miner) seeing an upcoming trading transaction puts his own transaction ahead (playing with a transaction fee for example), making the initial transaction less profitable or even reverted. To provide some protection against front running attacks, many DeFi exchanges offer a slippage tolerance option for end-users. This option serves as a safeguard, allowing users to set a limit on the worst acceptable price they are willing to accept from the time of transaction signing.{{citation needed|date=May 2023}}


=== Degrees of decentralization ===
=== Degrees of decentralization ===
A decentralized exchange can still have centralized components, whereby some control of the exchange is still in the hands of a central authority. The governance of a DeFi platform, typically as part of a [[Decentralized autonomous organization|Decentralized Autonomous Organization]], is done through tokens that grant voting rights and are distributed amongst participants. However, the majority of these tokens are often held by few individuals and are rarely used to vote.<ref>{{Cite journal |last1=Barbereau |first1=Tom |last2=Smethurst |first2=Reilly |last3=Papageorgiou |first3=Orestis |last4=Sedlmeir |first4=Johannes |last5=Fridgen |first5=Gilbert |date=May 2023 |title=Decentralised Finance's timocratic governance: The distribution and exercise of tokenised voting rights |journal=Technology in Society |language=en |volume=73 |pages=102251 |doi=10.1016/j.techsoc.2023.102251|s2cid=258245920 |doi-access=free }}</ref>
A decentralized exchange can still have centralized components, whereby some control of the exchange is still in the hands of a central authority. The governance of a DeFi platform, typically as part of a [[Decentralized autonomous organization|Decentralized Autonomous Organization]], is done through tokens that grant voting rights and are distributed amongst participants. However, the majority of these tokens are often held by few individuals and are rarely used to vote.<ref>{{Cite journal |last1=Barbereau |first1=Tom |last2=Smethurst |first2=Reilly |last3=Papageorgiou |first3=Orestis |last4=Sedlmeir |first4=Johannes |last5=Fridgen |first5=Gilbert |date=May 2023 |title=Decentralised Finance's timocratic governance: The distribution and exercise of tokenised voting rights |journal=Technology in Society |language=en |volume=73 |pages=102251 |doi=10.1016/j.techsoc.2023.102251|s2cid=258245920 |doi-access=free }}</ref>


In July 2018, the decentralized exchange Bancor was reportedly hacked and suffered a loss of $13.5M in assets before freezing funds.<ref name="bancor-freeze-loss">{{Cite web|url=https://www.zdnet.com/article/another-hack-rocks-cryptocurrency-trading-bancor-loses-23-5-million/|title=Another hack rocks cryptocurrency trading: Bancor loses $13.5 million|last=Osborne|first=Charlie|website=ZDNet|language=en|access-date=2018-12-13}}</ref> In a Tweet, [[Charlie Lee (computer scientist)|Charlie Lee]], the creator of [[Litecoin]] spoke out and claimed an exchange cannot be decentralized if it can lose or freeze customer funds.<ref>{{Cite web|url=https://techcrunch.com/2018/07/10/bancor-loses-23-5m/|title=The crypto world's latest hack sees Bancor lose $23.5M|website=TechCrunch|date=10 July 2018 |language=en-US|access-date=2018-12-13}}</ref>
In July 2018, the decentralized exchange Bancor was reportedly hacked and suffered a loss of $13.5M in assets before freezing funds.<ref name="bancor-freeze-loss">{{Cite web|url=https://www.zdnet.com/article/another-hack-rocks-cryptocurrency-trading-bancor-loses-23-5-million/|title=Another hack rocks cryptocurrency trading: Bancor loses $13.5 million|last=Osborne|first=Charlie|website=ZDNet|language=en|access-date=2018-12-13|archive-date=28 April 2019|archive-url=https://web.archive.org/web/20190428061739/https://www.zdnet.com/article/another-hack-rocks-cryptocurrency-trading-bancor-loses-23-5-million/|url-status=live}}</ref> In a Tweet, [[Charlie Lee (computer scientist)|Charlie Lee]], the creator of [[Litecoin]] spoke out and claimed an exchange cannot be decentralized if it can lose or freeze customer funds.<ref>{{Cite web|url=https://techcrunch.com/2018/07/10/bancor-loses-23-5m/|title=The crypto world's latest hack sees Bancor lose $23.5M|website=TechCrunch|date=10 July 2018|language=en-US|access-date=2018-12-13|archive-date=10 July 2018|archive-url=https://web.archive.org/web/20180710084932/https://techcrunch.com/2018/07/10/bancor-loses-23-5m/|url-status=live}}</ref>


Operators of decentralized exchanges can face legal consequences from government regulators. One example is the founder of EtherDelta, who in November 2018 settled charges with the [[U.S. Securities and Exchange Commission]] over operating an unregistered securities exchange.<ref>{{Cite web|url=https://www.reuters.com/article/us-etherdelta-sec/sec-etherdelta-founder-settle-charges-over-operating-unregistered-exchange-idUSKBN1ND2CC|title=SEC, EtherDelta founder settle charges over operating unregistered exchange|website=Reuters|language=en-US|access-date=2018-06-05}}</ref>
Operators of decentralized exchanges can face legal consequences from government regulators. One example is the founder of EtherDelta, who in November 2018 settled charges with the [[U.S. Securities and Exchange Commission]] over operating an unregistered securities exchange.<ref>{{Cite web|url=https://www.reuters.com/article/us-etherdelta-sec/sec-etherdelta-founder-settle-charges-over-operating-unregistered-exchange-idUSKBN1ND2CC|title=SEC, EtherDelta founder settle charges over operating unregistered exchange|website=Reuters|language=en-US|access-date=2018-06-05|archive-date=8 November 2018|archive-url=https://web.archive.org/web/20181108191257/https://www.reuters.com/article/us-etherdelta-sec/sec-etherdelta-founder-settle-charges-over-operating-unregistered-exchange-idUSKBN1ND2CC|url-status=live}}</ref>


==Errors and hacking==
==Errors and hacking==
Line 65: Line 68:
Coding errors and hacks are common in DeFi.<ref name="Reuters 2020-08-26"/><ref name="Bloomberg 2020-08-26"/> Blockchain transactions are irreversible, which means that an incorrect or fraudulent DeFi transaction cannot be corrected easily.
Coding errors and hacks are common in DeFi.<ref name="Reuters 2020-08-26"/><ref name="Bloomberg 2020-08-26"/> Blockchain transactions are irreversible, which means that an incorrect or fraudulent DeFi transaction cannot be corrected easily.


The person or entity behind a DeFi protocol may be unknown and may disappear with investors' money.<ref name="Bloomberg 2020-09-11"/> Investor Michael Novogratz has described some DeFi protocols as "[[Ponzi scheme|Ponzi]]-like".<ref name="Bloomberg 2020-09-29"/>
The person or entity behind a DeFi protocol may be unknown and may disappear with investors' money.<ref name="Bloomberg 2020-09-11"/> Investor Michael Novogratz has described some DeFi protocols as "[[Ponzi scheme|Ponzi]]-like".<ref name="Bloomberg 2020-09-29"/>


DeFi has been compared to the [[initial coin offering]] craze of 2017, part of a [[cryptocurrency bubble]]. Inexperienced investors are at particular risk of losing money because of the sophistication required to interact with DeFi platforms and the lack of any intermediary with customer support.<ref name="Reuters 2020-08-26">{{cite news |url=https://uk.reuters.com/article/uk-crypto-currencies-lending-insight/boom-or-bust-welcome-to-the-freewheeling-world-of-crypto-lending-idUKKBN25M0GQ |title=Boom or bust? Welcome to the freewheeling world of crypto lending |work=Reuters |date=2020-08-26 |access-date=2020-10-06 }}</ref><ref>{{Cite web|last1=Braun|first1=Alexander|last2=Cohen|first2=Lauren H.|last3=Xu|first3=Jiahua|date=May 2020|title=fidentiaX: The Tradable Insurance Marketplace on Blockchain|url=https://www.hbs.edu/faculty/Pages/item.aspx?num=56189|access-date=2021-01-05|publisher=Harvard Business School}}</ref> On the other hand, as the code for DeFi smart contracts is generally [[open-source software]] that can be copied to set up competing platforms, experienced users and user-created bots might create instabilities as funds shift between platforms which share the same code.<ref name="Bloomberg 2020-09-11"/> In addition, DeFi platforms might inadvertently provide incentives for cryptocurrency miners to destabilize the system. <ref>{{Cite book |last1=Yaish |first1=Aviv |last2=Tochner |first2=Saar |last3=Zohar |first3=Aviv |title=Proceedings of the 23rd ACM Conference on Economics and Computation |chapter=Blockchain Stretching & Squeezing: Manipulating Time for Your Best Interest |date=2022-07-12 |chapter-url=https://doi.org/10.1145/3490486.3538250 |series=EC '22 |location=New York, NY, USA |publisher=Association for Computing Machinery |pages=65–88 |doi=10.1145/3490486.3538250 |isbn=978-1-4503-9150-4|s2cid=250497046 }}</ref>
DeFi has been compared to the [[initial coin offering]] craze of 2017, part of a [[cryptocurrency bubble]]. Inexperienced investors are at particular risk of losing money because of the sophistication required to interact with DeFi platforms and the lack of any intermediary with customer support.<ref name="Reuters 2020-08-26">{{cite news |url=https://uk.reuters.com/article/uk-crypto-currencies-lending-insight/boom-or-bust-welcome-to-the-freewheeling-world-of-crypto-lending-idUKKBN25M0GQ |title=Boom or bust? Welcome to the freewheeling world of crypto lending |work=Reuters |date=2020-08-26 |access-date=2020-10-06 |archive-date=29 September 2020 |archive-url=https://web.archive.org/web/20200929110202/https://uk.reuters.com/article/uk-crypto-currencies-lending-insight/boom-or-bust-welcome-to-the-freewheeling-world-of-crypto-lending-idUKKBN25M0GQ |url-status=dead }}</ref><ref>{{Cite web|last1=Braun|first1=Alexander|last2=Cohen|first2=Lauren H.|last3=Xu|first3=Jiahua|date=May 2020|title=fidentiaX: The Tradable Insurance Marketplace on Blockchain|url=https://www.hbs.edu/faculty/Pages/item.aspx?num=56189|access-date=2021-01-05|publisher=Harvard Business School|archive-date=27 January 2021|archive-url=https://web.archive.org/web/20210127103118/https://www.hbs.edu/faculty/Pages/item.aspx?num=56189|url-status=live}}</ref> On the other hand, as the code for DeFi smart contracts is generally [[open-source software]] that can be copied to set up competing platforms, experienced users and user-created bots might create instabilities as funds shift between platforms which share the same code.<ref name="Bloomberg 2020-09-11"/> In addition, DeFi platforms might inadvertently provide incentives for cryptocurrency miners to destabilize the system.<ref>{{Cite book |last1=Yaish |first1=Aviv |last2=Tochner |first2=Saar |last3=Zohar |first3=Aviv |title=Proceedings of the 23rd ACM Conference on Economics and Computation |chapter=Blockchain Stretching & Squeezing: Manipulating Time for Your Best Interest |date=2022-07-12 |chapter-url=https://doi.org/10.1145/3490486.3538250 |series=EC '22 |location=New York, NY, USA |publisher=Association for Computing Machinery |pages=65–88 |doi=10.1145/3490486.3538250 |isbn=978-1-4503-9150-4|s2cid=250497046 }}</ref>


In 2021, half of cryptocurrency crime was related to DeFi. This rise has been attributed to a combination of developer incompetence and non-existent or poorly enforced regulations.<ref>{{cite news |last1=Chavez-Dreyfuss |first1=Gertrude |title=Cryptocurrency Crime Declines But 'DeFi' Fraud Soars: CipherTrace |url=https://www.insurancejournal.com/news/national/2021/05/14/613928.htm |access-date=28 October 2021 |work=Insurance Journal |agency=Reuters |date=14 May 2021}}</ref><ref>{{cite news |last1=Davis |first1=Griffin |title=DeFi, Crypto Expansion Puts US at Risk of More Ransomware Attacks? |url=https://www.techtimes.com/articles/266652/20211014/defi-crypto-expansion-puts-risk-more-ransomware-attacks-new-study.htm |access-date=28 October 2021 |work=Tech Times |date=14 October 2021 |language=en}}</ref><ref name=combs>{{cite news |last1=Combs |first1=Veronica |title=Don't get rugged: DeFi scams go from zero to $129 million in a year to become top financial hack |url=https://www.techrepublic.com/article/dont-get-rugged-defi-scams-go-from-zero-to-129-million-in-a-year-to-become-top-financial-hack/ |archiveurl=https://web.archive.org/web/20210827094330/https://www.techrepublic.com/article/dont-get-rugged-defi-scams-go-from-zero-to-129-million-in-a-year-to-become-top-financial-hack/| archivedate=27 August 2021 |access-date=7 May 2023 |work=TechRepublic |date=24 August 2021 |language=en}}</ref> Theft from DeFi can come from either external hackers stealing from vulnerable projects, or "rug pulls",<ref>{{Cite book|last1=Cernera|first1=F.|last2=La Morgia|first2=M.|last3=Mei|first3=A.|last4=Sassi|first4=F.|title=32nd USENIX Security Symposium (USENIX Security 23) |chapter=Token Spammers, Rug Pulls, and Sniper Bots: An Analysis of the Ecosystem of Tokens in Ethereum and in the Binance Smart Chain (BNB} |date=August 2023|chapter-url=https://www.usenix.org/system/files/usenixsecurity23-cernera.pdf}}</ref> where the developers and influencers promote a project and then take the money, as a form of [[pump-and-dump]].<ref name=combs/>
In 2021, half of cryptocurrency crime was related to DeFi. This rise has been attributed to a combination of developer incompetence and non-existent or poorly enforced regulations.<ref>{{cite news |last1=Chavez-Dreyfuss |first1=Gertrude |title=Cryptocurrency Crime Declines But 'DeFi' Fraud Soars: CipherTrace |url=https://www.insurancejournal.com/news/national/2021/05/14/613928.htm |access-date=28 October 2021 |work=Insurance Journal |agency=Reuters |date=14 May 2021 |archive-date=28 October 2021 |archive-url=https://web.archive.org/web/20211028211606/https://www.insurancejournal.com/news/national/2021/05/14/613928.htm |url-status=live }}</ref><ref>{{cite news |last1=Davis |first1=Griffin |title=DeFi, Crypto Expansion Puts US at Risk of More Ransomware Attacks? |url=https://www.techtimes.com/articles/266652/20211014/defi-crypto-expansion-puts-risk-more-ransomware-attacks-new-study.htm |access-date=28 October 2021 |work=Tech Times |date=14 October 2021 |language=en |archive-date=28 October 2021 |archive-url=https://web.archive.org/web/20211028211606/https://www.techtimes.com/articles/266652/20211014/defi-crypto-expansion-puts-risk-more-ransomware-attacks-new-study.htm |url-status=live }}</ref><ref name=combs>{{cite news |last1=Combs |first1=Veronica |title=Don't get rugged: DeFi scams go from zero to $129 million in a year to become top financial hack |url=https://www.techrepublic.com/article/dont-get-rugged-defi-scams-go-from-zero-to-129-million-in-a-year-to-become-top-financial-hack/ |archiveurl=https://web.archive.org/web/20210827094330/https://www.techrepublic.com/article/dont-get-rugged-defi-scams-go-from-zero-to-129-million-in-a-year-to-become-top-financial-hack/| archivedate=27 August 2021 |access-date=7 May 2023 |work=TechRepublic |date=24 August 2021 |language=en}}</ref> Theft from DeFi can come from either external hackers stealing from vulnerable projects, or "rug pulls",<ref>{{Cite book|last1=Cernera|first1=F.|last2=La Morgia|first2=M.|last3=Mei|first3=A.|last4=Sassi|first4=F.|title=32nd USENIX Security Symposium (USENIX Security 23)|chapter=Token Spammers, Rug Pulls, and Sniper Bots: An Analysis of the Ecosystem of Tokens in Ethereum and in the Binance Smart Chain (BNB)|date=August 2023|chapter-url=https://www.usenix.org/system/files/usenixsecurity23-cernera.pdf|access-date=12 September 2023|archive-date=11 October 2023|archive-url=https://web.archive.org/web/20231011111054/https://www.usenix.org/system/files/usenixsecurity23-cernera.pdf|url-status=live}}</ref> where the developers and influencers promote a project and then take the money, as a form of [[pump-and-dump]].<ref name=combs/>


== Regulation ==
== Regulation ==
In October 2021, the [[Financial Action Task Force|FATF]] included DeFi in the guidance for crypto service providers, making the authority's aim to regulate this type of asset.<ref>{{Cite web |date=28 October 2021 |title=Updated Guidance for a Risk-Based Approach to Virtual Assets and Virtual Asset Service Providers |url=https://www.fatf-gafi.org/content/fatf-gafi/en/publications/Fatfrecommendations/Guidance-rba-virtual-assets-2021.html |url-status=live |archive-url=https://web.archive.org/web/20230131193628/https://www.fatf-gafi.org/content/fatf-gafi/en/publications/Fatfrecommendations/Guidance-rba-virtual-assets-2021.html |archive-date=31 January 2023 |access-date=28 February 2023 |website=FATF}}</ref><ref>{{Cite journal |last1=Barbereau |first1=Tom |last2=Bodó |first2=Balázs |date=2023-07-01 |title=Beyond financial regulation of crypto-asset wallet software: In search of secondary liability |journal=Computer Law & Security Review |language=en |volume=49 |pages=105829 |doi=10.1016/j.clsr.2023.105829 |s2cid=258733922 |issn=0267-3649|doi-access=free }}</ref> They are expecting each individual country to determine if individuals involved in DeFi can be considered a virtual asset provider and be subjected to the FATF's guidelines.<ref>{{Cite web |title=VASPs (Virtual Asset Service Providers): What are they? {{!}} Notabene |url=https://notabene.id/crypto-travel-rule-101/vasps-virtual-asset-service-providers |access-date=2022-08-24 |website=notabene.id |language=en}}</ref>
In October 2021, the [[Financial Action Task Force|FATF]] included DeFi in the guidance for crypto service providers, making the authority's aim to regulate this type of asset.They are expecting each individual country to determine if individuals involved in DeFi can be considered a virtual asset provider and be subjected to the FATF's guidelines. <ref>{{Cite web |date=28 October 2021 |title=Updated Guidance for a Risk-Based Approach to Virtual Assets and Virtual Asset Service Providers |url=https://www.fatf-gafi.org/content/fatf-gafi/en/publications/Fatfrecommendations/Guidance-rba-virtual-assets-2021.html |url-status=live |archive-url=https://web.archive.org/web/20230131193628/https://www.fatf-gafi.org/content/fatf-gafi/en/publications/Fatfrecommendations/Guidance-rba-virtual-assets-2021.html |archive-date=31 January 2023 |access-date=28 February 2023 |website=FATF}}</ref><ref>{{Cite journal |last1=Barbereau |first1=Tom |last2=Bodó |first2=Balázs |date=2023-07-01 |title=Beyond financial regulation of crypto-asset wallet software: In search of secondary liability |journal=Computer Law & Security Review |language=en |volume=49 |pages=105829 |doi=10.1016/j.clsr.2023.105829 |issn=0267-3649 |s2cid=258733922 |doi-access=free}}</ref>


== See also ==
== See also ==

Latest revision as of 19:06, 22 November 2024

Decentralized finance (often stylized as DeFi) provides financial instruments and services through smart contracts on a programmable, permissionless blockchain. This approach reduces the need for intermediaries such as brokerages, exchanges, or banks.[1] DeFi platforms enable users to lend or borrow funds, speculate on asset price movements using derivatives, trade cryptocurrencies, insure against risks, and earn interest in savings-like accounts.[2] The DeFi ecosystem is built on a layered architecture and highly composable building blocks.[3] While some applications offer high interest rates,[2] they carry high risks.[4] Coding errors and hacks are a common challenge in DeFi.[5][2]

History

[edit]
Multi-layered Architecture of the DeFi Stack

Decentralized exchanges (abbreviated DEXs) are alternative payment ecosystems that use new protocols for financial transactions. They emerged within decentralized finance (DeFi),[3] a sector of blockchain technology and fintech.[6]

Centralized exchanges (CEXs), DEXs and DEX aggregators are all built on a multi-layered DeFi architecture, with each layer serving a well-defined purpose.[3] (See Figure: Multi-layered Architecture of the DeFi Stack).

While they share common components of the first four layers, such as the Settlement layer, Asset layer, Protocol layer and Application layer, DEX aggregators have an additional component or Aggregator layer, which allows them to connect and interact with other DEXs via smart contracts.

The Ethereum blockchain popularized smart contracts, which are the basis of DeFi, in 2017. Other blockchains have since implemented smart contracts.

MakerDAO is a prominent lending DeFi platform based on a stablecoin that was established in 2017.[7][8] It allows users to borrow DAI, a token pegged to the US dollar. Through a set of smart contracts that govern the loan, repayment, and liquidation processes, MakerDAO aims to maintain the stable value of DAI in a decentralized and autonomous manner.[9][10]

In June 2020, Compound Finance, a decentralized finance protocol enabling users to lend or borrow cryptocurrency assets and which provides typical interest payments to lenders, started rewarding lenders and borrowers with a cryptocurrency called Comp. This token, which is used for running Compound, can also be traded on cryptocurrency exchanges. Other platforms followed suit, leading to stacked investment opportunities known as "yield farming" or "liquidity mining", where speculators shift cryptocurrency assets between pools in a platform and between platforms to maximize their total yield, which includes not only interest and fees but also the value of additional tokens received as rewards.[11]

In July 2020, The Washington Post described decentralized finance techniques and the risks involved.[11] In September 2020, Bloomberg said that DeFi made up two-thirds of the cryptocurrency market in terms of price changes and that DeFi collateral levels had reached $9 billion.[12] Ethereum saw a rise in developers during 2020 due to the increased interest in DeFi.[13]

DeFi has attracted venture capitalists such as Andreessen Horowitz[4] and Michael Novogratz.[14]

The Economist regarded the future of digital finance in 2022 as a "three-way fight" between: Big Tech, such as Facebook with its digital wallet; "big rich countries" that have been testing their own digital currencies; and software developers "building all sorts of applications" to decentralize finance. Handling the risks presented by crypto-assets already valued at $2.5 trillion was a particular challenge for US regulators.[15]

Key characteristics

[edit]

DeFi revolves around decentralized applications, also known as DApps, that perform financial functions on distributed ledgers called blockchains, a technology that was made popular by Bitcoin and has since been adapted more broadly.[16][2] Rather than transactions being made through a centralized intermediary such as a cryptocurrency exchange or a traditional securities exchange, transactions are directly made between participants, mediated by smart contract programs.[4] These smart contracts, or DeFi protocols, typically run using open-source software that is built and maintained by a community of developers.[17]

DApps are typically accessed through a browser extension or application. For example, MetaMask allows users to directly interact with Ethereum through a digital wallet.[18][19] Many of these DApps can be linked to create complex financial services.[2] For example, stablecoin holders can lend assets such as USD Coin or DAI to a liquidity pool in a borrow/lending protocol such as Aave Protocol, and allow others to borrow those digital assets by depositing their own collateral.[20] The protocol automatically adjusts interest rates based on the demand for the asset.[4] Some DApps source external (off-chain) data, such as the price of an asset, through blockchain oracles.[21]

Additionally, Aave Protocol popularized "flash loans", which are uncollateralized loans of an arbitrary amount that are taken out and paid back within a single blockchain transaction.[22] Max Wolff is credited with the original invention of flash loans with the original implementation released in 2018 by Marble Protocol.[23][24] Many exploits of DeFi platforms have used flash loans to manipulate cryptocurrency spot prices.[25]

Another DeFi protocol is Uniswap, which is a decentralized exchange (DEX) set up to trade tokens issued on Ethereum. Rather than using a centralized exchange to fill orders, Uniswap pays users to form liquidity pools in exchange for a percentage of the fees collected from traders swapping tokens in and out of the liquidity pools. Because no centralized party runs Uniswap (the platform is governed by its users), and any development team can use the open-source software, there is no entity to check the identities of the people using the platform and meet KYC/AML regulations. As of 2020, it is not clear what position regulators will take on the legality of such platforms.[26]

Decentralized exchanges

[edit]

Decentralized exchanges (DEX) are a type of cryptocurrency exchange, which allow for either direct peer-to-peer, or Automated Market Maker (AMM) liquidity pool cryptocurrency transactions to take place without the need for an intermediary. The lack of an intermediary differentiates them from centralized exchanges (CEX).[citation needed]

In transactions made through decentralized exchanges, the typical third party entities which would normally oversee the security and transfer of assets (e.g. banks, stockbrokers, online payment gateways, government institutions, etc.) are substituted by a blockchain or distributed ledger. Some common methods of operation include the use of smart contracts or order book relaying – although many other variations are possible, with differing degrees of decentralization.[27][28]

Because traders on a decentralized exchange often do not need to transfer their assets to the exchange before executing a trade, decentralized exchanges reduce the risk of theft from hacking of exchanges,[29] but liquidity providers do need to transfer tokens to the decentralized exchange. Decentralized exchanges are also more anonymous than exchanges that implement know your customer (KYC) requirements.[30][31]

There are some signs that decentralized exchanges have been suffering from low trading volumes and reduced market liquidity.[32] The 0x project, a protocol for building decentralized exchanges with interchangeable liquidity, attempts to solve this issue.[33]

Disadvantages

[edit]

Due to a lack of KYC processes, and no way to revert a transaction, users are at a loss if they are ever hacked for their passwords or private keys.[34] Additionally, liquidity providers staking in DeFi protocols can suffer what is called an impermanent loss if, when withdrawn, the token pairs they have invested have altered in value ratio significantly.[35][36][37]

Although liquidity pool DEX are the most widely used, they may have some drawbacks. The most common problems of liquidity pool DEXes are market price impact, slippage, and front running.

Price impact occurs because of the AMM (Automated Market Makers) nature itself — the larger the deal, the stronger impact it has on the price. For example, if the constant product AMM is in use, every deal must keep the product xy = k constant, where x and y are quantities of two cryptocurrencies (or tokens) in the pool. Price impact is non-linear, so the larger is the input amount Δx, the lower is the final ratio y / x that gives an exchange price. The problem is mostly significant for relatively large deals versus the liquidity pool size.[38][better source needed]

Front running is a special type of attack in public blockchains when some participant (usually a miner) seeing an upcoming trading transaction puts his own transaction ahead (playing with a transaction fee for example), making the initial transaction less profitable or even reverted. To provide some protection against front running attacks, many DeFi exchanges offer a slippage tolerance option for end-users. This option serves as a safeguard, allowing users to set a limit on the worst acceptable price they are willing to accept from the time of transaction signing.[citation needed]

Degrees of decentralization

[edit]

A decentralized exchange can still have centralized components, whereby some control of the exchange is still in the hands of a central authority. The governance of a DeFi platform, typically as part of a Decentralized Autonomous Organization, is done through tokens that grant voting rights and are distributed amongst participants. However, the majority of these tokens are often held by few individuals and are rarely used to vote.[39]

In July 2018, the decentralized exchange Bancor was reportedly hacked and suffered a loss of $13.5M in assets before freezing funds.[40] In a Tweet, Charlie Lee, the creator of Litecoin spoke out and claimed an exchange cannot be decentralized if it can lose or freeze customer funds.[41]

Operators of decentralized exchanges can face legal consequences from government regulators. One example is the founder of EtherDelta, who in November 2018 settled charges with the U.S. Securities and Exchange Commission over operating an unregistered securities exchange.[42]

Errors and hacking

[edit]

Coding errors and hacks are common in DeFi.[5][2] Blockchain transactions are irreversible, which means that an incorrect or fraudulent DeFi transaction cannot be corrected easily.

The person or entity behind a DeFi protocol may be unknown and may disappear with investors' money.[17] Investor Michael Novogratz has described some DeFi protocols as "Ponzi-like".[14]

DeFi has been compared to the initial coin offering craze of 2017, part of a cryptocurrency bubble. Inexperienced investors are at particular risk of losing money because of the sophistication required to interact with DeFi platforms and the lack of any intermediary with customer support.[5][43] On the other hand, as the code for DeFi smart contracts is generally open-source software that can be copied to set up competing platforms, experienced users and user-created bots might create instabilities as funds shift between platforms which share the same code.[17] In addition, DeFi platforms might inadvertently provide incentives for cryptocurrency miners to destabilize the system.[44]

In 2021, half of cryptocurrency crime was related to DeFi. This rise has been attributed to a combination of developer incompetence and non-existent or poorly enforced regulations.[45][46][47] Theft from DeFi can come from either external hackers stealing from vulnerable projects, or "rug pulls",[48] where the developers and influencers promote a project and then take the money, as a form of pump-and-dump.[47]

Regulation

[edit]

In October 2021, the FATF included DeFi in the guidance for crypto service providers, making the authority's aim to regulate this type of asset.They are expecting each individual country to determine if individuals involved in DeFi can be considered a virtual asset provider and be subjected to the FATF's guidelines. [49][50]

See also

[edit]

References

[edit]
  1. ^ "IMF Working Papers Volume 2024 Issue 177: Programmability in Payment and Settlement (2024)". IMF eLibrary. doi:10.5089/9798400286452.001. Retrieved 28 August 2024.
  2. ^ a b c d e f "Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake". Bloomberg. 26 August 2020. Archived from the original on 15 October 2020. Retrieved 6 October 2020.
  3. ^ a b c Schär, Fabian (2021). "Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets" (PDF). Review. 103 (2). doi:10.20955/r.103.153-74. S2CID 234896331.
  4. ^ a b c d "'DeFi' movement promises high interest but high risk". Financial Times. 30 December 2019. Archived from the original on 21 May 2021. Retrieved 6 October 2020.
  5. ^ a b c "Boom or bust? Welcome to the freewheeling world of crypto lending". Reuters. 26 August 2020. Archived from the original on 29 September 2020. Retrieved 6 October 2020.
  6. ^ Zetzsche, Dirk A.; Arner, Douglas W.; Buckley, Ross P. (September 2020). "Decentralized Finance". Journal of Financial Regulation. 6 (20): 172–303. doi:10.1093/jfr/fjaa010. Archived from the original on 3 December 2021. Retrieved 25 February 2022.
  7. ^ "The Maker Protocol: MakerDAO's Multi-Collateral Dai (MCD) System". MakerDAO. Archived from the original on 24 June 2021. Retrieved 18 June 2021.
  8. ^ S. Bhat, A. Kahya, R. Kumar and B. Krishnamachari (2021) "Simulating the MakerDAO stablecoin", IEEE International Conference on Blockchain and Cryptocurrency, pp. 1-2. https://anrg.usc.edu/www/papers/makerdao.pdf Archived 1 January 2022 at the Wayback Machine
  9. ^ "Why 'DeFi' Utopia Would Be Finance Without Financiers: QuickTake". Bloomberg.com. 26 August 2020. Archived from the original on 15 October 2020. Retrieved 26 January 2021.
  10. ^ Stabile, Daniel T.; Prior, Kimberly A.; Hinkes, Andrew M. (31 July 2020). Digital Assets and Blockchain Technology: US Law and Regulation. Edward Elgar Publishing. ISBN 978-1-78990-744-5.
  11. ^ a b "What's 'Yield Farming'? (And How Do You Grow Crypto?)". The Washington Post. 31 July 2020. Archived from the original on 11 October 2023. Retrieved 5 October 2020.
  12. ^ "Crypto Is Beating Gold as 2020's Top Asset So Far". Bloomberg. 22 September 2020. Archived from the original on 3 October 2020. Retrieved 5 October 2020.
  13. ^ "Coders Flock Back to Crypto Projects With Prices Surging Again". Bloomberg.com. 10 December 2020. Archived from the original on 19 April 2022. Retrieved 28 December 2020.
  14. ^ a b "Novogratz Plows Ahead In DeFi Amid the 'Gamifying' of Crypto". Bloomberg. 29 September 2020. Archived from the original on 9 January 2021. Retrieved 6 October 2020.
  15. ^ Rachana Shanbhogue (2021) "A three-way fight to shape the future of digital finance has begun Archived 14 January 2022 at the Wayback Machine", The Economist: The World Ahead 2022, 8 November. Accessed 6 January 2022
  16. ^ Decentralized Finance (DeFi): An Emergent Alternative Financial Architecture. Archived 20 April 2021 at the Wayback Machine Regulation of Financial Institutions eJournal. Social Science Research Network (SSRN). Accessed 20 April 2021.
  17. ^ a b c "Crypto Exchange Gets Millions After Copy-Paste of a Rival's Code". Bloomberg. 11 September 2020. Archived from the original on 24 February 2021. Retrieved 6 October 2020.
  18. ^ Schroeder, Stan (2 September 2020). "Crypto wallet MetaMask finally launches on iOS and Android, and it supports Apple Pay". Mashable. Archived from the original on 2 September 2020. Retrieved 15 December 2020.
  19. ^ "MetaMask's Blockchain Mobile App Opens Doors For Next-Level Web". Bloomberg.com. 2 September 2020. Archived from the original on 12 May 2022. Retrieved 12 December 2020.
  20. ^ Wilson, Tom (26 August 2020). "Boom or bust? Welcome to the freewheeling world of crypto lending". Reuters. Archived from the original on 17 April 2021. Retrieved 8 April 2021.
  21. ^ Orcutt, Mike. "Blockchain smart contracts are finally good for something in the real world". MIT Technology Review. Archived from the original on 18 May 2022. Retrieved 24 November 2021.
  22. ^ "Flash Loans Are Providing Instant Cash to Crypto Speculators". Bloomberg.com. 7 February 2021. Archived from the original on 21 February 2021. Retrieved 8 April 2021.
  23. ^ Rouse, Margaret (30 March 2023), "Flash Loan", Techopedia, Panama City, archived from the original on 30 March 2023
  24. ^ Marble Protocol (5 June 2018). "flash-lending". github.com. Marble Protocol via GitHub. Retrieved 27 August 2024.
  25. ^ Evans, Jon (18 February 2020). "DeFiance: billion dollar finance, million dollar hacks, and very little value". TechCrunch. Archived from the original on 1 December 2020. Retrieved 22 November 2020.
  26. ^ Kharif, Olga (16 October 2020). "DeFi Boom Makes Uniswap Most Sought-After Crypto Exchange". Bloomberg.com. Bloomberg. Archived from the original on 3 December 2021. Retrieved 7 November 2020.
  27. ^ Wong, Joon Ian (30 May 2018). "Coinbase bought a "decentralized" crypto exchange. How does that work?". Quartz. Archived from the original on 3 July 2019. Retrieved 3 December 2020.
  28. ^ "This 31-Year-Old Is Trying to Revolutionize Cryptocurrency Trading". Bloomberg.com. 28 September 2017. Archived from the original on 9 November 2019. Retrieved 3 December 2020.
  29. ^ Castellanos, Sara (6 March 2018). "Alexis Ohanian's VC Firm Invests in Crypto Trading Platform". Wall Street Journal. ISSN 0099-9660. Archived from the original on 9 November 2020. Retrieved 11 September 2018.
  30. ^ Sigalos, MacKenzie (30 November 2022). "Bitcoin Family is moving more than $1 million into decentralized exchanges after Sam Bankman-Fried's FTX disaster". CNBC. Archived from the original on 25 August 2023. Retrieved 25 August 2023.
  31. ^ Calcaterra, Craig; Kaal, Wulf (2021). Decentralization: Technology's Impact on Organizational and Societal Structure. De Gruyter. ISBN 978-3-11-067403-3. Archived from the original on 25 August 2023. Retrieved 25 August 2023.
  32. ^ Russolillo, Steven; Jeong, Eun-Young (16 July 2018). "Cryptocurrency Exchanges Are Getting Hacked Because It's Easy". Wall Street Journal. ISSN 0099-9660. Archived from the original on 11 September 2018. Retrieved 11 September 2018.
  33. ^ "0x lets any app be the Craigslist of cryptocurrency". TechCrunch. Archived from the original on 21 October 2020. Retrieved 24 November 2018.
  34. ^ "Bloomberg - Record Crypto Heist Raises the Appeal of a New Type of Exchange". Bloomberg. 30 January 2018. Archived from the original on 30 January 2018. Retrieved 17 November 2018.
  35. ^ Lewis, Rhian (2023). Understanding Decentralized Finance: How DeFi Is Changing the Future of Money. Kogan Page. p. 76. ISBN 978-1-3986-0938-9. Archived from the original on 24 August 2023. Retrieved 24 August 2023.
  36. ^ Ma, Winston; Huang, Ken (2022). Blockchain and Web3: Building the Cryptocurrency, Privacy, and Security Foundations of the Metaverse. John Wiley & Sons. ISBN 978-1-119-89110-9. Archived from the original on 24 August 2023. Retrieved 24 August 2023.
  37. ^ Arslanian, Henri (2022). The Book of Crypto: The Complete Guide to Understanding Bitcoin, Cryptocurrencies and Digital Assets. Springer Nature. pp. 306–307. ISBN 978-3-030-97951-5. Archived from the original on 24 August 2023. Retrieved 24 August 2023.
  38. ^ Jensen, Johannes Rude; Pourpouneh, Mohsen; Nielsen, Kurt; Ross, Omri (2021). "The Homogeneous Properties of Automated Market Makers". arXiv:2105.02782 [q-fin.TR].
  39. ^ Barbereau, Tom; Smethurst, Reilly; Papageorgiou, Orestis; Sedlmeir, Johannes; Fridgen, Gilbert (May 2023). "Decentralised Finance's timocratic governance: The distribution and exercise of tokenised voting rights". Technology in Society. 73: 102251. doi:10.1016/j.techsoc.2023.102251. S2CID 258245920.
  40. ^ Osborne, Charlie. "Another hack rocks cryptocurrency trading: Bancor loses $13.5 million". ZDNet. Archived from the original on 28 April 2019. Retrieved 13 December 2018.
  41. ^ "The crypto world's latest hack sees Bancor lose $23.5M". TechCrunch. 10 July 2018. Archived from the original on 10 July 2018. Retrieved 13 December 2018.
  42. ^ "SEC, EtherDelta founder settle charges over operating unregistered exchange". Reuters. Archived from the original on 8 November 2018. Retrieved 5 June 2018.
  43. ^ Braun, Alexander; Cohen, Lauren H.; Xu, Jiahua (May 2020). "fidentiaX: The Tradable Insurance Marketplace on Blockchain". Harvard Business School. Archived from the original on 27 January 2021. Retrieved 5 January 2021.
  44. ^ Yaish, Aviv; Tochner, Saar; Zohar, Aviv (12 July 2022). "Blockchain Stretching & Squeezing: Manipulating Time for Your Best Interest". Proceedings of the 23rd ACM Conference on Economics and Computation. EC '22. New York, NY, USA: Association for Computing Machinery. pp. 65–88. doi:10.1145/3490486.3538250. ISBN 978-1-4503-9150-4. S2CID 250497046.
  45. ^ Chavez-Dreyfuss, Gertrude (14 May 2021). "Cryptocurrency Crime Declines But 'DeFi' Fraud Soars: CipherTrace". Insurance Journal. Reuters. Archived from the original on 28 October 2021. Retrieved 28 October 2021.
  46. ^ Davis, Griffin (14 October 2021). "DeFi, Crypto Expansion Puts US at Risk of More Ransomware Attacks?". Tech Times. Archived from the original on 28 October 2021. Retrieved 28 October 2021.
  47. ^ a b Combs, Veronica (24 August 2021). "Don't get rugged: DeFi scams go from zero to $129 million in a year to become top financial hack". TechRepublic. Archived from the original on 27 August 2021. Retrieved 7 May 2023.
  48. ^ Cernera, F.; La Morgia, M.; Mei, A.; Sassi, F. (August 2023). "Token Spammers, Rug Pulls, and Sniper Bots: An Analysis of the Ecosystem of Tokens in Ethereum and in the Binance Smart Chain (BNB)" (PDF). 32nd USENIX Security Symposium (USENIX Security 23). Archived (PDF) from the original on 11 October 2023. Retrieved 12 September 2023.
  49. ^ "Updated Guidance for a Risk-Based Approach to Virtual Assets and Virtual Asset Service Providers". FATF. 28 October 2021. Archived from the original on 31 January 2023. Retrieved 28 February 2023.
  50. ^ Barbereau, Tom; Bodó, Balázs (1 July 2023). "Beyond financial regulation of crypto-asset wallet software: In search of secondary liability". Computer Law & Security Review. 49: 105829. doi:10.1016/j.clsr.2023.105829. ISSN 0267-3649. S2CID 258733922.