Curve - How to Add and Remove Liquidity | DeFi
Channel: Smart Contract Programmer
Date: 2021-05-28

This video explains how to code a Vyper smart contract to  deposit stable coins into Curve, remove stable coins for liquidity pool tokens and calculate how much stable coins are each LP shares worth.
 
Add / remove liquidity with Curve user interface 0:21
Code add liquidity 2:52
Get LP shares 5:42
Remove liquidity 6:02
Calculate value of shares 7:01
Test 9:23
Run mainnet fork 10:03

https://github.com/t4sk/defi-by-example

#DeFi #Curve #SmartContract #Ethereum #Vyper #スマートコントラクト

# References
Curve https://curve.fi/

Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com