1/5
To do the exercises in this course, we need to get clone this repo. And to do that, click on Code and then copy this URL. Inside the terminal type in: ```bash git clone ``` and then paste the repo. Once the repo is cloned into your computer, next CD into advanced-defi-2024. ```bash cd advanced-defi-2024 ``` The exercises are written in Foundry, so to do the exercises, we first need to install Foundry. If you have not done so, copy and paste this command to install Foundry: ```bash curl -L https://foundry.paradigm.xyz | bash foundryup ``` Now this command only works for Linux. Once Foundry is installed, let's do a quick check to make sure that the contracts which are used for the exercises compile. The contracts are located under a folder called Foundry, so say: ```bash cd foundry ``` And inside here we'll do a quick check by compiling the contract. ```bash forge build ``` And the contract compiled successfully. So, if you made it this far, congratulations, you are now ready to do the exercises.
A practical guide to setting up the environment for an advanced DeFi course. This lesson details how to clone the GitHub repository, install Foundry, and verify your setup by compiling a contract.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
AMM math for Curve Stableswap
How to calculate swap amount and liquidity
Curve Stableswap contracts
How to implement a swap function
How to implement the add and remove liquidity functions
How to quantify liquidity pools
How to control the flatness of the curve
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Last updated on November 27, 2024
Solidity Developer
Curve StableswapDuration: 14min
Duration: 32min
Duration: 26min
Duration: 23min
Duration: 20min
Duration: 23min
Course Overview
About the course
AMM math for Curve Stableswap
How to calculate swap amount and liquidity
Curve Stableswap contracts
How to implement a swap function
How to implement the add and remove liquidity functions
How to quantify liquidity pools
How to control the flatness of the curve
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Last updated on November 27, 2024
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar