Flash Swap Ex

A comprehensive guide to flash swap in Uniswap V2 - The lesson covers how to set up a flash swap in Uniswap V2, including how to determine the correct input parameters for a swap and how to create a callback function for the contract. The lesson also demonstrates how to perform a flash swap on the UniSwap V2 pair contract.

Solidity Developer

Uniswap V2

1. Flash Swap Math
A detailed explanation of the flash swap fee on Uniswap V2. The lesson covers understanding the flash swap fee equation, applying it to different flash swap examples, and deriving the flash swap fee equation using two equations. Duration: 9min
2. Flash Swap Contract Call
A simple explanation of flash swaps on Uniswap V2 - This lesson details how Uniswap V2 allows users to borrow tokens and repay them in the same transaction, and explains the steps of a flash swap. It also shows how a smart contract can borrow tokens from a Uniswap V2 pool and then repay the tokens back to the pool. Duration: 2min
3. Flash Swap Code Walk
A comprehensive guide to UniswapV2Pair.sol flash swaps - This lesson explores the core function behind flash swaps within UniswapV2Pair.sol. It delves into the function inputs, the process of calling external smart contracts, and the necessary conditions for successful flash swap execution. Duration: 1min
4. Flash Swap Ex
A comprehensive guide to flash swap in Uniswap V2 - The lesson covers how to set up a flash swap in Uniswap V2, including how to determine the correct input parameters for a swap and how to create a callback function for the contract. The lesson also demonstrates how to perform a flash swap on the UniSwap V2 pair contract. Duration: 7min
5. Flash Swap Ex Sol
A comprehensive guide to Uniswap V2 flash swaps. The lesson covers the mechanics of flash swaps, demonstrating how they work by writing and testing a Solidity smart contract that borrows 1 million DAI for a flash swap. Duration: 7min

Course Overview

About the course

What you'll learn

How to use Uniswap v2 dex and contracts

Interacting with the Uniswap v2 router and factory

How to create Uniswap v2 liquidity pools

How to add liquidity to Uniswap v2 pools

Swaps, flash swaps, flash swap arbitrage, and time-weighted average price (TWAP)

Course Description

Who is this course for?

  • Advanced smart contract engineers
  • Web3 developers
  • Smart Contract Security researchers

Potential Careers

Security researcher

$49,999 - $120,000 (avg. salary)

Smart Contract Auditor

$100,000 - $200,000 (avg. salary)

Smart Contract Engineer

$100,000 - $150,000 (avg. salary)

Web3 developer

$60,000 - $150,000 (avg. salary)

Web3 Developer Relations

$85,000 - $125,000 (avg. salary)

Meet your instructors

Tasuku Nakamura

Tasuku Nakamura

Founder at smartcontract.engineer

Smart contract engineer and educator.

Last updated on October 9, 2024

Testimonials

Students Reviews

Read what our students have to say about this course.

Chainlink

Chainlink

Chainlink

Gustavo Gonzalez

Gustavo Gonzalez

Solutions Engineer at OpenZeppelin

Francesco Andreoli

Francesco Andreoli

Lead Devrel at Metamask

Albert Hu

Albert Hu

DeForm Founding Engineer

Radek

Radek

Senior Developer Advocate at Ceramic

Boidushya

Boidushya

WalletConnect

Idris

Idris

Developer Relations Engineer at Axelar