Monday, June 21, 2021

Dialogue with Haipo Yang: Bull Market, Frequent Theft, the Landscape of Public Chains and the Future of DeFi | ChainCatcher

Introduction

Haipo Yang is an early Bitcoin investor and a veteran in this industry. With deep insights into Bitcoin, Ethereum, and even the crypto market as a whole, he used to lead the code deployment of ViaBTC Pool. As the founder of CoinEx, he has steered the team from Bitcoin-related business to the trading market, whose abundant good practices are worthy of reference by many other insiders. In this in-depth interview with ChainCatcher, Yang talked about many subjects such as the status quo of Bitcoin, Musk and the crypto market, DeFi innovation, and the landscape of public chains, which may provide you with some enlightenment.

https://preview.redd.it/xa3e3nwzel671.png?width=563&format=png&auto=webp&s=5c67d93fda4a30a6b089b17ddb30cf4d552877c7

ChainCatcher: After the slump on May 19, the market is growing to be stable. As a veteran, which stage do you think the crypto market is in? Is the bull market over?

Haipo Yang: I think we are still in the middle of the bull market, which is gradually stabilizing and bouncing up. In particular, there is no obvious decline in the market heat, the number of new entrants, or funds. Given the time cycle, it is too early to talk about the end of the bull market.

ChainCatcher: Musk is the most controversial figure in the uptrend. Some believe that the animal coin hustle and his comments on Bitcoin’s energy consumption contribute greatly to the market fluctuations. What do you think of that remark?

Haipo Yang: Musk is an idealist with a keen sense of virtual things as can be seen from his entrepreneurial experience. His position and global influence undoubtedly play a big role in the popularization of the crypto market.

The animal coin craze has little to do with Musk, who chose Dogecoin mainly because it is more decentralized. It is a wrong presumption, though prevailing, that Bitcoin has value while Dogecoin does not. The value of digital currencies depends on market consensus. Early Bitcoin holders including Musk have a prejudice against other cryptos. But for new entrants, Bitcoin is just one of the cryptos, and everyone should probe into the cryptos they favor.

ChainCatcher: Earlier before, BitMEX founder indictated the growing likelihood of Ethereum surpassing Bitcoin. As an early advocate of Bitcoin, how do you see the future value of both?

Haipo Yang: Ethereum will inevitably surpass Bitcoin in the long run.

On one hand, the two communities are completely different in positioning, dynamics, and users. Bitcoin’s only source of value lies in faith, which has now evolved into a religion. Although having brought a demographic dividend in the early days, it is of little use except for hoarding and speculation. That means Bitcoin can easily be replaced over time. Dogecoin comes as a vivid example. It created a new religion, and its users are far more active than those of Bitcoin. Ethereum’s value resides in being used. Unfortunately, Bitcoin failed to seize the opportunity of scaling; otherwise, Bitcoin would probably become a prevailing payment method in the world. In comparison, Ethereum is more open to scaling solutions. L2 and Ethereum 2.0 may seem somewhat inferior at the moment, but at least they can solve some problems.

On the other hand, BSC has already overtaken Bitcoin in terms of usage value, the number of users, and the trading volume. If BSC is further developed and optimized, a large number of users will move to other public chains of BSC, which will make Ethereum less competitive to some extent. As Zhou Hongyi, the co-founder, chairman and CEO of the Internet security company Qihoo 360, put forward about a decade ago, only those winning over the underdogs could win in the end. Pinduoduo’s success was strong evidence. Blockchain by nature is also an Internet product, and what matters the most is the scale effect. The core competitiveness must be built on a massive user base. Ethereum can only support tens or hundreds of thousands of users, which undermines its potential.

How to balance between scaling and decentralization has always been a major issue, and the landscape of public chains will vary greatly.

ChainCatcher: But many institutions heavily invest in Bitcoin, and their words and deeds are what general investors will weigh when making decisions. How will the capital impact the market?

Haipo Yang: These institutions are just part of the market players and cannot determine the market trend. But it is undeniable that they can bring more influence during the bull run and will attract more to invest in the market.

ChainCatcher: Binance and BSC are big winners in the bull market, and their development path seems to be a useful reference for CoinEx and CoinEx Smart Chain (CSC). But their DApps saw frequent theft incidents due to code issues. Are there any hidden rules?

Haipo Yang: First of all, I need to make clear that it is not theft, but reasonable utilization of rules by hackers or probably the project developers themselves. The biggest problem is with the developers who have created the immature rules. Instead of respecting the market and fully considering the market volatility, they only wanted to push up the total value locked (TVL) quickly, resulting in low staking. In case of a black swan event or manipulation, such DApps will become vulnerable to attack.

ChainCatcher: You used to position CoinEx as a broker and an investment bank, instead of an exchange. What’s the consideration behind the orientation?

Haipo Yang: Traditional transactions play a negligible role in the traditional financial market, but things are totally different in the crypto industry since all the business of teh industry, be it in the upstream, midstream or the downstream, is handled by exchanges. In this case, exchanges play a similar role to traditional financial brokers. But unlike stock exchanges that have all the transaction objects, crypto exchanges allow users to list tokens without permission. In this sense, a crypto exchange is more like an investment bank. So we prefer to position CoinEx as a broker and an investment bank rather than an exchange.

But crypto exchanges differ a lot from each other. Staying committed to the orientation and original intention, we become more aware of what we are going to do.

Take asset differentiation strategies for example. The specific assets included in the portfolios by exchanges determine the short-term and long-term goals of the exchange. Some prefer cryptos that stimulate the trading volume in the short run, at the cost of the exchanges’ reputation or even users’ interest. By doing so, these exchanges could hardly maximize, or even jeopardize, their long-term value. Biased toward long-term development, we welcome projects that can thrive in a long period, which is also an important criterion for our project screening.

Another example to illustrate my point is the project and market differentiation strategies. The products you offer determine the market segment you focus on. Cryptos were born to be global, and each country has its policies, language, and user habits. That requires us to weigh options of operation within a limited time, resulting in market differentiation. For the time being, as a global exchange, CoinEx is dedicated to serving users across the world, and to this end, we need to make strenuous efforts.

ChainCatcher: What are the goals and vision of CSC?

Haipo Yang: We started to work on CSC two years ago, and have made many attempts in this process. But it was not until the beginning of this year that we decided to shift to a smart contract chain. The development of DeFi for the past two years has convinced us that blockchain will develop into an underlying decentralized general-purpose platform based on the smart contract chain.

There are many problems as well. Ethereum suffers serious performance drawbacks due to the extreme extent of decentralization, and users are discouraged by the excessive transaction fees, leaving other alternatives some room for development. A typical example is BSC, yet still, it is too centralized due to the PoA adopted. To promote the performance and transaction processing capacity of the block, CoinEx may sacrifice decentralization a bit in exchange for the compatibility with Ethereum. So we adopt the PoS, a good balance between decentralization and efficiency. Simply put, CSC benchmarks against BSC, yet is made more decentralized with many improvements on the basis of BSC.

ChainCatcher: What will CSC do with its ecosystem?

Haipo Yang: CSC is committed to creating the infrastructure of DeFi, and thus needs to make two major attempts. First, we will give incentives and formulate policies for the ecosystem. Second, CeFi and DeFi are different from each other, so we will help more new projects start from scratch, develop and thrive on CSC, instead of just serving the old projects migrated from the Ethereum ecosystem. Although these new projects rely on the CSC ecosystem, we will never take CSC the duplicate of the Bitcoin or Ethereum ecosystem, whether in terms of assets or users, and neither will we blindly pursue the TVL.

In general, CSC will not be defined as Layer 2 of Ethereum. Instead of introducing the ecosystem and asset projects of Ethereum, it will function as an independent, novice-friendly, open and free ecosystem.

ChainCatcher: Developers have always been an important part of ecosystem construction. What will the CSC Foundation do to attract and empower developers?

Haipo Yang: CSC has launched an ecological support fund to empower developers with some plans and capital, but will not engage too much in the development, governance, decision making, and code auditing of the projects. For new developers, in particular, we hope to create a more fair and open battlefield on CSC. Users are of equal importance, since they are the key to the prosperity of a public chain’s ecosystem. The good news is that we have accumulated a large user base in the business of the mining pool, exchange and wallet.

ChainCatcher: Across the crypto trading market, derivatives have long been chased after by all the market players. Yet among the numerous derivatives trading exchanges that emerged in 2018, only a few have survived to this date. What are the reasons in your opinion?

Haipo Yang: There are several factors.

Firstly, derivatives are oriented to a limited group of users, unlike spot trading that seizes the majority of users.

Secondly, the user life cycle of derivatives is relatively short as most users end up with losses due to excessive leverage.

Thirdly, many derivatives focus on community operation instead of innovation, which makes them short-lived. Indeed, the past few years have seen some good exchanges engaging in derivatives, but in the bull market with the industry continuously expanding, new users tend to choose spot trading exchanges rather than derivatives exchanges. So we can see derivatives exchanges such as FTX have started to shift business to spot trading, which is a sensible choice to satisfy market demands.

Last but not the least, some spot trading exchanges are also making inroads into the field of derivatives trading. A typical example is Binance, whose traffic of spot trading facilitates user diversion and conversion, and it will encroach on the derivatives trading market someday.

In general, the derivatives market in the crypto industry has become fully-fledged at the moment. Be it for futures or options or any other product, the market is already on a par with traditional finance, and as a result, we can hardly find more advanced innovations in products.

ChainCatcher: But major venture capital institutions still concentrate their efforts on the derivatives segment of the DeFi market.

Haipo Yang: DEX is the most important application of DeFi. It first entered the spotlight of the industry as early as 2013, but it was not made a reality until the birth of Uniswap that popularized AMM to enable permissionless token listing and solve issues of token listing and circulation for long-tail assets. By contrast, derivatives mainly focus on top assets such as Bitcoin and Ethereum, not long-tail assets, so neither permissionless token listing nor decentralization is required. The decentralization of derivatives does not bring benefits of decentralization, but instead exposes the disadvantages such as poor liquidity and slow transactions. That’s why I consider the derivative DEX unnecessary.

ChainCatcher: Exactly. Ironically, many exchanges are launching their NFT platforms recently. Do you think they’re just following suit blindly?

Haipo Yang: Absolutely yes. But that’s just my point of view. As I once mentioned on Weibo, the biggest problem of NFT lies in the fact that it does not require blockchain. NFT just keeps accounts via blockchain, and it is essentially centralized because it still needs centralized institutions to endorse the ownership of the NFT. In reality, many NFTs launched by exchanges are similar to the previous post-coin cards and artworks, and such exchanges did not fare well in the end.

Still, NFT has its value in a narrow sense, and can solve problems for a small group of people. Specifically, Uniswap V3 applies NFT. But it has nothing to do with blockchain if we take it a big industry.

ChainCatcher: Many people consider it necessary to combine NFT with DeFi. What stage of development do you think DeFi is currently in?

Haipo Yang: I think DeFi is blowing bubbles at this moment, but that does not affect my recognition of its value. It is just like a completely open and free experimental field, which has nurtured many innovative features and projects and enjoys great potential. Among them, the most revolutionary innovation is DEX, followed by lending. As we can see, many projects are initially launched on decentralized exchanges, which contrast with centralized exchanges that seem to list tokens passively following DEX.

ChainCatcher: What could cause the bubble to burst?

Haipo Yang: Any bubble or cycle is a Ponzi scheme in a sense. New users create a bull market, so the one and only reason for the bubble burst is the exhausted inflow of new users.

ChainCatcher: The institutional form of DAO has been extensively discussed amid the prosperity brought about by DeFi. There are also many DAOs in China. What do you think of DAO’s value and innovation?

Haipo Yang: To be honest, I am skeptical about the way DAO is organized because the complete decentralized governance means nothing but developers’ irresponsibility. As I have observed, many DAOs have two obvious problems:

First, users seldom get involved; neither do they want to. Second, DAOs fail to make effective, valuable decisions. In fact, developers’ more involvement in governance and rule-making does not go against decentralization, because it is the operation of the entire blockchain, not the governance or development, that needs to be decentralized.


Why Do We See Great Potential In CHIA?

Since the birth of blockchain in 2009, a variety of consensus mechanisms appeared. The consensus mechanism is the soul of Blockchain. The evolution of the consensus mechanism has witnessed the iteration of the cryptocurrency market. This article will analyze in detail the three mainstream consensus mechanism: PoW(Proof of Work) , PoS(Proof of Stake)and PoST (Proof of Space and Time) and the characteristics and the respective projects.

This article also explains why Chia (PoST) has huge potential in the future.

POW

POW is the first consensus mechanism to be applied. Satoshi Nakamoto has used the POW mechanism to make Bitcoin run stably for more than ten years. This is currently the most stable and secure consensus mechanism and the consensus algorithm with the largest computing power in the entire network.

The hash function is used in PoW. For example, the hash function SHA256 is used in Bitcoin. The basic logic: Input random value n into hash function h(), resulting an output h(n). However, if n is flipped by a single bit, it will cause a significant change in output.

In other words, if we’re given the output of the hash function h(n), there’s no feasible way to figure out what the input was. The only way to find a solution to that problem is trying all possible combinations. This way achieves the proofs of work.

The POW algorithm requires users to perform some time-consuming and complex calculations, and the answers can be quickly validated by the service party.

The POW algorithm guarantees the security of the Bitcoin network, but reduces the scalability of Bitcoin. The TPS is too low to process large-scale commercial transactions, and the application scenario is too limited. Bitcoin has extremely high security costs and consumes power. Secure physical systems cannot be shared, and the expansion of consensus is hindered as a result of the monopoly of power resources in POW and ASIC mining machines.

POW Tokens:BTC,BCH,BSV

POS

With the advent of ETH2.0, ETH will also officially shift from the PoW to the PoS mechanism. The shift is inevitable. Only the PoS consensus mechanism can enable the expansion of the ecosystem and realize large-scale commercial applications.

The principle of PoS: in the PoS consensus mechanism, there are no miners, but the verifier still exists. To become a verifier, you need to hold a certain quantity of holdings in the associated cryptocurrency. Similar to the shareholding system, whoever owns more “shares” will have more say and also the right to generate blocks in proportion to to the quantity of the holdings.

The advantages and disadvantages of PoS are obvious. The ecological advantage is considered to be the main advantage, which means that there is no need to consume huge amounts of electricity to secure the Blockchain; it does not need to compete in computing power. The maintenance cost is largely reduced. A large number of nodes will participate in the network. The increasing validators will speed up the block confirmation speed and thus the transaction speed.However, the PoS consensus mechanism will cause the network to be centralized, and the validators may start acting maliciously and carry out a 51% attack.

PoS:ETH、EOS

PoST

If PoW is currently the consensus algorithm with the largest computing power, PoST is the algorithm with the largest potential audience in the world. By allocating unused hard drive space for storage space, everyone can participate in mining.

PoST uses a consensus mechanism by combining proof of space and proof of time. It uses spare hard drive space and a verifiable delay function VDF to implement the mining process. A large number of external attacks can be eliminated.

POW requires a large number of ASIC mining equipment, while PoST only requires hard drive, and the threshold for participation is lowered, which is more friendly to retail miners around the world. PoST resolves the trust and integrity problem of the blockchain network at a lower cost, with almost no electricity resources consumed. PoST, as a trusted ecology that can be shared, is very friendly to the development of ecological applications.

https://preview.redd.it/ogw2qextyk671.png?width=900&format=png&auto=webp&s=fe977cd792ff72402dedb5fe11ac195cd6a49db5

PoST: Chia(XCH)

We have discussed about features and characteristics of POW, POS and PoST consensus above, now let’s take a closer look at why Chia will have more potential in the future, and we will also take a look at the current state of Chia, as well as technical advantages.

As well-known to all, a healthy growth of the consensus-mechanism is dependent on the developing of applications on the eco-system, the PoW consensus mainly serves for BTC, its functions are not adequate for commercial applications; The future of PoS consensus is based on ETH, which is a well-developed network, but the competition is fierce; PoST, on the opposite, is still at its early stage and has newest technology, it has great potential for development. PoST consensus is the most optimal for developers and investors, and Chia, is the best bridge to the PoST race track.

Now let me introduce Chia project briefly:

Chia crypto currency was started by the founder of BitTorrent, Bram Cohen, the core team members include: Ryan Singer — CEO and co-founder of the biggest Bitcoin exchange Tradehill Inc; Krzysztof Pietrzak — Cryptography expert, assistance professor at Austrian Association for Science and Technology (IST); Elizabeth Stark: staff at Stanford and Yales, researching on P2P technology, privacy, open-source software and media, and an active contributor to Bitcoin community, consultant at startup companies in cryptocurrency, distributed technology and AI.

Chia has received investment from leading institutions including Naval Ravikant,A16Z、Greylock、True Ventures、MetaStable、Greylock Partners, Danhua Capital, Dcm、Slow Ventures、Stillmark、Galaxy investment group.

Chia team and investors behind have solid backgrounds, as the spokesperson of PoST consensus and first project which created its own programming language: Chialisp, Chia’s technological advantages are not difficult to be noticed.

1. Advantages of PoST (Proofs of Space and Time)

•Safe, Proofs of space can prevent attacks: Delay function used in Proofs of times can effectively avoid malicious attacks such as spam, DDoS, email, 51 attacks, etc.

•Energy saving, environment-friendly: hard drive use relatively less electricity, low dependence on energy.

•Lower the threshold for participation, accessible for everyone: Everybody can hold one vote as long as they participate by possessing hard drive.

•More decentralized, Anti-ASIC: Avoided monopoly of professional mining equipment, by handing the right over to every miner, the computing power is more dispersed and decentralized.

2. Chia introduced a brand-new blockchain programming language — Chialisp, it’s powerful, easy to audit and safe.

Chialisp is an excellent developing environment for blockchain smart transactions, it unlocks the features promised by cryptocurrencies, such as security, transparency and easy-to-use. This is a type of programming language that can facilitate smart contract transactions even better, at this moment, it supports smart contract transactions such as atomic swap, authorized payee, recoverable wallet, multi-signature wallet and prize-limit wallet.

The most important feature and the biggest advantage of Chialisp is that it not only keeps the “UTXO model”, but also adds in regular functions of “Ethereum Solidity model”, to enable more power functions:

•Chialisp simplifies UTXO format, only contains main input, puzzle hash and quantity;

•Transactions occurs simultaneously on Chialisp, not sequently.

•Signatures are fulfilled using BLS, BLS is a format which is non-interactive aggregatable, and the aggregation can always be completed.

•This type of language has no side-effect. Therefore, the requests and part of the requests can be implemented in a more general and better way compared to the taproot proposal introduced by Bitcoin.

•The requirements of the solutions (scriptsigs) for all puzzles (called scriptpubkey in Bitcoin) will be shown in its return value.

•Chialisp is a turing complete language, the quick implementation is much more simpler than Solidity of Ethereum.

•Chialisp language possesses the necessary primitive languages used in the calculation of token ID, and the token can declare its own ID, which supports explicit self-reference, and therefore avoids the use of self-generated program Quine.

Furthermore, Chia provides programming tricks to expand more functions, by using these tricks, developers can flexibly expand and deploy new features without requiring opcode.

3.Global sharing, new projects can enjoy consensus strength of the entire network

The new projects developed on Chia mainnet can enjoy the same hash power as the whole Chia network and the same package of underlying plot, and therefore the equal amount of hash-power resources as Chia network. This advantage can be found in Chia only, not in BTC or ETH, by sharing hash-power resources, Chia achieves the convergence of a broader consensus.

Chia is currently at the early-stage of dividend period, which is the right time to enter for the miners, developers and investors; The hashrate in Chia network has reached 23.8 EiP, it can meet the demands of construction and expansion of new projects. Chia’s own technical advantages can also enable it to quickly expand its territory in the blockchain ecology. The construction of the Chia eco-system is an urgent matter for Chia.

Therefore, Sirius Labs’ members initiated the Hackathon platform, for holding global online Hackathon events based on POC consensus, Sirius Labs will grant $500,000 to prize pool, and each winning team will receive a financial reward up to $100,000! In addition, Sirius Labs has designed one series of technical training camps, together with the technical team, to instruct how to program and develop. The winning teams will receive not on start-up capital, but also will have access to incubation service from top institutions in blockchain industry, which will help them start project roadshows worldwide.

Sirius Labs is headquartered in Oslo, Norway and focused on Blockchain investment and incubation. The team members come from the United States, Norway, France, the United Kingdom, Australia, Japan, Singapore and other regions.


Sat Sucker with LNURL-p

Build a Sat Sucker with LNURL-p (father&son Lightning project):

BEWARE: Do not feed the Sat Sucker after 00:00

LNURL-p

lnurl-pay allows bitcoin lightning-network payments to be sent to a static link/QR. This extension include webhooks, to trigger events on payment

How to make LNURLp

Make reusable lnurl-pay links with Linbits (tutorial):

https://youtu.be/WZpK4xfGcuY

https://lnbits.com

Supported Lightning wallets

  • Wallet of Satoshi
  • Blue Wallet

Sat Sucker


Sat Sucker Swindle

Swindle: Sat Sucker with LNURL-p

📷

Build a Sat Sucker with LNURL-p (father&son Lightning project):

BEWARE: Do not feed the Sat Sucker after 00:00

LNURL-p

lnurl-pay allows bitcoin lightning-network payments to be sent to a static link/QR. This extension include webhooks, to trigger events on payment

How to make LNURLp

Make reusable lnurl-pay links with Linbits (tutorial):

https://youtu.be/WZpK4xfGcuY

https://lnbits.com

Supported Lightning wallets

  • Wallet of Satoshi
  • Blue Wallet

https://preview.redd.it/x7n39tsoyk671.jpg?width=759&format=pjpg&auto=webp&s=deae6f785df647cab569518e69283a9514b2c641


Sunday, June 20, 2021

What is forcing large companies to invest in Bitcoin now

https://preview.redd.it/o4peakfg4k671.jpg?width=1465&format=pjpg&auto=webp&s=bed580451cac93f06843d62d1227d513ff464617

As cryptocurrencies increasingly become mainstream, more and more analytical publications are being recorded, which indicate that institutional investors, as well as large companies, own and acquire Bitcoins.

According to a study by the London-based company Nickel Digital, there are now more than 20 companies that have invested more than six billion USD in bitcoin. analysts of this company found out that seven such companies bought bitcoins 2 years ago, and the remaining ones did it this year.

Why do large funds and companies acquire cryptocurrency? According to the experts of this London-based company, this is largely a forced policy. One of the main reasons is the action of many central banks. Their monetary policy is such that it leads to the depreciation of the fiat currencies in which they previously invested their funds.

Of course, bitcoin is a high-risk asset, and recent events in the crypto market have shown all this once again. However, this does not frighten large companies and funds to invest in it. Apparently, they believe that the risks are quite acceptable and bitcoin will not fall below a certain mark.

Another reason for this behavior is that bitcoin itself, or rather its monetary policy, is completely clear and transparent. The emission is equal to 21 million, the emission is reduced. No one will release new bitcoins to the market, and in this regard, it is more predictable than fiat currencies or other crypto assets.

According to analysts, this leads to the fact that bitcoin is perceived as a system that is not just predictable, but also profitable for investment. The big companies were also pushed to such actions by the fact that too much stuffing of fiats leads to the fact that they devalue even more, and there are no guarantees that this process will slow down.

The inflationary policies of the Fed and other central banks are forcing large companies to look for other assets, in particular bitcoin, as an alternative to fiat. As they include bitcoin in their investment portfolios, this further builds trust in it, and other financial market players join them.

If this trend continues, it may lead to the fact that the volatility of bitcoin will sharply decrease and it will no longer depend on the statements of individuals, such as Elon Musk. Experts predict that the number of large companies that will purchase bitcoin for their portfolios may grow by 3 times.

This will serve as an impetus for an even greater introduction of the leading cryptocurrency asset into the global financial system. Perhaps bitcoin will become the digital gold, as many crypto-enthusiasts assume. But most likely this process will last for several years. In addition, do not forget that many states are introducing their own digital coins, and will pursue a policy of deterring cryptocurrencies.

Official site: https://coinmarketrate.com/


What is DeFi?

I talk to several friends who have been investing in crypto some of them have been doing it for years. Imagine my surprise when they asked me "What's DeFi?" when I started to talk about DeFi. So here I am trying to do my best to explain DeFi.

TRDL: At the bottom

DeFi: what it is and how it works

The term “Decentralized Finance” (DeFi) covers financial services carried out on a blockchain. DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman’s terms.

So, for DeFi to work, it needs a decentralized infrastructure to run on. This is where the Ethereum blockchain comes into play. The Ethereum blockchain is a DIY platform for decentralized applications (DApps).

Most DeFi protocols operate on the Ethereum blockchain, although a few have migrated to other competing blockchains to enjoy greater speed and scalability.DeFi: what it is and how it works

The term “Decentralized Finance” (DeFi) covers financial services carried out on a blockchain. DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman’s terms.

So, for DeFi to work, it needs a decentralized infrastructure to run on. This is where the Ethereum blockchain comes into play. The Ethereum blockchain is a DIY platform for decentralized applications (DApps).

DeFi’s top applications — and notable protocols 

Now, that we know what DeFi is, let’s look at some of its notable applications.

1. Decentralized exchanges (DEXs)

Decentralized exchanges are exchanges that operate without an intermediary. They are not as popular as their centralized counterparts. 

With DEXs, users can connect directly with one another to buy and sell cryptocurrencies in a trustless environment. Assets traded under DEXs are never held in an escrow or third party wallet, as is done with centralized exchanges. Some top DEXs include Uniswap, Curve and SushiSwap. 

Centralized exchanges, on the other hand, are trading platforms operated by a central authority. Platforms like Binance and Coinbase are popular examples of centralized exchanges. They are custodial in nature. In other words, the buyers and sellers trust the central authority to keep their digital assets safe.

2. Lending Platforms

DeFi proponents say the decentralized lending platforms are democratizing the lending ecosystem. These platforms use smart contracts in place of intermediaries like banks — allowing borrowers and lenders to participate in an open system. Lenders can earn interest on their crypto assets by loaning them out, while borrowers can access liquidity without selling off their assets. 

With the traditional financial system, you need to offer collateral before you can access loans from the bank. This is similar to what happens in DeFi. Borrowers have to over-collateralized their loans by offering assets more valuable than the loan value. Some of the top DeFi lending platforms include Maker, Compound, and Aave.

3. Prediction Markets

A prediction market allows participants to make bets on the outcomes of future events. These platforms function like traditional prediction markets — but with blockchain functionality, which eliminates intermediaries. Examples of DeFi prediction markets are Augur, Gnosis and FTX. Crypto powered prediction markets flourished during the 2020 U.S. presidential elections. Augur recorded a milestone volume of over $8 million. Other platforms like Polymarket and Predictit also saw significant election volumes.

4. Yield farming

Yield farming is the process of locking up cryptocurrencies in exchange for a reward. It’s the hottest new term in the DeFi space. Money markets Compound and Aave are two major platforms to farm DeFi yields. Yield farmers stake popular coins like ether, dai, tether and others.

DeFi benefits 

1. Permissionless

Traditional banks are expensive to run and bureaucratic in nature. They take too long to process transactions and have cut many people out of the financial system due to their stringent requirements. DeFi came to solve many of these issues. Here are some of its benefits.

DeFi opens everyone to the financial system irrespective of income, race, wealth, culture or geographic location. All a user needs is a mobile phone or computer with internet access.

There is a significant number of unbanked people globally. The World Bank estimated in 2018 that 20% of the world’s population lack access to banking services. One reason for this is that most of the unbanked lack much-needed know-your-customer (KYC) documents like state-issued I.D. cards.

Several DeFi platforms allow users to function without any of this. You can take out a Maker loan, for instance, without any identification or credit score.

2. Interest rates for investors

Beyond keeping your wealth like a savings account, DeFi also allows you to earn income. Platforms like Aave and Compound allow you to deposit assets and lend them out to borrowers. At an agreed-upon time, you get your interest and can plow your capital back into the system. 

Compound offers up to 4.3% interest on deposits from some tokens, while Aave is paying out as much as 5.73%. Compared to the 0.6% to 0.7% currently offered by traditional banks for savings accounts, it’s not difficult to see why some people are shifting their assets to DeFi. 

3. Control over your own finances

With DeFi platforms, you remain in control of your finances. While you have to deposit your funds into the platform, you decide what happens to them. Instead of trusting human intermediaries to qualify you for a loan or decide how to manage your investments, a smart contract does that.

No one can ban you from a DeFi protocol. The underlying smart contract is law, and it operates blindly. 

4. Heightened transparency

DeFi enables a greater level of openness and accessibility. Since most DeFi protocols are built on the blockchain — a public ledger — all activities are available to the public. Anyone can view transactions, but these accounts are not tied to anyone directly as is the case with traditional banks. Instead, accounts are pseudo-anonymous, listing only numerical addresses. Users with programming knowledge can also access most DeFi products’ source code to audit or build upon since they’re open source. Open-source codes are far more secure and of higher quality than proprietary software, thanks to community interaction.

DeFi drawbacks and security risks 

1. Security issues with smart contracts

Smart contracts form the backbone of any DeFi protocol. But they are susceptible to manipulation. 

By default, smart contracts are open-source. This design allows prospective users to review them before investing in the DeFi protocol. Most DeFi protocols give their smart contracts to security firms to audit. This is where the problem begins. It’s not unusual for humans to miss flaws in these contracts, which could be exploited in the future. 

Take The DAO, for example. The digital “Decentralized Autonomous Organization” was an investor-directed venture capital fund of sorts that launched in April 2016 and grew quickly to become the biggest crowdfunding platform, managing about $120 million. However, by June that same year, hackers found a vulnerability in the smart contract and stole about a third of its funds. They moved the funds into a “child DAO,” which had the same structure as the parent protocol. Users couldn’t access their funds for weeks, making this perhaps the largest hack in crowdfunding history.

There have been several refunds since then, allowing investors with residual DAO tokens to get some compensation. However, the incident sparked an awakening in the DeFi space. Now, developers who build protocols ensure that their smart contracts go through multiple audit rounds 

2. Data feed centralization

Blockchain protocols can’t access off-chain data. To remedy this, many of them use oracles — third-party services that provide access to external information. Oracles serve as bridges between blockchains and the outside world, relaying information to smart contracts for them to utilize. 

The major issue with oracles is creating a central point of trust into trustless and decentralized setups. This centrality provides a vulnerability for the entire smart contract. When an oracle broadcasts the wrong information, the consequences could be dire. 

Take the case of Synthetix — a DeFi asset issuance platform. On June 25, 2019, an oracle transmitted false price feed data to the platform’s smart contract. A user’s trading bot took advantage of this and inflated the user’s balance. This allowed the user to convert this balance to about 37 million Synthetic ETH (sETH) tokens (worth $70 million at the time). Synthetix confirmed that they reached out to the user, who agreed to reverse the transaction in exchange for an unspecified bug bounty. 

3. Bad actors

In September last year, the top crypto exchange KuCoin confirmed that it had suffered a hack that saw $150 million in bitcoin and ERC-20 tokens transferred from its hot wallets. Days after the event occurred, blockchain intelligence software Elliptic crunched the numbers and found that the exchange had actually lost about $281 million. 

The report added that the hackers had been laundering the funds through DeFi protocols Uniswap, Kyber Network and others. As Elliptic explained, many centralized exchanges had frozen the hackers’ accounts, preventing them from moving their funds. However, in DEXs, the hackers found the perfect conduits — platforms with no central authorities to freeze their funds.

TLDR: DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman's terms.


Which investments would be most depression/inflation resistant in the coming years?

Let's say it's a worst case scenario kind of situation where the US market isn't fully able to correct itself post covid and inflation gets worse causing the price of everything to skyrocket. If I don't trust the stock market or bitcoin to go up what's the safest thing to do with your money? I don't want to just let it evaporate in a bank if that happens and I'm not really sure how to secure my family in the event of a depression and record inflation. Any advice would be much appreciated.