"use client"; import Image from "next/image"; import Link from "next/link"; import type { NextPage } from "next"; import { useAccount } from "wagmi"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; import { Address } from "~~/components/scaffold-eth"; const Home: NextPage = () => { const { address: connectedAddress } = useAccount(); return ( <>

Welcome to Scaffold-ETH 2 (SpeedRunEthereum Challenge: Dex extension)

Connected Address:

SpeedRunEthereum Challenge: ⚖️ Build a DEX

challenge banner

This challenge will help you build/understand a simple decentralized exchange, with one token-pair (ERC20 BALLOONS ($BAL) and ETH). This repo is an updated version of the{" "} original tutorial {" "} and challenge repos before it. Please read the intro for a background on what we are building first!

🌟 The final deliverable is an app that allows users to seamlessly trade ERC20 BALLOONS ($BAL) with ETH in a decentralized manner. Users will be able to connect their wallets, view their token balances, and buy or sell their tokens according to a price formula! Submit the url on{" "} SpeedRunEthereum.com {" "} !

Tinker with your smart contract using the{" "} Debug Contracts {" "} tab.

Explore your local transactions with the{" "} Block Explorer {" "} tab.

); }; export default Home;