A journey through DeFi Smart Contracts with Ligo

Learn how to build DeFi smart contracts in Tezos using Ligo.

Here I want to share a series of blog posts, targeting developers who want to start building on decentralized finance smart contracts. Each implementation is accompanied by a blog post tutorial, a detailed code walkthrough that explains the inner workings of the application (both smart contracts and different clients).

These implementations can be used as templates or starter kits to bootstrap new applications, greatly increasing developer productivity at the start of new projects.

Getting started with Tezos

Learn how to perform basic operations in Tezos, an open-source platform, which addresses key barriers of adopting the blockchain technology.
This article is the first in a series of blog posts, targeting developers who want to start building on the Tezos blockchain. In this post, we will learn how to interact with Tezos.

Creating, Deploying, and Interacting with a Contract (Part 1)

Learn how to perform key operations on Tezos, including creating, testing, compiling, deploying, and interacting with smart contracts.
Specifically, we will develop a generic liquidity pool contract that will enable users to deposit and withdraw Tezos tokens ( tez ) without any restriction. In our example, user Alice will deposit 10 tez to the contract, and then user Bob will withdraw 5 tez without making a prior deposit.

A private liquidity pool (Part 2)

Learn how to modify a contract to allow withdrawals only from the addresses that have previously made deposits.
In this blog post, we will modify the v1-public-pool liquidity pool contract on Tezos. More specifically, we will create a private liquidity pool contract. It will only allow addresses that have previously deposited tez into the contract to withdraw the same amount.

Applying Interest in a Liquidity Pool Contract (Part 3)

Learn how to modify a contract for interest rates to be accrued depending on how many blocks have elapsed since the initial deposit.
In this blog post, we are going to change the way a liquidity pool contract works. The objective is to make a smart contract with the capacity to generate interest on its deposits

How to Integrate JavaScript with Smart Contracts and Run Unit Tests (Part 4)

With code samples, this tutorial demonstrates how to use Taquito β€” a TypeScript library β€” to compile, deploy, and test smart contracts.
This blog post explores the use of JavaScript to interact with smart contracts in Tezos. We will focus on Taquito β€” a tool equivalent to the web3.js library in Solidity β€” which allows us to call the contracts. With Taquito, we will show how to create a script for compiling smart contracts, activate an account using a faucet, deploy a smart contract, and perform unit tests on the smart contract.

More DeFi blog posts are coming soon…