👩💻 Web2 to Web3 🚀 - Week 1, Day 3: ENS, DEX, Identity, Inventory, Sybil
Web2 to Web3 Curriculum · 1 Aug 2025 · 49:14
Austin Griffith, Eda and Carlos use a wallet to interact with real Ethereum applications on day three of the Web2 to Web3 curriculum. They create a new MetaMask account, register an ENS name, and swap ETH for DAI on a decentralized exchange. The session shows how identity and inventory follow a user from app to app and why these services are all backed by smart contracts.
Speakers
Topics
From Web2 to Web3 Curriculum, hosted by BuidlGuidl.
Transcript
What's up? I'm Austin Griffith. I'm here with Carlos and Eda and we are recording day three of week one of becoming a power user in Ethereum and learning how to build on top of Ethereum. Today we're going to use our wallet to interface with some web 3 services and we're going to learn about identity and how it follows you. Your your identity and your inventory follow you from service to service. And also all of these services are backed by smart contracts and we'll get to smart contracts and how that all works. So I think the best place to start is if Eda creates a brand new account in her MetaMask and then I'll send some ETH to it and then Edeto registers an ENS address. Should we start with that? Go ahead and uh let me
set it up so you can share your screen. Go ahead and share your screen and just show us how we would create another address within our MetaMask that we've already set up. So last week we kind of set up a meta mask. We learned about our seed phrase. We learned about how to protect it, what levels of security we need for two different things. So this is just creating a new account within an existing MetaMask. Right? Given one seed phrase, you can create as many accounts as you want. And let's see what we got here. >> I've already got like four accounts here. And let's just create a new one.
And let's call it um since we're >> What are we going to call it? call it >> zoom >> zoomy >> not very creative >> uh but yeah okay so I am going to go to mainet right now and yeah I have my like different networks uh we had set like the uh test networks I have a couple of other ones as well here but um yeah so I have a new account just created two seconds called zoom >> and we are >> and if you Sorry. Go ahead. If you send me that account, I'll send you some eats so you don't have to pay for the swaps and stuff.
>> I'm just sending it to you from >> Okay. And I'm going to steal the screen back and I just want to show me slowly going through sending some ETH, right? Oh, sorry for my messy desktop. Geez. Geez. So, so when you want to send ETH, thankfully, thanks to things like EIP559, sending ETH has gotten pretty easy and smooth. like the gas the gas um um estimations are pretty good and gas is pretty smooth. Now and then there will be an NFT drop and gas will spike way up. Uh but uh if you remember from last week we talked a little bit about like basically gas is you spending a little bit of ETH to send or make some kind of transaction and you're kind of bidding
at some limited block space. So if it gets busy all of a sudden the bids go way up. But uh yeah, Eda, if you send me that address. Oh, I got it. I got it. There we go. So, notice that when she's sending me the address, it's this big this big old address thing. Let me let me show you. She sent me this right here, right? This AE9459. That's really hard to keep track of, right? At least we have these nice little like blocky previews so we can kind of have a little visual look about what these addresses look like. But handing these things around is kind of cumbersome, right? It's hard. Like imagine if you had to retype that or something. You would never want to do that. So we're going to get to ENS here
in a little bit where where we kind of give a name to an account and then it's easier to to refer to and to send around. But right now I just want to send a little ETH to this account, right? And I'm kind of looking at the gas tracker. Oh, gas went up, right? It went from 80 to 100. If we had put in a transaction right at 80, we'd be waiting right now for for that to get mined. So, I'm just going to open up my MetaMask here and hit send and paste in at his address and send like 02 ETH or something like that.
0.25. How about that? And normally I just hit next and hit send. I I don't usually have to look at the uh gas very closely, but let's just take a quick peek at it just to see. So, there's kind of like some different settings. Again, you're bidding to get your transaction through. You could bid a lower amount and that transaction will go through slower. You could bid a higher amount and it will cost more and the transaction will go through faster. But if we really look in here, it's basically setting us up at like 129, which is well above this this 92 that we're seeing here. So, this should go through right away. Actually, let's let's cool it down. Let's let's put it right at 91. It's saying, "Oh, that's not a good idea.
Let's let's try it." And it's just going to make the transaction take a little bit more time. And that's okay. Uh we can we can even speed it up. But there we go. So, that that's going to go into the MIM pool now. And all the miners are going to see that and they're going to greedily pick the best transactions that will make them the most money and mine those into the next block. So, we're just kind of like waiting for that gas to get down to 91. And if we uh wait a second here, and this still is to Oh, 75. Look at that. I got in way cheaper than they were. They were probably going to charge me eight bucks and I only paid five bucks for it. How about that? So, we got through the transaction went through. Hopefully, Eda, now you have
that. And we can go to a disinterested third party and we can hit reload and we can see sure enough Austin Griffith sent uh uh 2.5.25 25 ether to whoever 8894 is. Right. We can kind of see that as a from a third party. Uh so we know that that went through and I'll hand it off to you if you want to take over and we'll do we'll do some ENS registration. >> Yeah. That was a really fast transaction. >> Yeah. At low gas too. A really fast and uh efficient and cheap, right?
>> Yeah. H So it directly came to the account where on Ethereum mainet. So, um, yeah, if you're like on another network, you won't probably see it. So, just be sure to like have the correct mainet. Uh, and now I'm on ENS. So, this is like ENS.domains. And we're basically going to go to the app so that we have like a better name like Nick. Or um, something else >> kind of like DNS. I think Carlos, you hinted at kind of like explaining how DNS is similar to ENS. Do you want to speak to that?
>> Yeah, I mean um when you if you think about DNS um if you try to remember the IP of the server that you want to connect, it would be like super hard, right? Um so yeah. Um so this is the same thing. If I want to send like ETH to to Eda, if I have to remember her full address, it's going to be super hard. But instead of that he she has like something like edaith is going to be super easy to remember. So it's kind of the same thing like names to IPs or names to ethereum addresses right and it have like the same concepts like subdomains for example you can also have
when you have an ENS setup you can also have like uh you know game.aith for example. So a a lot of the same concepts apply also to ENS. >> Subdomains are really powerful. I use them for a lot of things. Like you can go to I think it's lol.atatg.e is my multisig.lol or uh there just like a handful of different accounts like secondary identities that are just like subdomains of my main identity. Speaking of that, do you have a Yeah, like punk wallet. Yep. Yeah. Yeah. Yep. I have punk.
Austin Griffith. Is my punk wallet. Do you have EDA? EDA. >> Someone else has EDA. I have EDA tweets. Like, but I missed EDA. >> And those three letter. >> Yeah, those are expensive. >> Yeah, you probably have to pay a couple thousand dollars for that if you want it. Now, I think that the the the price floor on threeletter ENS's is way up. >> Okay. So ENS is like a good way to put a name to an address so people can address you by an easy name instead of having to copy you paste uh a big address just like in DNS where it's like no you don't want to have IP addresses where it's 127.22 right you want to have you know Austin Griffith.com and go straight to
it. So let's register an address for our new account here and kind of create an identity around this new account whoever Zoom is. >> Yeah. So, I just wanted to show like when you log in, it will display a popup on your MetaMask and ask you which account you want to connect to. So, just zoom. Connecting. Just ask me to connect once again. >> Now, we're in the app. >> Yeah, we we talked about how MetaMask is security first, right? They want to be very careful about what information from your wallet they share with the app.
They don't even want the app to have your address until you explicitly say, "Okay, let's let's talk to this app." So, so that's what that extra like account selection is is like are you sure you want this website to even know your address and you say yes connected in and then and then we're connected in. >> So yeah, like it's just as if you're searching for like a domain name over here and we can actually show that eda. Someone else has it >> or maybe do I just write EDA? >> Oh no, I just have to write EDA, right? And then it will Okay. Yeah. So someone has a and you can kind of see until when they have it, who has it, etc. Um, but just to kind of show an example. So
yeah, let's let's register a name uh a creative name. >> I don't think our wallet is connected either. Like see in the top left where the I think you basically logged into your but see in the top left it doesn't show that it's connected. >> Usually there's a connect button within the app and when you hit that it prompts the wallet. Let's see what happens. Yes. Okay. Yeah. So, MetaMask there. Now, we're connected. Okay. So, two things have to happen there. You need to tell the app, I want to connect to my wallet, and you need to tell the wallet it's okay to connect in. And we just told the wallet it's okay, but we forgot to tell the app to connect. So, you're when you land on a web 3 app, you're looking for that connect button, and you connect in.
Okay. It in your wallet. And now we're logged in and we can see who we're logged in as. also like the >> the app only has like read access to your to your wallet, right? So, so it's don't worry because it's not going to steal your funds or anything if you are not signing anything. It's just like saying, okay, I give it like read access to this app. So, it can read basically my my address, right? It's the only thing that it can read. >> That's a great point. and your like your your pneumonic is is locked up in the app and your private key is locked up in the in not in the app in the Chrome extension, right? All of that sensitive data is locked up in the Chrome extension encrypted with that little password that we put in at the beginning. So, yes, like there's like
this nice like kind of big protective wall within this this Chrome extension and we're throwing transactions over the wall and then we're signing them and we're throwing them back, right? So the private key and none of that stuff is ever exposed. The only thing we're really exposing to the site is, hey, this is my address. And then whenever you want me to sign something, you kind of chuck it over the wall to the to the wallet. What are we going to name this thing? Zooi. Zooi. Zooi. Zooi web 3. Zooi Education. Zoom. Zooi. Uh, yeah. Zoo. We So Zoom is going to be taken, right? Zoom. Is definitely taken. What? What do we >> It's like What about web two to web three? Let's see if uh anybody has that one yet. I bet somebody
>> That's a good one actually. >> That's definitely like something someone squat on. Yep. Yep. >> Maybe like web two to web three developer. Is it too long? >> Sure. Let's go with that. >> Too long, but >> Yeah, but no one's going to have that. There we go. Here we go. Web two to web three developer. That's It's kind of long. I don't know. >> We could have like web three developer. >> Okay. This can take a long time. I can see you >> like maybe like web four. So we are ahead of time. Web four development.
>> Yeah. Yeah. Web I bet someone's squatting on web 4. >> Like waiting for to >> Yep. Yeah. Idk. I mean, no one's going to have that one. >> This one's available. Yeah. >> Uh what about web h? I don't know. I mean, it could just be anything. We could just do like a random random name generator, right? And just like get a name. Hold on. I'm just going to go randomly generate uh uh Oh, these are like weird. I want like like a character generator. Like I'm about to like to go on a quest.
Here we go. Oh man, these are good. H Sanford Stout. Look at this. Look at this. What do you think about Sanford Stout? I just went to a name generator and uh see see if that's see if that's taken. Just a just a random name. What what we're what we're hinting at here is civil resistance and how anyone can make There we go. Sanfordstout. Anybody can make an address.
>> That's a good one. Yeah. >> Yeah. And make an And now it looks like that it really it really like it already is taking on an identity. I'm already thinking of this this person's Sanford. All right. Now, we can register it for many years or just one year and it's a little bit more expensive, right? And the trade-off here is like, are you going to use his name a lot? Uh you can because you have to make a transaction every time you update it, right? So, you're going to have to pay some gas every time you want to renew this thing. So, you want to renew it for many years or just one. We probably just want one, right? We're just doing a demo. Yeah.
>> Yeah. Maybe Stanford. Sanford can get it afterward. >> Yeah, Sanford. Yeah, Sanford. It'll be all you. Yeah. >> And Sanford start. So, yeah. >> So, we can just get it for one year. It says the gas fee as well, but I think MetaMask will prompt us. Um >> Yep. Yeah. It should handle all that stuff for us. Yeah. Yeah. Me me diving into the gas menu and going to the advanced menu. I don't think we need to do that ever again until we're until we're talking about like >> front running or getting a transaction stuck and needing to speed it up, which maybe we'll run into that organically, but I think let's go for it. So, some some weird things happen here. I think there's even like a commit reveal.
There's some kind of game that you have to play here where when you request to register it, someone else could request it or I I don't remember. I don't I don't know the inner workings of the ENS platform, but there you you have to realize that like anybody can attack any of these things. So, you have to think of these things very adversarial adversarially. So, I don't know if someone is like could frontr run this, but there's this game that you have to play here. Go ahead and click to request to register and let's let's uh get get it rolling because it like there's like a delay that has to wait. Okay, so this is this is different than sending ETH, right? This is probably the first transaction we've seen on on this kind of web two to web3 curriculum where we're talking directly to a smart
contract and it looks a little bit different. If we go to that data tab, we can probably see that we're sending Yeah, we're calling the function. We're calling the commit function. So, we're going to do a commit reveal. We're going to call commit and we're going to send some information into this smart contract. More more this is more information than you need, but we're just really kind of picking picking away and looking at this stuff really from a high level. We're just using our wallet to talk to a smart contract. We're sending a transaction that says we would like to commit to registering Sanford Stout. And and once we do that, then there's like a delay and then we reveal.
So it's going to cost us $5. Uh I'm just assuming that gas is fine. Gas is at like 51 GUay. Super cheap right now. Let's let's send it. Let's see how it works. And if it gets if it gets hung up and the transaction takes extra time, we can uh we can show how to speed up a transaction. But thanks to EIP1559 that there's a lot of things that have caused the uh you know gas to be a lot more stable. So usually transactions go through. We'll see what happens here. >> Yeah. So yeah, as you mentioned, I think it's one minute we're going to kind of wait. It won't the waiting period won't even start until this transaction goes through. So, right now, we're just waiting for we've we've signed our
transaction. We've put it into the memp pool. We're waiting for a minor to pick it up. Let's let's speed it up. Let's let's go through it, right? Oh, yeah. Here it is on the block explorer. It still says it's going to take less than 45 seconds. We can probably just wait a little bit. Like, nothing has happened to have the gas spike. Well, if we scroll down, we can tell how much guay it's using, though. So, yeah, 71 guay. And the gas price is 61 GU right now. So, it's about to get mined like we should see and all of this like there's the commit function. You can get on Ether Scan and really like get in here and see what's happening. So, we're we're talking to this smart contract which is the ENS ETH registar controller. There it is. Success. We've we've set the first thing and I bet now
our little Yep. So, now we're waiting. And I don't know exactly what the game theory is here, but you have to like commit to the name and then if no one challenges it, then you reveal the name after a minute. And somehow that avoids some kind of griefing that I don't understand. Just assume that the smart contract nerds have figured out the game theory here. And we have to play this game to be able to to register our new name. Sanford. I've got a good feeling about Sanford >> now. Now we're just waiting.
>> I didn't know it was a name. >> Yeah. Yeah. It's It's better. I was saying like Jimmy something and that just sounded too American. I'm glad we went with Sanford. Sanford sounds like a man of class. Like like someone who would wear a bow tie on a Friday. What a dork. We're almost there. We've almost waited our minute. Hopefully someone named Sanford Stout is like on their computer somewhere in the world wanting to register their ENS name. They're like, "A dang, it's me."
>> Just this moment. Okay, we've waited our minutes. There it is. And we have a register button. So now we make our second transaction and we pay probably another $5. Whoa, this one's a little more expensive. Yep. So this one is probably what's happening here is we're probably getting an NFT and we're making more rights to the smart contract. So whenever you write something on chain, it's a lot more expensive. And so this one's probably changing some state. It's not just like a simple transaction, but here we here we go. Oh, it's even cheaper. Gas is going down. Let's send it.
>> Yeah. >> All right. So, we're waiting for that transaction to go through again. Same thing. Like we go look at it on Ether Scan. It should say, "Oh, it's not even it hasn't even figured out how long it's going to take yet. Oh, >> there we go. >> Figured it out. >> Yep. And so if we scroll down, do we see more? Uh what what what is this function calling? Probably reveal or something, right? Register with config.
And there's a secret there. And that secret is what we're is the reveal. Yep. Knots one, right? We can talk through the nons. I think we talked a little bit about nons and replay protection in the first, but your non is here and we can see this is non one. So it's basically your second transaction because it's zero indexed. >> So I guess like the reason that they are doing this commit reveal is because if not like people will like steal your ENS, right? Yes. like like they will see the transaction with your with your ENS name and they will maybe like send another transaction with a higher gas price, right? And they will like steal
your ENS from from you and that's why they need to do it this way. >> Interesting. So it's like front running ENS registration. You could just watch Vitalik's address and anytime he interfaces with his contract, you put his exact information in but at one higher guay and then you'll steal every name he tries to register. >> So the commit reveal kind of gives you a hook in on it and then you kind of reveal it later to get it back. Cool. >> And it's and it has to be the same address like whoever reveals the secret has to be the same address and it has to hash to whatever the commit was. And that lets you lock in the name. That's got to be it. Good call. Did you just look that up right now or did you know
that? >> No, no, no. I wasn't guessing. I don't know. >> Dope. No, I think I think that's right. Oh, yeah. And token ID. See, see, we minted a token. Uh, ENS is like one of the first NFTts, which is really interesting because it's like this non-f fungeible token before non-f fungeible tokens had the name non-f fungeible token. But it's it's sort of this token ID with this huge number that we own and we own that new token ID that goes to Sanford Sanford Stout. There we go. Okay. So now uh if we were to let's go look up let's let's copy and paste Sanfordstout.eth and paste it into Etherscan. So, if we were to just go to Ether Scan and ask it
who is Sanford Stout, it should be able to tell us that it's this address. Yes. Awesome. Which is really awesome. So, now if I were to pull up my uh let let me steal it for a second. If I were to pull up my wallet and type in Sanford Stout, look at this. So, this is this has nothing to do with the ENS website, right? I could be over on something else, right? I'm just opening up my wallet now. This is kind of showing how identity goes goes from service to service. Now if I type Sanford Stouteth.
Yes, there we go. There is our new and we can see it matches the the ENS. And if I send another 0.01 and hit send. There we go. So this time I didn't have to get some weird address. I can just remember Sanford's name is Sanford Stout. I'm like, "Oh, Sanford, let me send you some." Sanfordstouteth. Boom. I send it, boom, it's done. And there's no like copy and pasting and weird triple-checking of addresses. I kind of looked at the blocky a second to make sure, but it was a lot easier to send you ETH this time when you had a name rather than when you had uh the address. But we've only done two of the three transactions. So, we have one more transaction, and that's the reverse record. And and what the reverse record
allows you to do is if someone says this address is logging into my website, how do I look up what the name is for the address? So instead of going name to address, we want to go from address to name. And the way to do that is you basically it's nice. It's set your primary ENS name. ENS has done a really good job coaching through the user experience to the to here and you should be be able to pull down on that list and it should have Sanford like as the default on that list. Yep, there we go. Perfect. So you'll do that. Go ahead. >> So before doing this like if you sent money to like Stanford Stout it will come or like I'm I'm not exactly sure like after this step >> this step is doing the reverse record.
So, so right now basically I can send money to Sanford Stout and it'll totally work fine. Uh, it's the it's the reverse of if if I only know this user this uh account, right? This 0x8894 and I want to know who that goes to. This is sets that up. So, this is almost for like when you log into an app and they only know your address, they can go look up the name for that address and display it. And we'll see that when we go swap some some ETH in a second. Okay. Okay. So, I guess yeah, saving it. >> Save it. Yeah, let's do it. Nice.
And they even say something like this is your crossplatform web 3 name, right? It it's very like uh it says it back behind there. Yeah. So, another $23. So, what was it? Probably like >> about $60 to register this. 60 or $65. >> I think we paid something like that. >> So, kind of expensive, right? But remember, this isn't your name for one thing. This is your name for all of web three. This is every app that you go talk to from now on will know you are Sanford. >> And whenever anybody wants to send money to Sanford, they can just type in Sanford Stout and send it. Right.
>> And it's a lot easier. Yeah. Like instead of remembering this when you are like out and trying to send money to each other. And and another interesting thing here is I can register and point ENS addresses at lots of different uh I can point names at a lot of different addresses. But to do this specific action where you point some address to some name, it takes a transaction from that exact address. So if like you have a multi-IG that you want to have behind like I said earlier like a subdomain or something you you basically have to have that multisig make the transaction and that's just out of safety right you
wouldn't want someone to be able to spoof spoof someone else's name so the only way you can set the reverse record is to make a transaction from that exact account and it's got to be true right did it did it mine are we good I didn't get any we didn't get any feedback here welcome welcome to user experience on web three. Yeah, one minute ago we we see that it went through. Yep. Yep. Yep. >> Great. Great check there. Cool. So, so I've sent in twice and I've sent Okay. So, now we have our identity. We've registered an ENS name. We've talked to a smart contract. We've made a transaction. And now we're registered in the ENS registry as Sanford Stout. And now Sanford Stout can go use other
services within web 3. and his identity and reputation and inventory will follow him from sight to sight. I think he's a dude. I shouldn't be, you know, assuming, but I've just been calling Sanford a he. Whatever. Sanford, they Sanford is about to go swap some tokens, right? We're going to unis swap.org and we're going to swap ETH to a stable coin. Okay, so here we are. This is this is what a typical web 3 app looks like, right? There's some stuff going on, but the connect button is that most important, right? You're looking for that. Even a network, right? Now that we have L2s, you've got wallet connect, Coinbase, some other accounts, but we're just going to use MetaMask. We make sure we have our Zoom. We called him Zoom. We
should probably rename that to Sanford now that we've given it a name. >> Yeah. >> But Zoom is our Sanford account. Yep. And we connect it in. Now, look what happens. Oh, wow. Our name has followed us, right? No matter what app we go to, as soon as we log in, they're going to know we're Sanford Stout and that's going to show up, right? So, two completely disconnected services now can can use the same exact identity and that identity is going to follow you from place to place. Should we do a swap? Should we Should we make it happen? >> Do a swap >> maybe like 0.1 ETH. Yeah, go ahead.
Sorry. >> It gives us like the different opt right now, but you can select if you have multiple tokens. Um but yeah, let's let's select a token to swap it to. >> And all of these tokens, right? The the the the first if we think of Ethereum as an app store, right? The basically the the thing that we're using Ethereum for so far is just sending around value. But now if we think of it like an app store, the vest the the first killer app deployed on Ethereum is an ERC20 token, right? instead of to to create a decentralized currency. Before this, you had to like create an entire platform of peer-to-peer miners. Now, with Ethereum,
all of that substrate is taken care of for you. You can just deploy a smart contract that keeps track of everyone's balances, and you can create a decentralized currency in a couple of lines of code. And so any of these given currencies, D, USDC, USDT, WET, all they are is just a smart contract that's keeping track of who has what and a transfer function that lets Alice, you know, send some to Bob and it changes those those that mapping of who who owns what. So let's let's just swap to die, the the classic and and die is a stable coin and we should get in and talk about that a little bit more, but here we go.
So, so what's happening here is we're going to put in 0.1 ETH and we're going to get out 206 die. And when we're ready to pull the trigger, let's go for it. >> Yeah. It also gives us a gas estimation, but it will already appear. Oh, gives us again. >> Yep. And then when we hit confirm, notice it brings up that MetaMask, right? You you kind of work in the app for a little bit and then it sends it along to MetaMask. And we can kind of look at, okay, so it's going to cost us $32 in gas and then we're going to send in a total of $239 uh uh to go in, right? And we can confirm that and ship it. So >> the token, right, anyone can go ahead,
Carlos, go ahead. >> No, no. I was going to say that maybe we should like explain what UniS swap is or what a decentralized exchange is because people if they are just like watching this maybe they don't know what what we are doing because we talked about Coinbase the other day I think about where we we were talking about wallets about having like custodial wallet or custo wallet but we didn't talk about centralized exchanges or decentralized exchanges >> so maybe any of you could I do like introduction.
>> All right, here we go. Uh, okay. So, usually a centralized exchange just like just like our custodial versus our non-custodial wallets. Our custodial wallets were basically entries in a database, right? And our non-custodial wallets are like we have a seed phrase that can move things. So, a centralized exchange is basically like an order book system. It's a big database of who's willing to pay what for what tokens. And then a decentralized exchange is a smart contract that keeps reserves of both the tokens and allows you to swap between the two right in the smart contract. So there's no centralized point of failure with with a centralized exchange.
There's a database and there's all sorts of stuff that could get attacked or fall over. So, this is a really big uh kind of um it's a really big step for decentralization to figure out how to have a smart contract allow you to swap from tokens to ETH. And it does it in this really clever way where the smart contract itself holds reserves of both. So, so we just went and we swapped in a smart contract that held a whole bunch of Ethereum and a whole bunch of D and it holds them at the ratio that they're currently valued at. And as the price of Ethereum or uh uh changes, the price of D kind of adjusts and then there's basically bots that swap those and and
create it's called arbitrage, right? They they see that Ethereum is cheaper over on one exchange and they grab it there and then it's more expensive on this exchange and they sell it there, right? So, so there's these these reserves that are stored in the smart contract and there are bots that are trading those things to keep the reserves at the right ratio for the current price. And then when we want to come in, imagine it imagine it like a vending machine. We put we put a little ETH on the scale and the scale goes right and then we take off a little token and then the the scale evens again, right? And that amount we take off basically is like what they return to us. So that's that's a quick like quick and dirty. Uh in week three, we
will build a decentralized exchange and we will really look at the solidity code and we'll look at the price function and we'll understand how these reserves are backed by this like LP token that that is like your share of the reserves. Oh, by the way, those reserves uh you're you're earning a fee on those reserves, right? You you as the liquidity provider are incentivized to put your ETH in. So then when people swap back and forth, you earn a little fee. And that that also zooms in on the fact that this decentralized exchange is not run by any particular person. It's a smart contract that has a set of rules and anyone can provide liquidity. Anyone can provide both ETH and D at the right ratio and own a little bit of the liquidity and
therefore own a little bit of those fees that are coming back to them. So really really cool concept. Just want to like scrape the the surface there. Really really cool concept to go from if you wanted to swap tokens and ETH four years ago, you basically had to go to an order book system and sign a message and it goes to a centralized server and everyone else is going to this central website and that website could fall down if there's too much traffic to it. It could get hacked and someone could drain everything. The whole like custodial versus non-custodial. And now we have like a smart contract written that can handle that and like many many versions of this smart contract that has gotten better and more sophisticated and things like balancer where you can keep things at different ratios. Uh the new unis
swap does like this really cool uh uh like liquidity central liquidity it's efficiency right where since we we're holding reserves you can hold all your reserves in a certain range where you think people are going to be swapping and you can earn more fees. That's That's way too much though. We We're gone too far. We're too far into the decks. Hopefully that like shows a little bit though about the difference between a centralized exchange and a decentralized exchange and how you basically can make a decentralized exchange by just deploying a contract with the correct rules and loading it up with both of the tokens and letting people swap between the two using just the smart contract and nothing that can fall over and nothing that can get attacked.
>> Sorry for the long-winded uh >> Oh, great. Great. Yeah. Thank you. >> Okay. So, we swapped. Do we have some dye? >> And and and at this point, >> we can talk about uh so so the one thing I wanted to show is if you take Sanford Stout and you put it into like Zapper.fi. I want to show like another. So, we've seen Ether Scan, we've seen ENS, and we've seen UniS swap, and we've seen how our identity follows us. But go ahead and just put our identity. Let's not even connect our wallet. Let's just put our identity right into that search box.
And let's show how Sanford Stout's uh whole uh inventory follows them to this new site. Also, I >> think I have the right name wrong. Let me just check our name. Oops. Can I check over here? >> It's It's Yeah. Sanford Stout. So, it's not Stanford, it's Sanford, right? Yes. An Yeah. F. Yep. Yep. That's it. There it is. There we go. Okay. So, here is our character and our character has an inventory and that inventory like Zapper doesn't doesn't know who we are and doesn't give a about any of that stuff. The inventory is what he's
interested in. And here it is. We can see that we have $237 worth of ETH and we have $200 worth of dye. We don't have any NFTts yet, but they can kind of follow our history. So notice like this is a fourth like a fourth website we visited a a fourth decent or uh disinterested third party and this is an example of another just like web three site. You go here and you put in a name and it knows who you are and it knows your history and it knows it knows your inventory. So this really hammers home the idea that like your inventory and and your uh identity sort of follow you from place to place. And a secondary thing is identities can just be created.
We just invented Sanford Stout and now he he's gonna go like start interfacing with web 3. He's already swapped to some stable coins. Who knows what he's going to do next? Maybe go buy an NFT or something, right? So, uh, civil is very important because as we talk about these mechanisms that we're building or voting and one one one token or one vote, one human, it gets really really sticky here because we just created what looks like a human that isn't a human, right? And and so civil resistance is another thing in web 3 that is an unsolved problem that a lot of people are spending a lot of time thinking a lot about.
The other thing we should talk about is just like a stable coin, right? Yeah. The the fact that this is this is like it's just bad user experience. That that $237 of ETH that we hold is going to be worth either $200 or $260 in the next three hours. Like like it the price will fluctuate greatly over the next couple of days and it has recently, right? So, this this is really bad user experience. If if you provide a service to me and I send you a $100 worth of ETH and then tomorrow you look at your money and you only have $60 worth of ETH, it's kind of like a like a punch to the gut, right? Like when you
when you lose money like that, right? So, D is a stable coin. D is an ERC20 coin that's deployed to Ethereum that you can switch swap to. It's a standard ERC20, but it is pegged to the dollar. Tries to stay as close to the dollar as possible using some pretty uh advanced mechanisms. Right? If we if we wanted to look at it at a high level, and I can try to TLDDR it, but I'm not great at stable coins. Think think of uh the the price of something is basically like a supply and demand, right? If if the supply is high and the demand is low, the price is going to be low. If the supply is low and the demand is high, the price is going to be high. You know, economics 101. So, so the first
mechanism of keeping this coin stable is like a minting and burning mechanism where if there's if the price drops to let's say it's it's at 10002, right? So, it's a tiny bit above a dollar, right? So, what's going to happen when it's a tiny bit above the dollar? We want the price to go down a little bit. So, they're probably going to mint some more and increase the supply. And by increasing the supply, the price should go down a little bit. And then if the price is too low, we should be able to burn some, right? And what they'll do is they'll mint them and market sell them or burn them. Something like that. And again, total total handwavy explanation here. Go read how dye works because it's so cool. But then there's like a
secondary mechanism where if if burning it is still not causing the price to go up, then they start they have this second token called maker and the maker token is is then starting to to burn, right? So, and I think I think I totally left out the fact that to get dye, you don't usually swap. I mean, you can swap to it and that's easy, but the way to actually produce dye is to lock up ETH. So there's like a lending mechanism here too to to to actually like generate die.
You can lock up ETH and take what's like called an overcolateralized loan. So I can put in $100 worth of dye and I can take out $60 worth of ETH in a in a maker vault and the or I'm sorry I said that wrong. I put in a $100 of ETH and I take out $60 worth of D. And that's over collateralized. There's more ETH locked up. there's more e in terms of value locked up than there is dye that I get out of it. And then if anything happens where the price uh of the die is worth more than the ETH that's in there, then you can get liquidated. So So there's this supply and demand thing where they're minting and burning. Then there's this overcolateralized loan that protects that. So for every die that's
in circulation, there's ETH locked up. And if anytime the die in circulation is higher than the ETH locked up, people's uh loans can start getting liquidated. And there's a thing in the smart contract that just lets you liquidate someone's loan. And that's crazy. And then there's this maker mechanic where if all of that still fails and you need more value, they start like destroying the maker and that value goes into buying dye and then that should increase the price of the die. Something like that. That was a wild explanation. Is all over the place. Hopefully that kind of makes a little bit of sense. I probably like the maker guys if they ever watch this are going to be like he's totally wrong.
But think of supply and demand. Think of like secondary tokens to to back up the the first token to help sell things to to prop up the supply and demand. And then think of like overcolateralized loans so you have more locked up than you have in circulation. And if that ever changes, there's a liquidation mechanic. A lot goes into making a stable coin stable. And we've recently seen a a stable coin crash. And the reason was that it wasn't that overcolateralized loan didn't work. Like the the mechanics of the there there was a collateralized loan, right? And the market went down. And so all of a sudden the collateral wasn't worth as much as the token. So then what they needed was this second token to to start selling
off to cover that. And then that crashed too. So it's like both of these things crashing at once send it into a death spiral and and it works different than the way die works. Maker and die have a different system that's more stable that doesn't have this death spiral thing. And so the token that shall not shall not be mentioned has gone from worth a dollar to worth zero and billions of dollars have been lost because of it. uh because they had this thing where it like the the mechanics of how the token worked didn't uh it causes death spiral thing and that's like also like way over my head but hopefully hopefully like some of this is like getting exposure to
you at home who's building this stuff knowing that there's these like complicated systems that thankfully for you keep this nice token stable that look at that it shot up >> just it's it's worth a whole dollar and a penny right now should we sell it and make some [Music] So, yeah. Anything to add there? Sorry, my long- winded stable coin talk, but did that does that kind of cover it? Does it kind of make sense? Okay, cool. Cool. So, what's cool here is if you go back to our profile where it shows that we have ETH and D, we have a similar amount, right? We have $237 worth of ETH and $200 worth of DE. If we come back to that in a couple of days, those numbers won't be so close. probably ETH will be
worth more or ETH will be worth less but I'll bet you that die will be right around $200 which is which is pretty cool that that that is a much better user experience if you're building an app you're paying people in die people are paying you in die that die is going to stay stable >> yeah um so exactly I just also kind of wanted to show over here after we swap because it's not on our MetaMask at the moment like you can see it on Zapper But we don't have like die over here. >> Um, so manually add it.
>> That's network though. So yeah. Yeah. Yeah. But it's it's in assets. Yeah, there's an asset. Yeah, right there. Yep. So we see that we own ETH, but we have no idea that we own any D because our wallet's not tracking it. But we could go see on Zapper. Oh, sure enough, it is tracking D. That's great. Let's add D to the wallet. That's an awesome call. So we could also add from here or you could directly click like add D to MetaMask. I think we can just add it from MetaMask itself. Uh import tokens. I believe if I just click die >> then you see.
>> Well that was smooth. >> Import >> because it's sometimes you switch and then it's like oh no like where did my tokens go? >> Right. Right. Yeah. Totally. So now we can see it in the MetaMask >> and we can see it on Ether Scan too. If we were to put in Sanford, Stout and Etherscan, uh we should see that Sanford owns uh Yeah, you can see value 235, but then you see tokens 207, right? And you see the tokens in there. Oh, and a 721. We we have our first NFT also.
>> Yeah. >> What happens when you click on that? Does that take you to just like an NFT view within Ether Scan? Cool. Oh, look at holders is almost at 400,000. We were almost the 400,000th ENS holder. >> A lot of ENS names. >> Yeah. And and we know from civil resistance that that 400,000 holders does not mean 400,000 humans, right? It means 400,000 registered names, but there's no civil resistance. Yep. Neat. What else do we have to cover today? I think I feel like we ran through most of the stuff. Identity is just tricky, right? We kind of we kind of talked a little bit about identity here. We've created this Sanford Stout. Uh but if we tried to have some like top-down
identity system, it would be really hard. Like there is no real universal identity. We'd love to have some kind of identity, but I think most identity providers are doing this top down thing and it just doesn't work. It seems like identity is more like emergent and it's more about context between local local interact interactions. So, how you build up identity if you're building a decentralized app probably has to do with who comes in and how do they interact and how do we do we even want them to be one token one vote and how do we prove that and uh token drops right now are a good example of people who are trying to do civil resistance and they look at you know account activity has this account voted in snapshot has this
account signed a multi-IG message has this account done humanlike things or is this account like a bot that's that's doing bot-like things. And then if it's done if it's doing humanlike things, we apply a higher score to them. And so there's more like this kind of gray area scoring mechanic of how human the the account looks. Okay, man. We've covered a lot of stuff here. Anything else that we're missing? I think we got it. Anything else to close it out? I think one note on like the Dex part is especially when building the Dex project it was really helpful like you can see the different like it's kind of hard to understand in the beginning at least for my case it's like okay I'm swapping this
but how does this actually work but I didn't really deep dive in into it but when you're building it you kind of get to understand okay like this holds this much this holds this much and then that's why the price changed so I think that will make it a lot more clear once building the project right now it's I want that. But >> don't Yeah, don't worry if you don't understand the decks right now. For sure. It will make a lot more sense. I I almost imagine it like a vending machine. And I put either some tomatoes or some dollars in. And if I put in dollars, some tomatoes come out. And if I put in some tomatoes, some dollars come out. And I imagine that scale in there, right? That's that's holding, you know, there's hundreds of tomatoes over here, and there's hundreds of dollars
over here. And when my dollar goes in, it makes this more heavy. So, I have to pull out some tomatoes to to even it up again. But yeah, just think of it like a vending machine. We're building these really giant we we're building these really interesting censorship resistant unstoppable vending machines. And we went to one today and we got a name and we went to another one today and we got some stable coins and our identity and our our reputation kind of followed us from from app to app and we in a way we kind of civil attacked Ethereum and we created a brand new human that isn't a human and that that leads to some existential dread but I think we're becoming a power user. We've used our first app. We've used our first service and what that means is just using our
wallet to sign a transaction that talks to a smart contract. And we're going to get farther and farther into that as we go. But I think I think we're we're we've made it through day three of becoming a power user. >> Thank you. Thank you, Eda and Carlos. Sorry for all the mansplaining. Happy bow tie Friday. All right. See you guys next time. to everyone.
Related talks
- ENS, Identity in Your Apps I Greg Skrill
- Bhutan National Digital ID: an Experiment in Civic Tech
- Builder Show w/Steve Dakh from Ethereum Attestation Service (EAS) w/Austin Griffith & Eda Akturk
- The Next Era of ENS
- Lessons from 10 Years of the Ethereum Identity Stack
- The Grand Vision for ENS
- ENS 🛠 Identity in Your Apps
- Identity for Apps, Agents & More with ENS
- We Finally Have the Elements of an Ethereum Identity Stack
