Back to Course

1. Beginner Course

0% Complete
0/0 Steps
  1. 1. What are these cryptocurrencies?
  2. 2. Bitcoin - the story of a technological revolution
  3. 3. Satoshi Nakamoto, who is the creator of Bitcoin?
  4. 4. Vitaly Buterin – the creator of Ethereum
  5. 5. What is Blockchain, and how does it work?
  6. 6. What is an NFT token?
  7. 7. What is money?
  8. 8. Cryptocurrencies vs fiat money, which will win?
  9. 9. What is DeFi (Decentralized Finance)?
  10. 10. DeFi: opportunities, advantages and disadvantages of decentralized finance
  11. 11. What is an altcoin
  12. 12. Stablecoins - What they are?
  13. 13. Cryptocurrency wallet - what is it?
  14. 14. Why do we talk about bull and bear markets?
  15. 15. Security in the crypto market - what rules are worth following?
  16. 16. What is the seed phrase in cryptocurrencies?
  17. 17. Dogecoin and memecoin - what are they?
  18. 18. What is a Ponzi scheme?
  19. 19. What is Ethereum? 
  20. 20. What is a soft and hard fork?
  21. 21. Blockchain - examples of use
  22. 22. Is blockchain safe?
  23. 23. Smart Contracts - what are they?
  24. 24. Liquidity pools in the cryptocurrency market
  25. 25. What is cryptocurrency mining?
  26. 26. What is the mining difficulty?
  27. 27. Inflation and its effects on financial markets
  28. 28. What is compound interest, and how does it work?
  29. 29. Cryptocurrency portfolio diversification
  30. 30. Blockchain and NFT games - how to make money on them?
  31. 31. Decentralized dApps - what are they?
  32. 32. What is Proof of Work (PoW) and what is Proof of Stake (PoS)?
  33. 33. What is Proof of Burn (PoB)?
  34. 34. What is the Proof of Authority (PoA) consensus mechanism?
  35. 35. What is CBDC - central bank digital money?
  36. 36. What is Cryptocurrency Airdrop all about?
  37. 37. What are the types of blockchain networks?
  38. 38. Key differences between ICO, IEO and STO
  39. 39. What is IoT - the Internet of Things?
  40. 40. What is the difference between Circulating Supply and Total Supply?
  41. 41. Everything you need to know about gas fees in Ethereum!
  42. 42. The most important cryptocurrency acronyms/slang you need to know!
  43. 43. Halving Bitcoin - what is it, and how does it affect the price?
  44. 44. What is the Fear and Greed index for cryptocurrencies?
  45. 45. APR versus APY: what is the difference?
Lesson 23 of 45
In Progress

23. Smart Contracts – what are they?

Have you ever wondered what the smart contracts are? Today’s lesson will be dedicated to explaining in detail what smart contracts are. Interestingly, the idea of smart contracts is also used daily, which not many people have any idea about. What they are and what they are used for – today we will answer these questions.

Smart contracts – definition

Smart contracts are a computer program or protocol running on a blockchain network to create digital smart contracts. They consist of a code that defines entry and exit conditions. After meeting them, we get the specific results we wanted. Thanks to the fact that smart contracts operate based on blockchain technology, many people are able to benefit from their results, which are accurate, timely and, above all, resistant to third-party manipulation. 

Smart contracts are a powerful tool for automating many industries, not just cryptocurrencies or blockchain technology. Thanks to the fact that they are not controlled by a central authority, they are fully independent. What’s more, they are resistant to hacking attacks by individual cybercriminals. They increase efficiency, reduce costs and increase process throughput. They are very useful when we are talking about Bitcoin, Ethereum or modern technology.

How do they work?

At this point, we need to remind ourselves of the logic. As we have already mentioned, smart contracts are computer programs operating on blockchain technology. They use the following logical condition: “when a happens, perform action b”. One smart contract can meet many conditions, just like one application can use many smart contracts to operate.

Each developer can create their own smart contract in the programming language of their choice. Because the most popular network for their creation is Ethereum (Link: · Ethereum – what is it, how does it work, description of its native token ), no one will be surprised that the most popular language for their coding is Solidity. Once the smart contract is programmed, it needs to be deployed on a public blockchain. They can also be used for their purposes, e.g. profit multiplication. However, it is worth knowing that smart contracts precisely define the rules on how users can interact and contract with them. Everything, of course, depends on the ecosystem we use to create them.

What does such a smart contract look like? Here are some examples:

Condition 1: If the ordered goods arrive on time, pay the contractor the full amount.

Condition 2: If the ordered goods arrive one day late, pay the supplier 95% of the agreed amount.

Condition 3: If the user deposits 1 BTC of collateral in a certain contract, lend 50% of your collateral.

Condition 4: If the value of user’s collateral falls by 50%, then transfer give it to the lenders and automatically liquidate it.

Of course, everything is written based on an appropriate code, following prior agreement between the parties wishing to enter  into such a contract. At this stage, you have surely noticed that the purpose of smart contracts is to automate processes. Not only in the cryptocurrency industry, the Ethereum ecosystem or blockchain technology.

Smart contracts support dApps which, as you know from previous lessons, you can interact with without having any authorizations.

Advantages of contracts

Security – no failures. Smart contracts have a decentralized formula. There is also no intermediary that can be bribed or manipulated by one of the parties. 

Reliability – thanks to the coding language (Ethereum Solidity) and logic, they are incredibly efficient. We have a guarantee that the contract will be executed according to the agreed terms. 

Efficiency – no need for manual data entry. There is also no intermediary laboriously entering the necessary data for transactions. The whole process is fully automatic. 

Fairness – no privileges for any party to the contract. 

Disadvantages

One of the most serious disadvantages that exist with smart contracts is the inability to edit their content after saving the code on the blockchain. Once created, a smart contract cannot be corrected or upgraded.

Another is regulatory law. Contracts are not regulated by any legal standards.

History

Now for some historical trivia. Smart contracts were first introduced by Nick Szabo in 1994. According to him, the definition of smart contracts was: “a computerized transaction protocol that executes the terms of the contract.” As the popularity of digital assets grew, so did the popularity and demand for smart contracts. They wanted a tool that is tamper-proof and completely decentralized. In this way, they demand

The demand for this type of computer code has increased significantly. And with the popularity of Bitcoin and other cryptocurrencies – it has grown even more.

The use of smart contracts

We can use them to track and assign ownership rights to digital tokens on the blockchain network. Such a contract then programs specific functions into the tokens, e.g. insurance (utility token in dApp`s) or even capital security (security token).

DeFi – in decentralized finance, contracts are used to create traditional financial products and services, e.g. storing user funds, creating financial markets, asset management.

Play2Earn Games. Contracts make the actions in a game immune to manipulation by its users. Moreover, smart contracts distribute the loot gained by randomness and guarantee players an equal chance of winning. 

NFT – in this case, contracts provide a fair model of their distribution.

Do smart contracts have any limitations?

Yes. And the answer will be surprising, their limitation is blockchains. Blockchains are not connected to the outside world. As a result, contracts do not communicate externally to, for example, confirm the occurrence of some events in the real world. They also do not have access to all the calculation data. Without a connection to reality, contracts do not use 100% of their potential.

Considering the above, developers are working on the evolution of the blockchain. Programmable smart contracts that can connect to the real-world outside the blockchain are already being developed. They use extended input and output algorithms to do so.

Another solution that I`m sure has come to mind is to use the oracles. With these, blockchains are connected to legacy systems and smart contracts. While maintaining the security and reliability of the underlying blockchain.

Summary

We want to believe that in the near future, smart contracts will become an integral part of our lives. Of course, before that happens, we have a long way to go and many problems to overcome.