Misplaced Pages

Decentralized finance

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

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 . 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. The DeFi ecosystem is built on a layered architecture and highly composable building blocks. While some applications offer high interest rates , they carry high risks. Coding errors and hacks are a common challenge in DeFi.

#398601

51-433: Decentralized exchanges (abbreviated DEXs) are alternative payment ecosystems that use new protocols for financial transactions. They emerged within decentralized finance (DeFi), a sector of blockchain technology and fintech . Centralized exchanges (CEXs), DEXs and DEX aggregators are all built on a multi-layered DeFi architecture, with each layer serving a well-defined purpose. (See Figure: Multi-layered Architecture of

102-630: 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. In July 2018, the decentralized exchange Bancor was reportedly hacked and suffered a loss of $ 13.5M in assets before freezing funds. 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. Operators of decentralized exchanges can face legal consequences from government regulators. One example

153-627: 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. In July 2018, the decentralized exchange Bancor was reportedly hacked and suffered a loss of $ 13.5M in assets before freezing funds. 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. Operators of decentralized exchanges can face legal consequences from government regulators. One example

204-434: 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

255-584: A decentralized and autonomous manner. 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

306-489: A centralized intermediary such as a cryptocurrency exchange or a traditional securities exchange, transactions are directly made between participants, mediated by smart contract programs. These smart contracts, or DeFi protocols, typically run using open-source software that is built and maintained by a community of developers. DApps are typically accessed through a browser extension or application. For example, MetaMask allows users to directly interact with Ethereum through

357-412: A contract to automatically purchase bitcoins at a predetermined price, the fulfillment condition is based on the current exchange rate for the bitcoin; an off-chain oracle can constantly monitor the price to provide the triggering condition to the contract. Kustov and Selanteva list the following types of oracles: If an oracle relies on a single source of truth ( centralized ), that can lead to issues:

408-399: A digital wallet. Many of these DApps can be linked to create complex financial services. 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. The protocol automatically adjusts interest rates based on the demand for

459-626: 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. 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. 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

510-575: 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. 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. 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

561-619: A multi-layered DeFi architecture, with each layer serving a well-defined purpose. (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

SECTION 10

#1732852484399

612-471: 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. In July 2020, The Washington Post described decentralized finance techniques and the risks involved. 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. Ethereum saw

663-494: A rise in developers during 2020 due to the increased interest in DeFi. DeFi has attracted venture capitalists such as Andreessen Horowitz and Michael Novogratz . 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

714-408: 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. 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

765-407: 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. 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

816-412: A technology that was made popular by Bitcoin and has since been adapted more broadly. 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. These smart contracts, or DeFi protocols, typically run using open-source software that

867-429: 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

918-429: 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

969-615: Is a prominent lending DeFi platform based on a stablecoin that was established in 2017. 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. 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

1020-589: Is built and maintained by a community of developers. DApps are typically accessed through a browser extension or application. For example, MetaMask allows users to directly interact with Ethereum through a digital wallet. Many of these DApps can be linked to create complex financial services. 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. The protocol automatically adjusts interest rates based on

1071-522: Is built on a layered architecture and highly composable building blocks. While some applications offer high interest rates , they carry high risks. Coding errors and hacks are a common challenge in DeFi. Decentralized exchanges (abbreviated DEXs) are alternative payment ecosystems that use new protocols for financial transactions. They emerged within decentralized finance (DeFi), a sector of blockchain technology and fintech . Centralized exchanges (CEXs), DEXs and DEX aggregators are all built on

SECTION 20

#1732852484399

1122-453: Is mostly significant for relatively large deals versus the liquidity pool size. 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

1173-451: Is mostly significant for relatively large deals versus the liquidity pool size. 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

1224-612: 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. Coding errors and hacks are common in DeFi. 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. Investor Michael Novogratz has described some DeFi protocols as " Ponzi -like". DeFi has been compared to

1275-556: 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. Coding errors and hacks are common in DeFi. 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. Investor Michael Novogratz has described some DeFi protocols as " Ponzi -like". DeFi has been compared to

1326-523: 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. 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

1377-521: 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. 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

1428-482: 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

1479-436: 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

1530-482: 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

1581-546: The FATF's guidelines. Blockchain oracle A blockchain oracle is a third-party service for smart contracts . Oracles provide trusted information based on the outside-world sources to the on-blockchain smart contracts. An oracle typically encapsulates the real-world complexity outside of the blockchain. This provides different engineering advantages, chiefly that critical errors and potential points of failure are easier to mitigate off-chain than on-chain. For example, in

Decentralized finance - Misplaced Pages Continue

1632-554: The FATF's guidelines. Decentralized exchange 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 . 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. The DeFi ecosystem

1683-563: The asset. Some DApps source external (off-chain) data, such as the price of an asset, through blockchain oracles . 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. Max Wolff is credited with the original invention of flash loans with the original implementation released in 2018 by Marble Protocol. Many exploits of DeFi platforms have used flash loans to manipulate cryptocurrency spot prices. Another DeFi protocol

1734-403: 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. 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

1785-450: The data source can be hacked in a man-in-the-middle attack , or altered by its owner, in order to sway smart contracts. Decentralized oracles ( consensus oracles ) increase the reliability of the information provided to smart contracts by querying multiple data sources, thus distributing trust between participants. However, this does not achieve trustlessness , since oracles are not part of the main blockchain consensus, and thus not part of

1836-416: The decentralized exchange. Decentralized exchanges are also more anonymous than exchanges that implement know your customer (KYC) requirements. There are some signs that decentralized exchanges have been suffering from low trading volumes and reduced market liquidity . The 0x project , a protocol for building decentralized exchanges with interchangeable liquidity, attempts to solve this issue. Due to

1887-412: The decentralized exchange. Decentralized exchanges are also more anonymous than exchanges that implement know your customer (KYC) requirements. There are some signs that decentralized exchanges have been suffering from low trading volumes and reduced market liquidity . The 0x project , a protocol for building decentralized exchanges with interchangeable liquidity, attempts to solve this issue. Due to

1938-572: The demand for the asset. Some DApps source external (off-chain) data, such as the price of an asset, through blockchain oracles . 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. Max Wolff is credited with the original invention of flash loans with the original implementation released in 2018 by Marble Protocol. Many exploits of DeFi platforms have used flash loans to manipulate cryptocurrency spot prices. Another DeFi protocol

1989-449: The developers and influencers promote a project and then take the money, as a form of pump-and-dump . 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

2040-402: The developers and influencers promote a project and then take the money, as a form of pump-and-dump . 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

2091-561: 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. DeFi revolves around decentralized applications , also known as DApps, that perform financial functions on distributed ledgers called blockchains,

Decentralized finance - Misplaced Pages Continue

2142-459: The need for an intermediary. The lack of an intermediary differentiates them from centralized exchanges (CEX). 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

2193-458: The need for an intermediary. The lack of an intermediary differentiates them from centralized exchanges (CEX). 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

2244-448: 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. 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

2295-447: 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. 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

2346-403: The risks presented by crypto-assets already valued at $ 2.5 trillion was a particular challenge for US regulators. 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. Rather than transactions being made through

2397-434: The same code. In addition, DeFi platforms might inadvertently provide incentives for cryptocurrency miners to destabilize the system. 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. Theft from DeFi can come from either external hackers stealing from vulnerable projects, or "rug pulls", where

2448-428: The same code. In addition, DeFi platforms might inadvertently provide incentives for cryptocurrency miners to destabilize the system. 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. Theft from DeFi can come from either external hackers stealing from vulnerable projects, or "rug pulls", where

2499-412: The use of smart contracts or order book relaying – although many other variations are possible, with differing degrees of decentralization . 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 , but liquidity providers do need to transfer tokens to

2550-409: The use of smart contracts or order book relaying – although many other variations are possible, with differing degrees of decentralization . 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 , but liquidity providers do need to transfer tokens to

2601-546: The value of additional tokens received as rewards. In July 2020, The Washington Post described decentralized finance techniques and the risks involved. 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. Ethereum saw a rise in developers during 2020 due to the increased interest in DeFi. DeFi has attracted venture capitalists such as Andreessen Horowitz and Michael Novogratz . The Economist regarded

SECTION 50

#1732852484399
#398601