<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Veronica Coutts on Medium]]></title>
        <description><![CDATA[Stories by Veronica Coutts on Medium]]></description>
        <link>https://medium.com/@vonnie610?source=rss-f576c21b2103------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PGg314A3_6j8TUZNjylSYA.jpeg</url>
            <title>Stories by Veronica Coutts on Medium</title>
            <link>https://medium.com/@vonnie610?source=rss-f576c21b2103------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 10:31:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vonnie610/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to win an online hackathon (and have a good time)]]></title>
            <link>https://vonnie610.medium.com/how-to-win-an-online-hackathon-and-have-a-good-time-29d50f411e06?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/29d50f411e06</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[planning]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Fri, 23 Jul 2021 15:19:24 GMT</pubDate>
            <atom:updated>2021-07-23T15:19:24.748Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide for what to expect and how to prepare for winning an online hackathon.</h4><p>This article focuses on longer-term (2–4 weeks) primarily technical hackathons.</p><p>I have participated in 5 hackathons, most of which have been online. In these multiple hacks, I’ve learnt a lot about organising a group of decentralised hackers to build a good product, and have a good time doing it. Online hackathons present a very unique set of problems and require a relatively structured process. I have worked out this process over many hackathons but really nailed it down in my last two hackathons: <a href="https://ethglobal.co/">EthGlobal</a> <a href="https://showcase.ethglobal.co/scaling/devolution">Scaling</a> &amp; <a href="https://ethglobal.co/">EthGlobal</a> <a href="https://showcase.ethglobal.co/hackmoney2021/treasurebuidl">HackMoney</a>.</p><p>In this article, I will share tips, tricks and the processes I’ve developed to get the most out of an online hackathon. An important thing to realise though is that hackathons take work. You don’t win by accident. It takes planning and consistent hard work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Pz5iY46P9skdMzwbNHeIxw.jpeg" /><figcaption>If you don’t put the time in, you will get nothing out.</figcaption></figure><h3>Table of Contents</h3><p>Below is a quick overview of everything covered by this article.</p><p>· <a href="#454d">Not all hackathons are created equal</a><br> ∘ <a href="#c378">Side note on important things to know before it starts</a><br>· <a href="#75f0">Define “Winning”</a><br>· <a href="#50a4">Building a team</a><br> ∘ <a href="#fee8">Choosing team members </a><br> ∘ <a href="#5a5c">Side note about solo hacking…</a><br>· <a href="#6785">Aligning Interests</a><br> ∘ <a href="#3b03">Communication Platform</a><br> ∘ <a href="#c690">Planning Doc</a><br> ∘ <a href="#1fc0">Side note on brainstorming</a><br>· <a href="#3530">Building the thing</a><br> ∘ <a href="#80c7">Side note on pivoting</a><br> ∘ <a href="#2c97">Side note on problematic teammates</a><br>· <a href="#1fee">Getting ready for judging</a><br>· <a href="#44e3">Making a Demo video</a><br> ∘ <a href="#1bbe">For your slides:</a><br> ∘ <a href="#588f">For the demo:</a><br>· <a href="#6c9e">The importance of a little showmanship</a><br>· <a href="#d3f3">On air: Handling live judging</a><br>· <a href="#80a4">Next steps</a><br> ∘ <a href="#4c48">Side note on splitting the prize money</a><br>· <a href="#801f">Closing thoughts</a></p><h3>Not all hackathons are created equal</h3><p>Before we can get into how to absolutely crush a hackathon, we need to look at the hackathon itself. Not all hackathons are created equal, and here are just a few things to consider when choosing to participate in an online hack:</p><p><strong>Have the organisers run an online hackathon before? </strong><br>Running and organising an online hackathon is an entire beast in itself. If this is the first online hackathon the organisation has run, expect a bumpy ride.</p><p><strong>How do the organisers help you with team formation?</strong><br>Organisers make or break a hackathon. If you plan on hacking with a team that you do not already have (i.e making a new team) and the organisers have not made some facilities for networking around team building… you will really struggle.</p><p><strong>How many hackers are there going to be? </strong><br>Ensure there will be enough hackers in the hackathon to build a team from. Depending on what winning means to you will determine what your minimum should be, but I would not participate in a hackathon that has less than 150 hackers signed up.</p><p><strong>Who will own the IP created?</strong><br>Nested in the Ts&amp;Cs of some hackathons is the condition that what you submit to the hack is not your IP. If you want to make a real thing that you take forward this is a non-starter.</p><p><strong>How much prize money is there?</strong><br>As with everything, depending on what winning means to you this ranges from insignificant to very important.</p><h4>Side note on important things to know before it starts</h4><p>Before the hackathon gets close to starting you should gather the following information:</p><ul><li><strong>When is the submission due?</strong> Make very sure you understand when you can <em>start</em> and have to <em>stop</em> coding.</li><li><strong>How do you need to submit it?</strong> Is there a form, do they have a preferred format?</li><li><strong>How does judging work? </strong>Is there a video submission with judge feedback? Or do the judges look over submissions privately?</li><li><strong>What is the hackathon focused on? </strong>This is really important in ensuring your project is actually relevant. If it is a great new wallet application but the focus is on data it really doesn&#39;t matter how fantastic your product is it will not win anything and you might not even be able to submit it.</li><li><strong>What are the sponsors looking for?</strong> This is more important if you want to get a lot of prize money, but understanding what the sponsors are looking for can make it easier to brainstorm and ensure your idea is relevant. Often sponsors will have their own lists for hack ideas.</li><li><strong>What are the rules around submissions? </strong>Understanding the rules and guidelines before you start will save you a lot of stress and uncertainty. I know these docs can be long, but read them!</li></ul><p>Hackathons are a great way to get exposure, both as an individual but also for market validation of an idea.<strong> Most hackathons will require a completely fresh start of the project during the hack, so make it clear you didn’t do work before.</strong> The easiest way to do this is a new repository with a clean start after the hack kick-off. Seriously, you don’t want to put 3 weeks of effort in only to get kicked because you worked on it before the start.</p><h3>Define “Winning”</h3><p>Before you can win a hackathon, you need to define what winning means to you. If you are new to a space winning might be gaining understanding and starting a network. Below are some of the most common ways to “win” hackathons:</p><ul><li><strong>Learning.</strong> A new tech stack, a new integration, or even a completely new field. Hackathons are a great way to get your hands dirty. Hackathons can also be a great CV/<a href="https://medium.com/techtogether/how-to-highlight-your-hackathon-experience-on-your-linkedin-4fae224863e5">LinkedIn</a> bolster.</li><li><strong>Making a (new) product.</strong> Hackathons are a great way to get relevant market feedback about a new product, as well as generally testing the waters for grant and funding opportunities.</li><li><strong>Launching a new version of a product.</strong> Hackathons can be a great launchpad for existing projects, complete with just enough “press” to make a splash. Of course, you will need to put in that much more effort to fully capitalise on the momentum of the hackathon.</li><li><strong>Hiring &amp; team building.</strong> Hackathons are a surprisingly great way to grow/start a team. You get to work with them in stressful conditions and see how they work and what they are capable of. Plus, you don’t have to pay them, because it&#39;s a hackathon they were going to do anyway! Make sure, however, that your intentions are clear with potential team members. There are lots of people who are hacking that are happy at their current job. Being clear prevents you from wasting everyone’s time. Check with your hackathon organiser before you start advertising your team as a “potential job” source, as most have rules &amp; guidelines around this.</li><li><strong>Winning (lots of) prizes.</strong> This is harder to optimise for, especially if this is your first hack. I’d recommend greenies to see what has won previous hackathons for inspiration. When optimising for lots of prize money it can be tempting to integrate with every possible sponsor, this is a rookie mistake. First and foremost you need to have a good product. Focus on building a talented team, then look through the sponsors as a group and figure out a cool product that integrates with 2–5 of the “big” sponsors, and no more than 5 smaller sponsors. Using more sponsors than that will almost inevitably reduce the quality of your product significantly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*sRjWvXDgH_mLhWjMFMG6BQ.jpeg" /></figure><h3>Building a team</h3><p>Building a good team is <em>the</em> most important part of kicking ass at a hackathon (closely followed by the product). For technical hackathons, the most important thing to optimise for is shared stack and good developers. If you have 4/5 talented developers who all use different languages you are in trouble.</p><p>I normally recommend rallying around JS/TS because it cuts from back to front really well. However, you can really choose any language but keep in mind if you want to build a frontend, backend and or middleware how your chosen language will affect framework choices and potentially massively limit your candidate pool.</p><p>Something that might slip your mind is to make sure someone has even a little design &amp; UX experience. You need your UI to be not ugly. Doesn’t need to be gorgeous, but it needs to be presentable. For projects continuing after you want to strive for gorgeous.</p><h4>Choosing team members</h4><p>I recommend having <strong>at least one</strong> meeting with potential teammates before accepting them into your team. Below are important points to cover in the meeting (usually won&#39;t need more than 30 minutes to cover everything):</p><ul><li><strong>What their stack is? </strong>What languages do they know, and how comfortable are they in those various languages? Are they more comfortable on the backend or UI? Do they want to try learning something new during the hack?</li><li><strong>Why they are hacking? </strong>If you are hiring, this is extra important, as you want to understand their availability and if they are actively (or passively) looking for a new job.</li><li><strong>What time zone they are in?</strong> Across all your hackers the least you can get away with is a minimum of 2/3 hours of <em>overlapping availability</em>, but the more the better.</li><li><strong>How much time do they plan to commit to the hack every week? </strong>This is so important we will cover it again in aligning, but it will affect the <em>availability overlap</em> significantly.</li><li><strong>When they are going to be working on the project?</strong> If they are committing 20 hours, when are they going to do them? Over the weekend, before work, or well into the evening? This is important to understand as you need to match up not only timezones but <em>availability</em> within those timezones.</li><li><strong>If they have any ideas for the hack/what do they think of your idea for the hack?</strong> If you have an idea, do they like it? Does it excite them? If you don’t have an idea, what ideas do they have? What areas are they most excited to work in?</li></ul><p>If you want to potentially hire hackers after the hack, I’d recommend having more than one call as you cut down your candidates.</p><p>Be warned though, building your team is a fine balance between curating until you have only the best and losing potential candidates to other teams. You need to move fast and decisively. No matter how well you screen your potential hackers, you will get slackers, dropouts and low-quality developers. If you have a team of 5, with 2 devs (excluding yourself) who are putting in the time and effort that they originally committed to you have done extremely well.</p><h4>Side note about solo hacking…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Z0N19p0hRtx8ohz9Ip9ENA.jpeg" /></figure><p>I have done solo hacks before (where it is just you hacking) and it is <strong>HARD</strong>. You need to build the entire thing, and depending on what you want to build that is a tall order. Additionally, you lose the support of a team and the ability to get a second pair of eyes on a problem.</p><p>If you are going to solo hack you need to plan the hack well in advance. Do some actual sprint planning. Plan it out enough that you will be able to see very quickly if you are falling behind (<strong><em>you can only fall behind if you’ve planned ahead</em></strong>).</p><p>You should also take advantage of all the support channels offered by sponsors. Are they having 1:1 sessions? Workshops? You should be there with your questions ready, they are often very approachable outside of calls as well. Don’t dismiss these resources.</p><h3>Aligning Interests</h3><p>When you’ve found your team members it is time to align everyone. This can safely be done before the start of the hack, or right at the beginning. <strong>Do not skip this step if you are hacking with other people.</strong></p><p>You are going to want to set up the following things:</p><h4>Communication Platform</h4><p>You need somewhere for your team to communicate. I recommend setting up a <a href="https://discord.com/">discord server (which is free)</a> with the following channels:</p><ul><li><strong>General chat. </strong>Where most of your coms will happen.</li><li><strong>A channel per section</strong>. i.e design, UI, backend, data management etc</li><li><strong>A process channel</strong>. More on this later.</li><li><strong>A prize channel.</strong> Just for listing the prizes, you are applying for, and for after the hack to keep track of which sponsors need to pay you.</li><li>It can also be nice to add <strong>a channel per big sponsor</strong> you are applying for, just to keep track of the discussions as well as how the integration is going, questions etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*jCuJBquHdtRZ-9Ity4joiw.png" /><figcaption>Discord server set up from two of my hackathons.</figcaption></figure><p>You can also get away with some kind of group chat like Telegram/WhatsApp/Signal but I recommend discord so that all your conversations aren&#39;t happening on top of each other, as things will get lost (especially if there are timezone differences).</p><h4>Planning Doc</h4><p>The most important thing about this document is getting your team on the same page (literally). The main sections you want to have:</p><ul><li><strong>Project Idea</strong>. What are you building? If you are brainstorming as a team this will be the ideation section.</li><li><strong>Team Commitments</strong>. Who everyone is, their timezone, weekly hour commitment as well as when those hours are going to be spent (i.e 20 hours a week throughout the week, after work 5 PM — 11 PM).</li><li><strong>What needs to happen</strong>. The next steps you need to take. This could look like this: Come up with project name, create the repo, or could be more detailed like design UI, figure out data architecture etc.</li><li><strong>Sprints</strong>. This is doubly important for solo hacks, but still vital for team hacks. I recommend 1-week sprints, possibly shorter depending on how much time your hack is for. Define what should get done by when. If your team is still brainstorming for an idea focus on that then come back to this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ptv395qHK2ZMhGpCEs7QZg.jpeg" /></figure><h4>Side note on brainstorming</h4><p>If your team is brainstorming, don’t be afraid to reach out to the various sponsors or hack organisers to see if your idea is good/relevant. A well organised online hack will have a session for idea feedback. You want to be pretty certain your idea fits the hackathon before you put the mountain of effort in that is needed.</p><h3>Building the thing</h3><p>Great! The hack has just started, your team is organised with the planning doc, and you have settled on the idea. Now what?</p><p><strong>Your sprint doc now needs to be fleshed out into GitHub/GitLab issues.</strong> I recommend taking the planning of your hack pretty seriously, do some project management. The difference planning makes is the difference between being a finalist with a lot of prizes and having half your team quit before the submission is even due. Don’t neglect it.</p><p><strong>Work as a team. </strong>Get everyone to take an area of responsibility. Make sure everyone is happy and feels the deadlines for tasks assigned to them are reasonable. You are leading your team, but it is not a dictatorship.</p><p><strong>Check-in regularly with the entire team. </strong>You want to be talking <em>at least twice a week</em>. Remember that as the leader of the team, <em>your team is taking examples from you.</em> So if you are not excited about the project and working hard, they will not be either.</p><h4>Side note on pivoting</h4><p>Sometimes during the hack, you realise your original idea is not feasible, or technically too complicated for the hack, etc. and you need to pivot. Some tips that will make pivoting easier:</p><ul><li><strong>Be decisive. </strong>If the idea is not working, say something. have a team meeting, but be quick about it. If you spend a lot of time back and forth or doubting ideas it may derail the whole hack.</li><li><strong>Include everyone. </strong>The whole team should agree that it is not working, and work together to figure out where to go from here. Involve your team in all the big decisions.</li><li><strong>Can you strip it out?</strong> If a certain element of your project is the issue, how can you reduce the amount of work that will need to be re-done? Can you simply take the problem part out and put in something different? The less you have to start from scratch the better.</li><li><strong>Be realistic. </strong>Realise that a decent amount of time is already lost. If you completely pivot be realistic in how much you will be able to get done before the deadline.</li></ul><p>It’s never too late to pivot till it is too late to pivot. You can always submit something that doesn’t work, and it is better to submit something broken than nothing at all.</p><h4>Side note on problematic teammates</h4><p>Sometimes, despite all your screening, you will have a deadweight team member. Someone who is not contributing, or is difficult to communicate with or an all-around ass. Depending on how deep you are in the hack, and how problematic, you have a few options.</p><ol><li><strong>Talk to them.</strong> There might be something going on in their personal life that is taking priority (I’ve had team members starting new jobs, moving houses, getting married, you know, life stuff). It might be something that will resolve quickly, but you will never know unless you ask. The result of this conversation might be updating the planning doc with their new availability, them leaving the team, or moving issues to other hackers.</li><li><strong>Talk to your team.</strong> I mean individually, don’t have one big group call to talk 💩 about the problem member. See if anyone else has noticed the problem, or if they have an issue with it. This will let you know how much of an impact kicking them would have. Be very slow with this conversation, “what do you think of Bob’s contribution? Have you enjoyed working with them so far?” Try not to “lead” them to your conclusion.</li><li><strong>Final talk.</strong> Talking to them didn’t have the desired behaviour change? Let them know that the team needs more effort from them. Remind them what they originally committed to, what you updated it to etc. Don’t out other team members here with “oh well Alice says that you aren&#39;t working enough/are difficult to work with”. You will need to decide here if you are going to kick them (I don’t recommend kicking people. It is rarely worth it), or if you are going to ask them to take less prize money as a result of their lacking contribution. <em>Let them know the stakes.</em></li><li><strong>Kick them out your team. </strong>This is easier earlier in the hack but be warned it is never actually anywhere near easy. It is also incredibly time-consuming (much more than you’d expect). It creates drama and can destabilise your team dynamics. They might even file a complaint with the organisers, so be very sure it is worth it.</li></ol><p>In summary, as the team leader, you need to be on top of your communication game. It is much easier to set standards earlier than it is to try to force them later. The earlier you communicate with your team members about problematic behaviour, code, practices etc, the better. Don’t let gossip or talking behind peoples backs start either. You need to be the adult in the room. If a team member is so bad you or other teammates feel the need to talk 💩 behind their back, you need to deal with that right there and then. Don’t let it fester because it will blow up.</p><h3>Getting ready for judging</h3><p>So you’re finishing up your hacking (or maybe only now realising how behind schedule you are and crunching) and the realisation dawns on you: you need to get ready to be judged.</p><p>Depending on how much stuff you have left to do in the time you have, this will be more or less of a priority. But some nice things to do:</p><ul><li><strong>Get all your repo docs up.</strong> How to set up the code locally, get it running, setting up the env whole nine yards. Make sure your code is up to scratch with its style guide.</li><li>Make sure your website has an SSL certificate.</li><li>Make sure your website has a landing page that (even if briefly) explains what your app does.</li><li>If you are taking it forward, have a Twitter account step up, and a telegram channel or discord server. Some way for people to contact the project after the fact. You are also going to want to add this information everywhere you can, your website, demo etc.</li></ul><h3>Making a Demo video</h3><p>Now you need to start on the video demo. It is important to follow any guidelines that the hack organisers layout for you as they might have a specific format in mind. There are a few key things your demo video should show irrespective, so let&#39;s get into it!</p><p>The winning strategy with demo videos is half of the allocated time in the slide show (maxing out at around 2 minutes) and half the product demo. The product demo should be the priority/main focus, at the end of the day, it is what people are watching for.</p><p>When I say I’ve got this down to a science, I am not joking, so without further ado, the science of a winning demo video:</p><p><strong>Have a script for the demo video. </strong>This will make it 1000x easier to ensure you cover everything you need to say, and also make recording + editing much easier. Try to get a full run-through, remember that if you make it into the finals you will most likely need to do the same demo live, and without the magic of editing.</p><h4>For your slides:</h4><ol><li><strong>Cover slide. </strong>Project name + Hackathon name. Nice and clean, ideally with both logos. All you need to say here is something along the lines of “we are team product, and this is our submission to hackathon”.</li><li><strong>Team slide.</strong> Who built this? It’s nice to put name + country + what their responsibility was (like what part of the project they built, i.e built front end). If everyone is comfortable, profile photos and Twitter accounts are a nice touch. If you are hacking anon then a meme for your photo works too.</li><li><strong>The pitch</strong>. A one/two liner for your product. This should have an impact, and possibly be a little dramatic. i.e <em>The ultimate wallet management tool</em>. You pretty much just want to say what is on the slide for this one, it will make it stick in viewers heads better.</li><li><strong>(optional) The problem.</strong> The “why” of your product. If you are building a product that you want to turn into a real thing, you are going to want to spend a little more time going over why your product is a good idea/so much better than what is out there.</li><li><strong>What you built. </strong>The “what” of your product. You are also going to want to mention where the product is like the website URL, what network your product is deployed on etc. If you plan on taking the product forward I recommend putting the URL on every slide somewhere (headers/footers work nicely).</li><li><strong>Specifics.</strong> This is the “how” of your product. If you built anything that was particularly novel/complex or cool this is where it goes. Also good to mention here the sponsors you integrated. Make sure here that the visuals are engaging, split topics into their own slides with a nice diagram or screenshot.</li><li><strong>The Demo!</strong> Before this point, you might want to have one or two screenshots of the product/UI just to get the judges excited. I’ve found the best way to record this is to record a screen share on Zoom.</li></ol><h4>For the demo:</h4><ul><li>Start as a “new user” on the app. Going through the signup flow. If in the editing of the video realise you are running out of time it is ok to make this literally a 3-second speed run.</li><li>Go through the “main” user flow. What are most people going to use your product for? Do that. Explain what is happening while you are doing it. i.e “When we click here *click* the app is generating your data request.”</li><li>If things aren&#39;t critical to the functionality and take time (like transactions mining) you can cut those out when editing, just make sure that it is clear that it happened.</li></ul><p>8. <strong>(optional) Next Steps.</strong> If you are building a product that you want to turn into a real thing, you need to show that you have a plan. Have on the slide contact info for anyone interested in funding or getting involved. Explain what your plan is for the next steps, i.e we plan on raising funding to launch this!</p><p>If any of this doesn’t make sense to you, check out my demo video for the last hack I did <a href="https://www.youtube.com/watch?v=9FjigTctD78">here</a>. It is a nice example that mostly follows this format.</p><h3>The importance of a little showmanship</h3><p>One of the worst things you can do for your demo is talk in a flat monotone voice, with no intonation or personality. No matter how amazing, technically accomplished or world-changing your app is, people will get bored and not pay attention.</p><p>I like to throw in one or two (max three) tasteful relatively mainstream custom memes to keep the visuals fresh and interesting. Make sure, even though you are reading a script, to put excitement in your voice. Practice the script a couple of times before recording. <strong>You need to sound interested, and interesting!</strong></p><h3>On air: Handling live judging</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*pKOTLUj-LuAZ5PzAnZS_Xg.png" /><figcaption>Don’t panic</figcaption></figure><p>Firstly stay calm. Secondly, we are going to use that beautiful slide show we made for the recording, as well as the script for the entire presentation. You might have been given more time for this demo than the recorded one. If the extra time is less than 2 minutes, don’t change anything.</p><p>Now for the actual production part of the demo here are some tips and tricks to make it go down smoother:</p><ol><li><strong>Pray to the demo gods. </strong>I might be a bit superstitious on this one, you’ll just have to take my word.</li><li><strong>Be clean. </strong>Make sure your bookmark bar is hidden, notifications are muted/silenced. If you need to show your desktop, make sure your background is decent. You should only have the slide show and the website open in your tabs.</li><li><strong>Have backups!</strong> Say you want to demo that a transaction happens by making the transaction and then showing it on etherscan. Have that transaction from a previous run through open on etherscan just in case it takes too long to mine, you don’t need to panic because you have one ready!</li><li><strong>If something goes wrong, <em>keep to the script!</em></strong><em> </em>Try (as best you can) from being like “oh… it’s not supposed to do that”. Keep the panic inside and carry on, even if it means talking about something that is not happening visually.</li><li><strong>Have a team member ready as a backup presenter. </strong>There are plenty of things that could happen that would require a team member to have your back (like your interest connection deciding to get unstable). The easiest way to do this is to have them ready with your recorded demo so that if you peg they can just share their screen and play the demo from where you left off.</li><li><strong>Be prepared for things to be slow. </strong>If there is something on your product that takes a while to happen, have the before and after state ready in two tabs. It is easier to say “I’ve pre-loaded this blah blah” than it is to talk off the cuff to stall for a minute (or demo forbid multiple minutes) while something happens in the background.</li></ol><h3>Next steps</h3><p>You want to take advantage of the little press you will get from the hack, as well as the momentum you have built. Be actively updating your socials with the progress of the app throughout the hackathon. Reach out to any sponsors (whether or not you won something from them) about grants, incubators and funding opportunities.</p><p>After the hack, if you’ve made a bit of a splash you might even get cold emails/reach out from VC funds. Be reasonably sceptical about this. If you do want to take on VC funding you need to be very intentional about it and very sure that this VC can give you more support than just funding (i.e network, influence, mentorship etc). If this is your first startup be doubly sceptical.</p><p>Now is a good time to apply to some relevant incubators, (especially for first-timers) as they will give you (hopefully) a lot of structure, support and guidance.</p><h4>Side note on splitting the prize money</h4><p>Splitting prize money can be contentious, especially if some team members did not pull their weight. I really recommend an even slipt between everyone 98% of the time. However, if someone was not pulling their weight, and you had the leadership kahunas to talk to them when it became a problem, you might be able to get them to agree to take less. Just know that this can get ugly very fast, and you’d better be willing to die on this hill (and possibly lose all the rapport you’ve built within your team).</p><h3>Closing thoughts</h3><p>Hackathons are a great way to learn and grow as a developer, as well as being incredible launch pads for products. However, you will only get out what you put in.</p><p>Remember throughout the hack that it is about having fun, and even if you don’t win anything you’ve probably learnt a lot, met new people and grown as a developer and team player.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29d50f411e06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything you need to know about NFTs]]></title>
            <link>https://vonnie610.medium.com/everything-you-need-to-know-about-nfts-be2601d09cf5?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/be2601d09cf5</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[digital-art]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Thu, 25 Mar 2021 12:46:19 GMT</pubDate>
            <atom:updated>2021-04-10T13:48:12.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="What are NFTs? blockchain NFT token Unique ID and digital art. NFTs for dummies" src="https://cdn-images-1.medium.com/max/1024/1*Wf-3LNOLu6Dcdwmgmr2zrQ.png" /><figcaption>how NFTs works (NFT art for beginners)</figcaption></figure><h4>NFTs for digital art has recently exploded into the mainstream, allowing artists to be able to sell their art in a way that can sustain them, and allow the buyers of the art to own the art in a verifiable way.</h4><p>In this article we will go over what NFTs actually are, the types of digital art, where your art is stored and finally red flags to look out for when shopping for NFTs.</p><h4>TLDR: How does NFT art work?</h4><p>In short, NFT art works by creating unique tokens and then attaching artwork to it, either by linking the art to the token or storing the art with the NFT on the blockchain.</p><p>There are two main types of art, generative and non-generative. Non-generative is created by a person. Generative art takes advantage of the unique ID of the token, using it as a “seed” that will then determine the look and traits of your NFT.</p><p>The art for your NFT can be stored in three different ways:</p><ol><li>With the NFT token on the same blockchain</li><li>On a different blockchain or decentralised storage</li><li>In a private or centralised server</li></ol><p>These different storage mechanisms introduce different risks to your NFT. If the art is<em> not stored with your NFT on the same blockchain</em>, there is a chance the link between your NFT and art breaks, and your NFT becomes worthless.</p><p>Finally, while a few blockchains right now use a lot of energy, there are major efforts and plans in place to greatly reduce energy consumption.</p><h3>What are NFTs, and what does NFT mean?</h3><p>NFT’s are a token with a unique identifier, an ID. With “normal” crypto tokens, there is no way to distinguish between one token and another, thus normal tokens are “fungible” (one is equal to another, like cash). <strong>NFT (Non-Fungible Tokens)</strong> are each identifiable and unique, meaning that one is not inherently equal to another.</p><figure><img alt="Each NFT has a unique ID, making them non-fungible (one is not equal to another)" src="https://cdn-images-1.medium.com/max/806/1*kJk5E6WXiNUjM3ltDSltYQ.png" /><figcaption>Each NFT has a unique ID, making them non-fungible (one is not equal to another)</figcaption></figure><p>You can think of it as a token with unique properties that allow you to create digitally unique assets.</p><p>This simple concept enables digital scarcity for unique and traceable items. Scarcity in this context means a limited (and controllable) supply. There could be one NFT created, or 100, but each of them would have a unique ID.</p><p>As NFTs are unique, scarce digital items, that you could really attach anything to. There are many great uses for NFTs, the below list is a very limited look at potential uses:</p><ul><li>Supply chain management (i.e tracking vaccines from production through the distribution network all the way to the clinic or hospital where it gets used)</li><li>Unique redeemable ticket items (i.e concert tickets, lottery tickets, access tokens etc)</li><li>Badges and non-tradable assets (i.e attendance proofs, certificates from boot camps, having an NFT for your identity on a platform etc)</li></ul><h3>Types of art</h3><p>There are two major types of NFT artworks. Generative and non-generative.</p><p>Non-generated artworks are what you’d think of as typical artworks. It is an image created by a human artist and uploaded to the blockchain, then attached to an NFT token. Most NFT artworks you will see are non-generative. Some major artist includes:</p><ul><li><a href="https://www.beeple-crap.com/">Beeple</a> | Recently broke the record for the most expensive <a href="https://www.theverge.com/2021/3/11/22325054/beeple-christies-nft-sale-cost-everydays-69-million">NFT sale at $69M USD</a></li><li>Most NFTs on <a href="https://opensea.io/">OpenSea</a> and other market places are non-generative art, so just go look!</li></ul><p>Generative artworks are created by an algorithm of some kind, where the unique ID of your NFT is used as the “seed” to generate your art. Each generative art piece is unique, and uniquely tied to its NFT. An artist of course does create the bits and bobs of art that feed the algorithm, and tell it how to mash them together. There are lots of very successful projects that use generative art:</p><ul><li><a href="https://www.cryptokitties.co/">Crypto Kitties</a> | NFT generative cats | Seed (DNA) stored on-chain, images generated off-chain, stored on centralised private servers</li><li><a href="https://axieinfinity.com/">Axie</a> | NFT generative Pokemon-like game | Seed (DNA) stored on-chain, images generated off-chain, stored off-chain but accessible to 3rd parties</li><li><a href="https://www.larvalabs.com/autoglyphs">AutoGlyphs</a> | NFT generative art | Stored and generated on-chain</li><li><a href="https://www.chainfaces.co/">ChainFaces</a> | NFT generative art | Stored and generated on-chain</li><li><a href="https://www.thehashmasks.com/">HashMasks</a> | NFT generative art | Seed stored on-chain, Generated on-chain, stored in decentralised storage</li></ul><p>Some NFTs also enable the artist to collect royalties, allowing them to earn funds from every token sale, and not just the first sale.</p><h3>Where is my NFT’s art?</h3><p>So we have our unique NFT token, but how do we attach an artwork to it?</p><figure><img alt="Tokens have a unique ID that can then be linked to digital art, or even real-world assets!" src="https://cdn-images-1.medium.com/max/702/0*JsBaoca7d8H9Sx3h" /><figcaption>Tokens have a unique ID that can then be linked to digital art, or even real-world assets!</figcaption></figure><p>There are a few ways that this can be done, and while it might seem a bit nitty-gritty, it is important to understand to protect yourself from scams, NFT tokens that are not going to last, and or poorly designed and rushed projects.</p><p>There is a chance the code (Smart Contracts) get hacked, but this is a concern with all decentralised applications (dapps) built on any blockchain. This applies to all methods of art storage.</p><h3>Art on the blockchain</h3><p>The first way we will discuss how art can be attached to an NFT is when the art itself is stored on the same blockchain as your NFT. This is the most secure way, where the longevity of your NFT is practically guaranteed.</p><p>This means that even if the group that created the project went out of business and the website was removed from the internet, your artwork would still exist and be safely stored on the blockchain.</p><figure><img alt="The NFT token and digital art live on the same blockchain" src="https://cdn-images-1.medium.com/max/686/0*jPOgs8e6C2br3s29" /><figcaption>The safest storage mechanism for your NFT is when the art and NFT token live on the same blockchain</figcaption></figure><p>Examples:</p><ul><li><a href="https://www.larvalabs.com/autoglyphs">AutoGlyphs</a> | NFT generative art | Stored and generated on-chain</li><li><a href="https://www.chainfaces.co/">ChainFaces</a> | NFT generative art | Stored and generated on-chain</li></ul><h3>Art on a different blockchain or decentralised storage</h3><p>Your art could also be stored on a different blockchain or decentralized storage mechanism (like <a href="https://ipfs.io/">IPFS</a>, <a href="https://www.arweave.org/">Arweave</a> etc) to the blockchain that your NFT lives on.</p><figure><img alt="NFT token is on one blockchain, the art is on another blockchain or decentralised storeage solution" src="https://cdn-images-1.medium.com/max/986/0*3yiieaE0W1pggLAi" /><figcaption>Your NFT token and art are stored on different blockchains or decentralised storage</figcaption></figure><p>When your art is stored on a different blockchain or decentralized storage there are a few things that affect the “risk profile” of your NFT:</p><ul><li>How is the link handled?</li></ul><p>A lot of projects host the link between your art and NFT. This means if the group were to stop maintaining the link, your NFT’s link would break, and your NFT would become worthless.</p><ul><li>Where is it stored?</li></ul><p>Not all storage is created equal. For example, if your NFT’s art is on IPFS someone needs to pin the art. If the creators of the NFT stop “pinning” the art, your artwork will disappear, even if the link is still active.</p><p>Examples:</p><ul><li><a href="https://www.thehashmasks.com/">HashMasks</a> | NFT generative art | Seed stored on-chain, Generated on-chain, stored in decentralised storage</li></ul><p>This method of storage is still significantly “safer” than the next method…</p><h3>Art stored on centralised storage</h3><p>Centralised storage refers to what you might consider normal storage, such as storing on AWS or private servers. This method means that should the group that created your NFT stops hosting your NFT, your NFT is now completely worthless.</p><figure><img alt="Your NFT token lives on the blockchain, but the art does not." src="https://cdn-images-1.medium.com/max/986/0*ENd09HXg7Z8ZU__x" /><figcaption>Your NFT is on a blockchain, the art is not on any blockchain or decentralised storage, and is instead privately stored by the company or group that launched the token.</figcaption></figure><p>The risk profile of your NFT is now very high:</p><ul><li>If the group stops storing your art, your NFT is worthless</li><li>If the storage mechanism goes down (which happens) your NFT is now worthless</li></ul><p>Examples:</p><ul><li><a href="https://www.cryptokitties.co/">Crypto Kitties</a> | NFT generative cats | Seed (DNA) stored on-chain, images generated off-chain, stored on centralised private servers</li><li><a href="https://axieinfinity.com/">Axie</a> | NFT generative Pokemon-like game | Seed (DNA) stored on-chain, images generated off-chain, stored off-chain but accessible to 3rd parties</li></ul><h3>What to look out for?</h3><p>When looking to buy an NFT there are a few things you should check:</p><p><strong>Is the market place legit?</strong></p><p>There are many NFT market places. The major ones, such as <a href="https://opensea.io/">OpenSea</a>, have lots of NFTs on them, and lots of people using them. If you are unsure of a marketplace, google “<em>&lt;market name&gt; scam</em>” and or “<em>&lt;market place&gt; stole my funds</em>” to give you an idea.</p><p><strong>Is this the original art?</strong></p><p>Occasionally, sneaky scammers will steal art and create a new NFT for it, claiming it as their own. This is a little more tricky to check, but not impossible. What you will need to do is:</p><ul><li>Right-click on the image of the art and copy it</li><li>Go into google’s search bar and paste the image in</li><li>Chances are pretty good that the first link associated with the image (ignoring any ads) is the original listing</li><li>If that listing is the one you were looking at, great! It is the real one. If not it is (probably) a copy.</li></ul><p>Another way NFTs can be copied is the whole project being launched to a different chain. Most of the time it is a safe bet that the original is on Ethereum.</p><p><strong>Is the amount “gambling money”? AKA: is NFT art a good investment?</strong></p><p>You should never put more money into anything crypto than you are willing to lose. <a href="https://www.businessinsider.com/beeple-some-nft-investments-will-hit-zero-crypto-art-bubble-2021-3?IR=T">Most NFTs will not retain any value over the long term</a>, and this is something you need to be very conscious about when buying an NFT.</p><h3>Closing thoughts: What about the energy usage of the blockchain??</h3><p><strong>TLDR: Many blockchains have solutions for energy consumption in the pipeline.</strong></p><p>Ethereum (the major blockchain where most NFTs are created) has a major update scheduled soon™ where the chain’s energy consumption would be massively reduced.</p><p>The energy consumption of “the blockchain”, while significant, is often blown out of proportion and used as a <a href="https://coinmarketcap.com/alexandria/glossary/fud#:~:text=An%20acronym%20that%20stands%20for,negative%2C%20misleading%20or%20false%20information.">FUD technique</a> to scare new people away from getting into blockchain. As a general disclaimer, not all blockchains are created equal, and not all blockchains <a href="https://www.bbc.com/news/technology-56012952">use the energy of a small country</a> like Bitcoin.</p><p><strong>Opinion warning:</strong></p><p>Irrespective of blockchains energy consumption, the technology is here to stay. On top of that, blockchain technology has massive potential to put the power (of data ownership, transparency, sovereignty etc) into the hands of the general consumer in a way that has never been possible.</p><p>Many major companies are trying to scare the general consumer away from decentralized blockchains to give them time to figure out how to make a blockchain alternative where they can still own all your data and have all the power. If you need an example just look at Facebook’s attempt at a cryptocurrency (<a href="https://arstechnica.com/tech-policy/2019/07/facebooks-half-baked-cryptocurrency-libra-explained/">so</a> <a href="https://www.irishtimes.com/business/technology/where-it-all-went-wrong-for-facebook-s-libra-cryptocurrency-1.4055121">much</a> <a href="https://www.theverge.com/2020/3/3/21163658/facebook-libra-cryptocurrency-token-ditching-plans-calibra-wallet-delay">wrong</a> <a href="https://www.entrepreneur.com/article/340440">with</a> <a href="https://www.theatlantic.com/ideas/archive/2019/06/dont-trust-libra-facebooks-new-cryptocurrency/592450/">it</a>).</p><p>If you still don’t want to use blockchains because of their major energy usage, wait a year or two and come back. <strong>The blockchain has solutions for energy consumption in the pipeline.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be2601d09cf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything you need to know about News Buff]]></title>
            <link>https://vonnie610.medium.com/everything-you-need-to-know-about-news-buff-8cc0c8a27418?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cc0c8a27418</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[protest]]></category>
            <category><![CDATA[change]]></category>
            <category><![CDATA[activism]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Mon, 10 Aug 2020 15:05:41 GMT</pubDate>
            <atom:updated>2020-10-07T16:35:42.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7odjznhRnCDCRLOWotCyQ.jpeg" /></figure><p>Hi.</p><p>Chances are you found this article either by being directly sent it or as a reply to a tweet about something horrible happening that is not getting the coverage it deserved.</p><p>I don’t need to tell you how broken news is right now. The misaligned incentives, lack of transparency, creeping biases. I don’t need to tell you this because deep inside you know. You can feel it. Just like I can.</p><p>I am trying to fix this with News Buff. An application that I am building to fix the base layer of news: us. The people. Those on the ground, fighting for change and to be heard.</p><p>I can’t do this alone, and I need your help. Ideally, if you have the time, I need to talk to people on the ground in any of the various protests going on around the world right now. <a href="https://docs.google.com/forms/d/e/1FAIpQLSfzgV9wVo9EJaBdv8UbmUbbm46VaZLjgbppTLJizIfpBX6Feg/viewform?usp=sf_link">Sign up here</a>. If you don’t have the 15-20 minutes to spare for a conversation you can help by filling in <a href="https://docs.google.com/forms/d/e/1FAIpQLSeX797wqs6qzLN_To0s8Ib3dGwSrhdtGbs5YhsX6GlZPMHOsg/viewform?usp=sf_link">this research survey</a>.</p><p>You can contact me <a href="https://docs.google.com/forms/d/e/1FAIpQLSeX797wqs6qzLN_To0s8Ib3dGwSrhdtGbs5YhsX6GlZPMHOsg/viewform?usp=sf_link">through the survey</a>, or via <a href="https://t.me/vonnie610">telegram</a>. For updates follow <a href="https://twitter.com/NewsBuffOrg">News Buff on Twitter</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cc0c8a27418" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Liquorice Gen: Initial Bonding Curve Offering (IBCO)]]></title>
            <link>https://medium.com/linum-labs/liquorice-gen-initial-bonding-curve-offering-ibco-e3bafe69f6b-e3bafe69f6bf?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3bafe69f6bf</guid>
            <category><![CDATA[liquidity]]></category>
            <category><![CDATA[ethereum-blockchain]]></category>
            <category><![CDATA[fundraising]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 14:08:30 GMT</pubDate>
            <atom:updated>2020-06-04T14:08:30.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKTsCioSYfK71hDgvuJN7g.png" /></figure><p><strong>TLDR;</strong> Getting liquidity to launch a token is a non-trivial feat. Either you foot the bill and put up your personal funds as liquidity for your token, or you raise funding and use a part of that as the liquidity. There is, however, a different way. If you are unfamiliar with bonding curves, you can check out <a href="https://medium.com/linum-labs/intro-to-bonding-curves-and-shapes-bf326bc4e11a">this article about curves and use cases</a> to get caught up.</p><p><a href="https://gitlab.com/linumlabs/liquorice-gen-v1/-/tree/master">Liquorice Gen (v1)</a> allows a user to create a token bonded to a curve (aka a token bonding curve). The price of the token is determined by the curve, and the collateral being paid into the curve (to buy a token) is stored within the token contract.</p><p>Once the predetermined token threshold (and thus collateral threshold as the price is predetermined) is met, the token will then call the <a href="https://gitlab.com/linumlabs/liquorice-gen-v1/-/blob/master/contracts/MarketTransition.sol">MarketTransition</a> contract, and the collateral will be moved out of the token and into <a href="https://uniswap.org/">Uniswap V2</a>, along with some newly minted tokens. The price of the tokens in Uniswap will be the end price of the bonding curve, ensuring a level of continuity for investors.</p><h3>What is Liquorice Gen</h3><p>Over the course of the Hack Money hackathon, <a href="https://twitter.com/MichalShachman">Michal</a> (<a href="https://www.linumlabs.com/about">Linum Labs</a>’ amazing designer) and I built Liquorice Gen. We used only our wit, <a href="https://webflow.com/">Webflow</a>, some smart contracts, <a href="https://vuejs.org/">vue.js</a> and <a href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> (if you are curious as to how we pulled that off, you can read about it <a href="https://medium.com/@vonnie610/hackathon-dapps-just-got-a-whole-lot-easier-46fd53ade769">here</a>).</p><p>In early-stage DeFi products there is a liquidity shortage. this is particularly pronounced at hackathons, where most DeFi products start. The products need to get funding before they can launch a product. The funding goes towards food on the table, liquidity for the token sale, and (hopefully) an audit of the smart contracts.</p><p>Let’s run through an example of the lifespan of a token created with Liquorice Gen.</p><h3>Project walkthrough</h3><p>If you would like to follow along you can find the <a href="https://liquoricegen.netlify.app/">front-end here</a>, and the <a href="https://gitlab.com/linumlabs/liquorice-gen-v1">repo here</a>. <strong>This project is currently only available on desktop and the Rinkeby testnet.</strong></p><p>Emilia creates an epic project at a hackathon. Her project needs a utility token (Awesome Token (AWT)). She wants to put her token on Uniswap and have the price set by the free market, but she does not have any cash (or Dai) to spare to seed the liquidity herself.</p><p>Emilia then finds Liquorice Gen, and decides to launch her token through it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*sRBttfG5jVjEdTh-Lo39TA.png" /></figure><h4>Design your Token</h4><p>The first thing Emilia will do on Liquorice Gen is set the standard ERC20 information, like the name, symbol and collateral currency of her token. The collateral address in the field by default is the DAI address on the Rinkeby network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*dBGfydQnw6XqZeFmOral0w.png" /></figure><h4>Advanced Token Setup</h4><p>Then Emilia will set the liquidity parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*EO88Yas-V1m4lHqcoUwTXw.png" /></figure><p>The token threshold is for how many tokens Emilia wants to sell before the token should transition from the bonding curve to a Uniswap market. It is automatically scaled by 1e18 (the standard decimal accuracy for ERC20 tokens). In Liquorice Gen V1 no more tokens will be able to be minted after this transition is complete, so Emilia chooses a high number of tokens.</p><p>The minimum number of tokens will only be checked against once the token has expired (i.e not reached the token threshold before the timeout). The timeout is in months and automatically converted into a <a href="https://www.unixtimestamp.com/">Unix timestamp</a> of now + your_time_in_months.</p><h4>Curve Parameters</h4><p>Now that Emilia has her transition threshold, she needs to set the parameters for the bonding curve. These parameters will control the tokens price. As Emilia chose to have a very high number of tokens as her threshold, she will set these parameters to be quite low, so that the tokens are not expensive and the threshold can be reached quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*A2JYhvz2cMHCiZosyMXABQ.png" /></figure><h4>Summary</h4><p>Now Emilia selects the “Show Summary” button to calculate all her outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*9tfl-8i7fWZVwoyGZKUYjg.png" /></figure><p>And here is the summary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNNlGYMoKUYJBpIdK1qYHg.png" /></figure><h4>Full Results</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2au1Jya0tsnifc3D2clOuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oLw5oavExqecU5CnT-joQ.png" /></figure><p>Here we can see the end price of the market, as well as how much collateral the bonding curve will need to accumulate before the market will transition. Emilia can see that her number is very high, and she is not sure if she will be able to reach it within her timeframe.</p><p>Note: The max token start price already has the 1e18 scaling for decimals removed. This means the last token sold on Emilia’s bonding curve will cost 990,005,000,000.00 in her chosen collateral token!</p><p>She has some options to fix this:</p><ol><li>Set her minimum and maximum threshold significantly lower</li><li>Reduce the steepness of her curve as to make the token prices lower, with the biggest impact being the lowering of the exponential factor (a).</li></ol><p>Emilia chooses to lower the number of tokens as well as reduce the steepness of the curve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2lXJaQARytIcWbDg4bnDaQ.png" /></figure><p>Now we can see that Emilia&#39;s token price and collected collateral is much lower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3IHbEa5syZkvxUvdho7zg.png" /></figure><p>Now that Emilia is happy with her token prices and collateral, she can make her AWT tokens by scrolling to the bottom and clicking shes ready!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8a7fW7r8IcWR2BkZB7iTtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*6Bz-b7iVBECNXvxV5UugoQ.png" /></figure><p>Once Emilia has signed the transaction and it has mined, she will be presented with her tokens’ address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X-uxH9vLVPbg75kTDr8Sg.png" /><figcaption><a href="https://rinkeby.etherscan.io/address/0x91D05eD62352DF45Aa6C7c967103B8d89909872C">Emilias Token</a></figcaption></figure><p>During the hackathon we did not have time to create a front end for Emilia to sell her token on, so she will need to sort that out.</p><p>Below is Emilia’s AWT loaded onto Remix. As there is no Front end right now for the token, this is the easiest way to buy tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Lkhtqw7yM_333xOA5JvY8A.png" /></figure><p>Here we can see the price of a token changing after a buy and sell:</p><p>Getting the buy price for 100.000000000000000000 tokens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*HEC4guQTfKgaG2lUFmo_-g.png" /></figure><p>This means that 100 tokens in the beginning of the curve will cost you:</p><p>(collateral) 20 000.000000000000002000</p><p>Buying some tokens:</p><p>Let&#39;s buy that 100 tokens. Don&#39;t forget to approve the contract as a spender if you are manually following along.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*w4GMMGFCmc9Bkh4TjVArCw.png" /></figure><p>Getting the new buy price:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*fnvYDkIyGr27Wk3DlTVzQw.png" /></figure><p>100 tokens will now cost you:</p><p>(collateral) 60 000.000000000000002000</p><p>Say Emilia impressed a crypto whale while presenting her hackathon. This whale makes their way to Emilia&#39;s token and buys the entire supply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*MynGqPv0PMJKnk_BtFGpoQ.png" /><figcaption>0 is the max collateral threshold that the whale is going to buy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*QkkiC5-Zx0SMNQ1oOd6iUQ.png" /><figcaption>The whale now buys the entire market</figcaption></figure><p>This buy will push AWT well over the threshold. The contract will only let the whale buy up until the threshold.</p><p>Once the whale&#39;s transaction has mined, we can see that the market has transitioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*XbK3jTKMnZXehTLi4GMRfA.png" /><figcaption>These boolean values represent the tokens transition status</figcaption></figure><p>We can get the address of the Uniswap pair from the events of the AWT contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98ULtrOUBmfV4tddJivJLw.png" /></figure><p>Here we can see the tokens being moved into Uniswap V2, and creating a market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j225RG_9MNhyrJqGGR7eRQ.png" /></figure><p>In the events, we can see that the <a href="https://rinkeby.etherscan.io/address/0x03502d8639b9c73b7e6b2d8240eb3502ab97bcf2">pair</a> was created, and we can get its <a href="https://rinkeby.etherscan.io/address/0x03502d8639b9c73b7e6b2d8240eb3502ab97bcf2">address</a>.</p><p>Here we can see the token on Unsiwap. We can see the start price being very close to the end price originally predicted by the Liquorice Gen dApp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*WSZ1-NDw2nc6iHCRunsIFA.png" /><figcaption>Liquorice Gen originally predicted 4 000 collateral tokens, on Uniswap its 3 980.06 collateral tokens</figcaption></figure><p>And, as below, the whale can sell some of their tokens on the Uniswap pair.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*KSEqsdD8h9kseCiMD8bz1Q.png" /></figure><p>Of course, as the whale bought the entire supply, their selling of tokens will move the market. They also have the option of adding liquidity to the pool, which would decrease the movement of the price, as well as earning the whale interest in being a liquidity provider.</p><h3>Conclusion</h3><p>Liquorice Gen provides a novel and innovative way to get your token from 0 to hero, and onto Uniswap V2. We plan on building on this into the future and turning it into a real tool you can use to raise funding for your dApp!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3bafe69f6bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linum-labs/liquorice-gen-initial-bonding-curve-offering-ibco-e3bafe69f6b-e3bafe69f6bf">Liquorice Gen: Initial Bonding Curve Offering (IBCO)</a> was originally published in <a href="https://medium.com/linum-labs">Linum Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webflow + ethers.js: Hackathon dApps just got a whole lot easier]]></title>
            <link>https://medium.com/linum-labs/hackathon-dapps-just-got-a-whole-lot-easier-46fd53ade769?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/46fd53ade769</guid>
            <category><![CDATA[easy]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[quick]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 14:00:11 GMT</pubDate>
            <atom:updated>2020-06-04T14:43:34.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oBFYI8x9efCgM1ubD7ErpQ.png" /><figcaption>Liquorice Gen</figcaption></figure><p><strong>TLDR; </strong>In the recent <a href="https://hackathon.money/">Hack Money hackathon</a>, my teammate and I made our entire front-end using just <a href="https://webflow.com/">Webflow</a>, <a href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> and <a href="https://vuejs.org/">vue.js</a>. This was a super quick and easy way to make a fully functional dApp that looks great - you can see ours <a href="https://liquoricegen.netlify.app/">here</a>.</p><p>Our Uniswap track winning submission, Liquorice Gen is a liquidity solution for early-stage dApp’s that need to raise collateral to launch a token. For more information, we have an article explaining Liquorice Gen <a href="https://medium.com/linum-labs/liquorice-gen-initial-bonding-curve-offering-ibco-e3bafe69f6b-e3bafe69f6bf">in more detail here</a>.</p><h3>What is Webflow?</h3><p><a href="https://www.google.com/aclk?sa=l&amp;ai=DChcSEwi227-Y6ODpAhVW6-0KHbYyAAYYABAAGgJkZw&amp;sig=AOD64_2YATGXI7Vjt2t5GTCcKikIXVdcDQ&amp;q=&amp;ved=2ahUKEwj7ubmY6ODpAhVmShUIHSUND0wQ0Qx6BAgcEAE&amp;adurl=">Webflow</a> is a Software as a Service company that offers both designers and developers a relatively new experience of “no-code” web design and hosting, and allows for rapid development of fully functional websites. We utilised their platform to design and double up on creating both a digital prototype and building out the front end elements we needed for our project. Webflow’s full philosophy of “no-code” development and design can be read more in detail <a href="https://webflow.com/blog/announcing-no-code-conf">here</a>. We chose to incorporate it because we wanted to create the front end quickly and with a fully visual approach. This made our front end easier to develop, and so we were able to hack faster, create more iterations, and improve our UI/UX design solutions.</p><p>This post was not sponsored or incentivised by Webflow, we just really love their product.</p><h3>How was our hack built?</h3><p>Webflow allows for custom scripts to be added to the HTML of a page (as seen below). While we did not use this functionality directly (I ran out of time), I applied it in principal by manually adding the scripts to the index.html file from the Webflow project. If you would like to follow along you can find the <a href="https://gitlab.com/linumlabs/liquorice-gen-v1">repo here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMl7PvHHzUpiGsrqH9pZIg.png" /></figure><h4>Adding the basics</h4><p>Firstly we need to add the libraries and tools we will need to use to get this working. Before the end of the &lt;/body&gt; tag, import the<a href="https://docs.ethers.io/ethers.js/html/getting-started.html#including-in-web-applications">ethers.js script</a> and <a href="https://vuejs.org/v2/guide/#Getting-Started">vue.js script</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/335a7496b0d1f49d6ca6d7f36710733a/href">https://medium.com/media/335a7496b0d1f49d6ca6d7f36710733a/href</a></iframe><p>I chose to use <a href="https://vuejs.org/">vue.js</a> for this project as it is a very quick and intuitive framework, with simple state management. <a href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> was chosen because it is my preferred library for interacting with Ethereum, but you could easily substitute it for <a href="https://web3js.readthedocs.io/en/v1.2.8/index.html">web3.js</a> if you prefer.</p><h4>Setting up the basic state</h4><p>The next thing we need to do is set up all the state we will need in order to interact with the contracts:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/afc93f752c3b5863c3e9348f0e1f7bc8/href">https://medium.com/media/afc93f752c3b5863c3e9348f0e1f7bc8/href</a></iframe><p><strong>Note:</strong> if this was a “proper” vue.js app you would want to use <a href="https://vuejs.org/v2/guide/migration-vuex.html">vuex</a> , which is vue.js response to redux. I am not using that here as its a one-pager, and I don’t need the additional structure.</p><p>In terms of the state needed for ethers, there are a few important things that you will need to store:</p><ul><li>Ethers: an instance of ethers</li><li>Signer: an instance of the signer (the account that is going to interact with the app).</li></ul><p>I am not storing the provider as that is quick to get, more on this later. In terms of the needed state for contract interaction, you will need the following for each contract you want to interact with:</p><ul><li>The address</li><li>The ABI</li></ul><p>With the above information, you can make an instance of the contract and interact with it. There is also some mock data that can be seen (the long string of 0s). These were used as place holders on the front end for styling purposes.</p><p>I am also storing some booleans, mainly connected, txPending and txComplete. These allow the dApp to adaptively respond to the user (mostly the cute gif when the tx is mining).</p><h4>Getting parameters out of the page</h4><p>In order to get the various state data from the HTML page, you need to add vue.js to the fields. This can be done really easily as shown below. Notice in the &lt;input tag there is a v-model=&quot;tokenSettings.tokenNameInput&quot; this will allow vue.js to pull the value out and assign it to the state prop tokenSettings.tokenNameInput.</p><p>There is a crazy amount of inline CSS on this input generated by Webflow. This is not something you need to worry about.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f064890735679f076ae6fd722b77047f/href">https://medium.com/media/f064890735679f076ae6fd722b77047f/href</a></iframe><p>Here is what that CSS looks like in action:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na-3jI-jwH0PEauXiHKwfQ.png" /><figcaption>Liquorice Gen input fields</figcaption></figure><h4>Setup and contract interaction</h4><p>Below is all you need to know to get an instance of ethers.js setup, make a contract instance and interact with it (with examples of a view function and a write function).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26be238de0072a173085c98b962de6f5/href">https://medium.com/media/26be238de0072a173085c98b962de6f5/href</a></iframe><p>Let&#39;s walk through the above method to understand how we are building up the needed state. In the connect() function, it first checks if there is an injected web3 instance, and if there isn’t, it lets you know that you are going to need one. The function then creates the ethers instance and saves it to state, gets the signer instance and saves it to state, and then calls init().</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c17e8dd5d53805cb42b53c0a721492b/href">https://medium.com/media/6c17e8dd5d53805cb42b53c0a721492b/href</a></iframe><p>In the init() function, we save the user’s address in the state. Then an instance of a deployed smart contract is created. This instance will allow us to call functions on this contract.</p><h4>Making a writing transaction against a contract</h4><p>Now we get to what you are here for, a write function to the contract.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d934785c73593098ead01bf984f521f8/href">https://medium.com/media/d934785c73593098ead01bf984f521f8/href</a></iframe><p>In the deployMarket() we simply call the desired function (createMarket()) on the instance of the contract, with all the variables from the page fed in. I would highly recommend doing some basic data check/sanitisation before giving the parameters to the contract (and I would have, but again, time).</p><p>Also notice that you do not need to feed in the signer instance. As you have already set up the user&#39;s signer instance, ethers will use that signer.</p><p>In this function, there is also an event filter to find the marketCreated event in order to get the address of the deployed token for the user.</p><h4>Making a view only transaction against a contract</h4><p>Below is a quick read-only function call (this function is pure but a view function will behave in the same way).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94cb236cb6bfffb7778f012b70fb4574/href">https://medium.com/media/94cb236cb6bfffb7778f012b70fb4574/href</a></iframe><h3>Conclusion</h3><p>Using Webflow to create the front end allowed Linum Labs’ kick-ass designer to flex her design skills and create the entire front end quickly and with minimal friction. A quick insertion of vue.js and ethers.js allowed the front end to be easily wired up to the deployed smart contracts.</p><p>This is a very powerful stack combination for a hackathon, allowing non-technical teammates to contribute significantly towards the tech.</p><h3>Additional resources:</h3><p>Webflow has so much content on how to use all their features and tools that they have dedicated a whole <a href="https://university.webflow.com/">online university</a> covering their most popular FAQs and support topics. This free to access resource is full of articles, courses and video tutorials, making Webflow even easier to use.</p><ul><li><a href="https://webflow.com/blog/no-code-is-a-lie">No code is a lie | Webflow Blog</a></li><li><a href="https://webflow.com/blog/announcing-no-code-conf">Announcing No Code Conf | Webflow Blog</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fv1M4ydNlgP0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv1M4ydNlgP0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fv1M4ydNlgP0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f765cfe7accef5d861f2bca5692a56f8/href">https://medium.com/media/f765cfe7accef5d861f2bca5692a56f8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46fd53ade769" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linum-labs/hackathon-dapps-just-got-a-whole-lot-easier-46fd53ade769">Webflow + ethers.js: Hackathon dApps just got a whole lot easier</a> was originally published in <a href="https://medium.com/linum-labs">Linum Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Black Thursday — MakerDAO’s multi collateral DAI exploitation (and the plan to recover)]]></title>
            <link>https://medium.com/linum-labs/black-thursday-makerdaos-multi-collateral-dai-exploitation-and-the-plan-to-recover-c083c0b81875?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/c083c0b81875</guid>
            <category><![CDATA[dai]]></category>
            <category><![CDATA[black-thursday]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[explainer]]></category>
            <category><![CDATA[stable-coin]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 10:38:19 GMT</pubDate>
            <atom:updated>2020-03-19T10:38:19.670Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*fOSCNulF6c1sJv4T" /></figure><h3>Black Thursday — MakerDAO’s multi collateral DAI exploitation (and the plan to recover)</h3><p>This article is intended as a base starting point for understanding the exploitation of the MakerDAO Vault Collateral Auction process that happened on the 12th of March 2020. It is highly recommended that you do your own research, and read the suggested <a href="#b087">additional materials</a> at the end of this article to get a more rounded and whole understanding.</p><p>Before I can explain what went wrong, we need to understand the underlying mechanism of Vaults (they used to be called CDP’s in single collateral Sai). If you already have an understanding, you can skip to <a href="#9154">here</a>. It is also worth mentioning that this price crashed was influenced by the general market crashes, caused by Covid-19.</p><h4>Index:</h4><ol><li><a href="#e3ad">TLDR;</a></li><li><a href="#4a66">Understanding the basics (how do Vaults work)</a></li><li><a href="#32c1">The liquidation process</a></li><li><a href="#5173">Leading up to the problem on Black Thursday</a></li><li><a href="#9154">What went wrong</a></li><li><a href="#b087">Additional Resources</a></li></ol><h3>TLDR;</h3><p>On Thursday the 12th of March there was an exploitation of the MakerDAO Vault Collateral Auction process.</p><p>There were conditions that lead up to this, mainly:</p><ol><li>The biggest ever crash in the price of Eth (it fell 43% in a few hours)</li><li>A large and sustained spike in the gas price due to a high network usage</li><li>A significant lag in the price provided by the MakerDAO price oracle (due to the high gas price) resulted in many Vaults suddenly needing to be liquidated when the price oracle updated</li><li>The majority of Keepers within the system used the same script provided by MakerDAO that was not flexible enough to adapt to the high gas prices</li></ol><p>This lead to a situation where entities were able to bid for the collateral of under collateralized Vaults at a value of $0. Meaning they were able to buy the underlying collateral (Eth) for all the vaults that got liquidated for about ⅔ hours for next to nothing. They got about ~ $8.32 Million worth of Eth (at the prices at the time) for free and left the system short ~ 5.67 million DAI in bad debt that was not wiped by the auctions.</p><p>Once the initial transaction where a $0 bid was mined and included, other entities started doing the same, creating competition around the low bids which drove the bidding price up from $0.</p><p>MakerDAO plans on filling this bad debt with an auction of MKR tokens. For more information about the auction check <a href="https://blog.makerdao.com/mkr-debt-auction-announcement-and-details/">this announcement</a> or check for updates on their <a href="https://makerdao.com/en/">homepage</a>.</p><h3>Understanding the basics (how do Vaults work)</h3><p>In order to fully understand what went wrong, we need to understand some of the basic principles of a Vault. If you would like to dive into a more basic explanation about how it all works, you can look at MakerDAO’s “<a href="https://www.youtube.com/playlist?list=PLLzkWCj8ywWOOvXo4_8r40itYHegzS_0s">Introduction to MakerDAO</a>” videos about CDPs, DAI and MKR. Please note that when they moved from single collateral Dai (called Sai), to multi collateral Dai (Dai), CDP’s were effectively re-named to Vaults.</p><p>Below I am going to run through a basic life cycle of a vault that gets liquidated. This will help us understand where in the process things began to break down later on. For more information about Vaults, you can check out the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/vault">MakerDAO Vault Documentation</a>. We will not be discussing the various fees (such as the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/stability-fee">Stability Fee</a>) in this example, for brevity and simplicity. This system is incredibly complex, and this article cuts out a lot of that complexity to make it more understandable.</p><p>Let’s say, we have 10 Eth. The current Eth price (for our example) is $200. This makes the current value of our Eth 10 x $200 = $2,000.</p><p>Let’s create a vault and deposit our 10 Eth into the vault. We are now able to generate DAI. In order to remain liquid, we have to have at least a 150% collateralization ratio. This means that the value of the Eth in your vault needs to be worth at least 150% of the value of the Dai we generate.</p><p>With our 10 Eth at a total value of $2,000 we can generate 1,333 Dai</p><p>You can use the below equation to work out how much debt we can create from the value of the collateral. The max amount of debt we can create is called the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/vault#what-is-a-debt-ceiling">Debt Ceiling</a>.</p><pre>Debt (DAI) = Collateral (DAI)/1.5</pre><p>We have our vault all set up. We have 10 Eth locked in, valued at $2,000. We have generated 1,333 Dai.</p><p>Now for the important part. Let’s say the Eth price falls to $195. So the total value of our vault is only $1,950. The Vault is under collateralized and is going to get <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation">Liquidated</a>. So how does this happen?</p><h3>The liquidation process</h3><p>Within the MakerDAO ecosystem, there are various participants &amp; actors, for the sake of brevity we are only going to look at a Keeper. A Keeper is an automated script (a bot) or an individual (i.e a person manually doing the various processes), that initiates the liquidation process. For more information, you can read the docs <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation#who-triggers-liquidation">here</a>.</p><p>The first thing that happens in the Liquidation process is that a Keeper detects our vault is under collateralized (under the 150% collateralization threshold) and then triggers the liquidation of the Vault.</p><p>To work out the collateralization ratio we can use the following formula (taken from the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation#how-do-i-calculate-my-collateralization-ratio">MakerDAO docs</a>)</p><pre>(Collateral Amount x Collateral Price) ÷ Generated Dai × 100 = Collateralization Ratio</pre><p>At a total value of $1,950 our collateralization ratio is only 146%</p><pre>(10 Eth x $195) / $1,333 x 100 = 146%</pre><p>This value of 146% is below the collateral requirement for a liquid Vault of 150% and so our position will be liquidated.</p><p>The liquidation process starts with an <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol">Auction</a> (specifically a <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol#collateral-auction-collateral-sale">Collateral Auction</a>). Once the Collateral Auction has begun, anyone can bid an amount of Dai to buy the collateral of the Vault (in our case the Eth we used as collateral). Other participants can bid higher amounts for the collateral until there is a bid that covers the outstanding debt. This bidding system was designed to encourage early bidding (this is important for later).</p><p>The collateral (the underlying Eth in our Vault) is auctioned off to cover the value of the generated Dai (the 1,333 Dai we created) as well as the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation">Liquidation Penalty</a> (which is a fee we will not be discussing here). After the auction process has ended the following happens:</p><ul><li>The winning bidder is sent the collateral</li><li>The Dai received (from the bidder) is burned (to cover the debt i.e the 1,333 Dai we generated)</li><li>The Vault owner receives the remaining collateral (Eth) that was not sold (only if the generated debt was paid off without having to auction off all the collateral in the Vault)</li></ul><p>This “closes” the Vault, and makes the system “whole” (all the debt has been paid off, Dai has been burnt and the Vault owner has been given the remaining collateral).</p><p>Working out how much of your collateral is going to be sold in order to pay back your debt will not be covered in this article, but you can find information on this in the <a href="https://docs.makerdao.com/">MCD Docs</a>. For the sake of this example, we are going to say that 7 Eth will be auctioned.</p><p>Ignoring the <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation">Liquidation Penalty</a>, our 7 Eth will go into auction. At the current price of $195, our 7 Eth should sell for $1,365. The price could “slip” between when the auction starts and closes, meaning that the price of Eth could drop. This slippage in price can be countered for by bidding at a lower price than the current Eth price.</p><p>I.e Instead of the bidder bidding at a price of $195 for our 7 Eth, they could bid at a price of $194. This will still cover our debt while giving the bidder a discount on the price of Eth, and ensuring that slippage of $1 can occur without the auction needing to increase the amount of collateral on sale.</p><p>The auction ends when the Bid Duration (a predetermined amount of time wherein participants can bid new amounts) ends with no new bids, outside of the first bid, have been placed. The other way the auction ends is if the Auctions Duration (a predetermined time for the entire auction process that is longer than the Bid Duration). There is, of course, more detail and nuance that you can read about <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol#the-auction-parameters-and-mechanisms">here</a> &amp; <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol#collateral-auction-collateral-sale">here</a>, but this information is enough to understand the exploit later.</p><p>This is in no way a comprehensive breakdown of the liquidation process or the Vault life cycle. It’s not intended to be. This is merely enough information that you can understand what went wrong on the 12 of March — Black Thursday.</p><h3>Leading up to the problem on Black Thursday</h3><p>On the 12th of March 2020, the price of Ether had it’s single largest daily movement, falling a total of 43% in one day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*LZVwdHT7VVXXvuSQ" /><figcaption>Taken from Coin Telegraph <a href="https://cointelegraph.com/ethereum-price-index">https://cointelegraph.com/ethereum-price-index</a></figcaption></figure><p>Below we can see the price of Eth, and inside the red circle, we can see the price drop that happened on the 12th.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSQpL2LnTNn3-lM-S7n-xw.png" /><figcaption>Taken from Etherscan Ether Price Chart <a href="https://etherscan.io/chart/etherprice">https://etherscan.io/chart/etherprice</a></figcaption></figure><p>As a result of this huge market demand on the network, the gas price increased dramatically during this period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNQrauTkx_duw38IKzLadA.png" /><figcaption>Taken from Etherscan Gas Price Chart <a href="https://etherscan.io/chart/gasprice">https://etherscan.io/chart/gasprice</a></figcaption></figure><p>There was a significant spike in network usage and congestion as can be seen by the graph below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lOD5lpfVlHIDVGpPu_kkg.png" /><figcaption>Taken from Etherscan Network Utilization Chart <a href="https://etherscan.io/chart/networkutilization">https://etherscan.io/chart/networkutilization</a></figcaption></figure><p>This congestion and spiked gas price heavily affected the performance of the MakerDAO oracle. This resulted in an additional opportunity for Vaults to get liquidated incorrectly, as the price was not being updated accurately during those highly volatile hours, and when it was updated it resulted in many Vaults suddenly needing to be liquidated, further overwhelming the system.</p><p>To summarise:</p><ol><li>The price of Eth DROPPED</li><li>With all the panic sells, the gas price increased dramatically in a very short period of time</li><li>The price Oracle that the MakerDAO ecosystem uses was not updating correctly due to the high gas price and network congestion</li></ol><h3>What went wrong</h3><p>Now that we understand what was happening in the general ecosystem, we can do a deeper dive into the specifics.</p><p>Most of the Keeper bots stopped operating, either due to:</p><ul><li>Fear of price slippage in manual Keepers (for more info see the <a href="#32c1">liquidation process</a>)</li><li>The vast majority of Keepers used the same script from MakerDAO, which was not flexible enough with its gas price. This lack of diversification between Keepers put the system at significant risk.</li></ul><p>This resulted in none of the normal Keepers transactions getting included because they could not adapt their gas price, and so the transactions were never mined.</p><p>The price drop &amp; gas price hike, as well as the oracle lag, resulted in a number of vaults that were suddenly under collateralized. These Vaults needed to be liquidated, but there were no active Keeper bots to liquidate them.</p><p><strong>Now, this is where the exploit comes in</strong>. Because there were no Keeper bots liquidating the vaults, there was an opportunity for exploitation. Someone started bidding for the underlying Eth at a price of $0. As all the other bots were incapacitated, no one was able to compete with this bid in the given Bid Duration (because the auction process was designed to encourage early participation, the bid duration was set to a short timeframe, <a href="#32c1">see the liquidation process</a>). Therefore, someone was able to bid for ~ $8.32 Million worth of Eth for $0, and no one was able to stop it.</p><p>And that my friends, is how a sudden drop in price coupled with a spike in gas price allowed entities to pay next to nothing for ~ $8.32 Million worth of Eth in between all the market crashing of Black Thursday.</p><h3>What is the plan to fix this problem?</h3><p>With 5.67 million DAI in bad debt that has not been cleared and many Vaults that were liquidated without returning the excess collateral back to the Vault owner, the system is not whole (the debt has not been cleared).</p><p>In order to correct this, there will be a minting and auctioning of MKR tokens to recapture enough DAI to wipe all the debt from the affected Vaults. This auction will be taking place on the 19th of March at 6:25 am ET.</p><p>The auction will work by offering MKR tokens in exchange for a fixed amount of Dai (50 000 Dai). Auction Keepers (participants in the auction) will be able to bid against one another for the MKR tokens by offering the same 50 000 Dai for less and less MKR tokens.</p><p>i.e: Bidder 1 will pay 50 000 Dai for 250 MRK tokens, but bidder 2 will pay the 50 000 Dai for only 230 MKR tokens, etc.</p><p>For more information about the bidding process, a more comprehensive example as well as how to get involved, please check out the <a href="https://blog.makerdao.com/mkr-debt-auction-announcement-and-details/">MakerDAO debt auction announcement and details posting</a> on their <a href="https://makerdao.com/">official site</a>.</p><p>This auction has affected the price of MKR, and as can be seen below, the price of MKR has been tending towards the auction price of $200.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6kHjkLOIssJsyuakBzuvg.png" /><figcaption>The price of the MKR token taken from <a href="https://coinmarketcap.com/currencies/maker/">https://coinmarketcap.com/currencies/maker/</a></figcaption></figure><p>During all of this, the Dai peg broke, and the price of Dai went all the way up to $1.20. To help re-establish the peg the MakerDAO governance has voted to add USDC as a collateral type. This will allow for users to trade between USDC and Dai, thus bringing the price of Dai down closer to a dollar. You can read the <a href="https://forum.makerdao.com/t/onboarding-usdc-as-collateral-to-mitigate-liquidity-risk/1570">official thread about adding USDC</a>, as well as the thread on <a href="https://forum.makerdao.com/t/whats-the-point-of-adding-stablecoins-as-collateral/453">why adding a stable coin as collateral would help</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJtecMpaqTEOI198z942tg.png" /><figcaption>The price of Dai against USD taken from <a href="https://www.coingecko.com/en/coins/dai/usd">https://www.coingecko.com/en/coins/dai/usd</a></figcaption></figure><h3>Additional Resources:</h3><ul><li><a href="https://blog.makerdao.com/mkr-debt-auction-announcement-and-details/">MakerDAO MKR auction announcement</a></li><li><a href="https://makerdao.com/en/">MakerDAO homepage</a></li><li><a href="https://www.youtube.com/playlist?list=PLLzkWCj8ywWOOvXo4_8r40itYHegzS_0s">MakerDAO YouTube playlist</a> (basic intro to Maker system)</li><li><a href="https://docs.makerdao.com/">MakerDAO Docs</a>: <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/vault">Vaults</a>, <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/stability-fee">Stability Fee</a>, <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation">Liquidation</a>, <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation#who-triggers-liquidation">triggering a Liquidation</a>, <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation#how-do-i-calculate-my-collateralization-ratio">Collateralization ratio</a>, <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol">Auctions</a>, <a href="https://docs.makerdao.com/auctions/the-auctions-of-the-maker-protocol#collateral-auction-collateral-sale">Collateral Auction</a>, <a href="https://community-development.makerdao.com/makerdao-mcd-faqs/faqs/liquidation">Liquidation Penalty</a></li><li>For the official MakerDAO Black Thursday Response Thread, go <a href="https://forum.makerdao.com/t/black-thursday-response-thread/1433">here</a></li><li>For the Reddit thread go <a href="https://www.reddit.com/r/MakerDAO/comments/fio0af/black_thursday_for_makerdao_832_million_was/">here</a></li><li>For another great article explaining this exploitation with more detail around the transactions and amounts, go <a href="https://medium.com/@whiterabbit_hq/black-thursday-for-makerdao-8-32-million-was-liquidated-for-0-dai-36b83cac56b6">here</a></li><li>For a great memo written by Aleks Larsen from Blockchain Capital go <a href="https://docs.google.com/document/d/1nA0KAEyMlyTnUgAmckYUt1DeWDAHWNrWh-aG9c2InW8/edit">here</a></li><li>Official MakerDAO thread about adding USDC as collateral <a href="https://forum.makerdao.com/t/onboarding-usdc-as-collateral-to-mitigate-liquidity-risk/1570">here</a></li><li>Official MakerDAO thread about what the point of adding a stable coin as collateral is <a href="https://forum.makerdao.com/t/whats-the-point-of-adding-stablecoins-as-collateral/453">here</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F212b2b%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F212b2b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/1de794a3082722489d354c826f4d7fe8/href">https://medium.com/media/1de794a3082722489d354c826f4d7fe8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c083c0b81875" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linum-labs/black-thursday-makerdaos-multi-collateral-dai-exploitation-and-the-plan-to-recover-c083c0b81875">Black Thursday — MakerDAO’s multi collateral DAI exploitation (and the plan to recover)</a> was originally published in <a href="https://medium.com/linum-labs">Linum Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An introduction to bonding curves, shapes and use cases]]></title>
            <link>https://medium.com/linum-labs/intro-to-bonding-curves-and-shapes-bf326bc4e11a?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf326bc4e11a</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[curation-markets]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[bonding-curves]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Fri, 02 Aug 2019 09:41:12 GMT</pubDate>
            <atom:updated>2019-09-23T10:52:08.133Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is a bonding curve, how do they work, what are the different shapes you can use, and what are those shapes best suited for?</h4><p><em>This article assumes that you understand the basic concepts of tokens — If you are unsure of what a token is, please read</em><a href="https://medium.com/linum-labs/ethereum-tokens-explained-ffe9df918008"><em> this article first</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0e39Sq8jvkO2KH3l9Leqw.jpeg" /></figure><h3>The basic concept of a bonding curve</h3><p>The core concept of a bonding curve is quite simple: The price of a token is determined by its supply. The more tokens that have been distributed, the higher the price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*O0yrtS3ZuLr6HrTY" /><figcaption>A basic bonding curve</figcaption></figure><h3><strong><em>A basic bonding curve</em></strong></h3><p>The above bonding curve is linear, as the line is straight (see other shape descriptions below). Bonding curves allow for a fix and predetermined price discovery mechanism, that is set in blockchain stone and cannot be cheated.</p><p>This increasing linear curve model (above) means that if you buy when the supply is low, you will pay much less per token than when there are lots of tokens. If you buy when there are already lots of tokens in existence (high supply) then you will pay a lot more for each token than you did when the supply was low.</p><p>You can “buy up” a curve, meaning you mint (buy) new tokens, and because this increases the current token supply, the price moves up. You can also “sell down” a curve, meaning that as you are burning (selling) tokens, you are driving the price down by decreasing the supply. Let’s look at an example to further explore this concept:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*SPMF97kAPdOKMKDQ" /><figcaption>A basic bonding curve interaction example</figcaption></figure><h3>Basic interactions with the bonding curve</h3><p>The purple arrows represent Sally. Sally buys 10 tokens. As we can see from the price and supply axes, each token costs more than the last. For the first token, she will pay $1, for the second $2, for the third $3 and so on. This means for her 10 tokens she will pay $1+$2+$3+$4+$5… totaling at $55. The price she will pay in total can also be worked out by calculating the <strong>area under the curve</strong>. In this case, the “curve” is a linear curve, but not all curves use a straight line.</p><p>There are also green arrows. These represent Fred. Fred also buys 10 tokens, but as Sally has bought tokens, she <strong>has pushed the price up by increasing the supply.</strong> Meaning instead of Fred’s tokens price starting at $1, it starts at $11. Instead of Fred paying $55 for his tokens, he will pay $155. If we were to calculate his price by the area, we would start with the area under the 11th token to the 20th.</p><p>Let’s say Sally sells her 10 tokens after Fred bought his. This means that she will get an amount back according to the area under the curve, starting from the top (the current supply). This means Sally will get $155 back for her 10 tokens because that is the current price range for those tokens set by the curve. This means that she makes $100 in profit for selling her tokens. If Fred tried to sell his tokens after Sally sold hers, he would only get $55 back for his tokens, as <strong>the price has gone down because the supply has gone down.</strong></p><p><strong>Core take away: The supply of tokens determines the price.</strong></p><h3>Different curve shapes</h3><p>In general, a bonding curve can be any positively increasing function.</p><blockquote><strong>Developer note: </strong>Be warned, implementing complex math formulas in Solidity is gas expensive and becomes very complicated very quickly. If you want to implement a complex curve I would recommend looking at Vyper.</blockquote><p>Bonding curve shapes are used to incentivise the market (interested individuals/organisations). This means that you should match the behaviour you want from investors to the type of curve that incentivises that behaviour. Below we will look at some of the most popular curve types as well as some fun examples to demonstrate their incentive mechanisms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4gY0IMow_8DeHCXV" /><figcaption><em>(Going from top left to bottom right) Sigmoid, quadratic curve, negative exponential curve, linear (non-increasing) curve</em></figcaption></figure><h4><strong>Sigmoid (top left):</strong></h4><p>Let’s say you have a meme that you think is going to go viral. You upload your meme to a modified version of<a href="https://www.memelordz.com/#/"> Meme Lordz</a> with a Sigmoid curve instead of a consistently increasing linear curve. This allows you to reward people who recognised early on that your meme would go viral since the price goes up sharply after reaching the inflection point (where the price goes up sharply) of the supply curve. Those who bought after the inflection point are considered mainstream adopters, so don’t really get rewarded for investing late.</p><p>The shape of the sigmoid curve allows you to heavily reward early investors while heavily charging late investments.</p><h4><strong>Negative Exponential Curve (bottom left):</strong></h4><p>Let’s say you want to run a Kickstarter like fundraising. You want to incentivise early investment, but you don’t want to actively disincentivise late investment. Using the negative exponential curve you can do just that.</p><p>The shape of a negative exponential curve allows you to incentivise early investment without heavily disincentivising late investment.</p><h3>Variations</h3><p>Bonding curves can be customised to fit most situations.</p><h4><strong>Uncapped market</strong></h4><p>A capless bonding curve is a bonding curve where no maximum token supply is specified. This means that the curve can indefinitely continue to issue new tokens when demand is there. This can be useful for markets where you wouldn’t necessarily know the upper bound of interested /organisations. For example, if you made a lottery where the ticket was a token, you don’t want to limit the number of tickets/tokens that can be sold, so instead of having a fixed token supply, you have an uncapped market.</p><h4><strong>Taxation</strong></h4><p>If you wanted to use a bonding curve as a mechanism for fundraising, you need to be able to withdraw collateral (what you pay for the tokens with) from the bonding curve. A buy tax means that you can take a percentage of the collateral for every buy and move it to a different contract/wallet, allowing you to raise money from your bonding curve without having to de-collateralize the distributed tokens. A sell tax, on the other hand, means that token holders pay a fee when they sell tokens rather than buy Lastly, one can tax both sell and buy interactions with the bonding curve contract.</p><h3>Conclusion</h3><p>Bonding curves come in all shapes and sizes. They allow for a fixed price discovery mechanism that cannot be cheated (by nature of the blockchain) and is completely transparent. Bonding curves can be changed and customised to create very specific incentives and models.</p><p>Bonding curves can be used to measure attention, raise funding, make bets, and that is only the tip of the iceberg. Bonding curves have a great potential to disrupt traditional finance and have played a major role in the current boom of DeFi (decentralized finance) dApps, protocols and projects.</p><p><em>If you would like to dive further into designing token bonded curves, I would recommend </em><a href="https://medium.com/molecule-blog/token-bonding-curve-design-parameters-95d365cbec4f"><em>this great article</em></a><em> about choosing your bonding curve parameters.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fg7rqqj%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fg7rqqj&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e597b3dd232838aa22a65d3da6e98bff/href">https://medium.com/media/e597b3dd232838aa22a65d3da6e98bff/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf326bc4e11a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linum-labs/intro-to-bonding-curves-and-shapes-bf326bc4e11a">An introduction to bonding curves, shapes and use cases</a> was originally published in <a href="https://medium.com/linum-labs">Linum Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethereum Tokens Explained]]></title>
            <link>https://medium.com/linum-labs/ethereum-tokens-explained-ffe9df918008?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffe9df918008</guid>
            <category><![CDATA[token]]></category>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Wed, 03 Jul 2019 16:27:58 GMT</pubDate>
            <atom:updated>2019-07-05T14:41:19.388Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ethereum Tokens Explained.</h3><h4>A Beginner’s Guide to Token Standards: Everything You Need to Know</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXFC9gyg_6jBVyOo78lFGQ.png" /></figure><h3>Glossary</h3><ul><li><strong>Native token</strong>: The token of the blockchain that your token exists within. E.g: Ether is the native token of the Ethereum blockchain. DAI is a token created within Ethereum but is not the native token. It can often be referred to as a coin.</li><li><strong>ERC</strong>: Ethereum Request for Comment. This is used for any suggestion to improve Ethereum and not only for tokens. Community members comment on these requests, which then either gets accepted or rejected by the general community.</li><li><strong>EIP</strong>: Ethereum Improvement Proposals. Once an ERC has received enough positive feedback it gets formalised into an EIP. It then gets audited and assessed by the core Ethereum developers.</li><li><strong>The difference between ERCs and EIPs:</strong> There are hundreds of standards that address issues beyond the scope of tokens. A full list of formally proposed standards can be found here for <a href="https://github.com/ethereum/EIPs/issues">EIPs</a>. <a href="https://eips.ethereum.org/erc">ERCs</a> are more informal initial proposals vetted by the community. You can take a look at the <a href="https://github.com/ethereum">Ethereum GitHub</a> to learn more about these standards as the Ethereum community is constantly bursting with new and fresh ideas.</li><li><strong>Fungible: </strong>One is equal to the other. For example, one dollar is always equal to another dollar.</li><li><strong>Non-fungible:</strong> One is not equal to another. For example, artworks. If we traded one for another we are not getting equal value. Each non-fungible item is unique.</li><li><strong>Spender</strong>: An address that gets approved by the token owner. Spenders are approved to spend a specified amount of tokens (with fungible tokens) or approved to spend a specific token (in the case of non-fungible tokens) on behalf of the user. I.E: the user may approve the spender once and the spender may spend on the user’s behalf until their allowance is finished.</li><li><a href="https://solidity.readthedocs.io/en/v0.4.21/units-and-global-variables.html?highlight=msg.sender#block-and-transaction-properties"><strong>msg.sender</strong></a><strong>: </strong>The address that calls the contract’s function.</li><li><strong>msg.value:</strong> The amount of Ether (<a href="https://solidity.readthedocs.io/en/v0.4.21/units-and-global-variables.html?highlight=msg.sender#ether-units">in wei</a>) sent with the function call.</li></ul><h3>What is a token?</h3><p>A token within Ethereum, that is not Ether itself, is stored in a smart contract. This all began when someone wrote a smart contract to manage balances. It is literally a mapping of addresses to numbers storing the balance of each address. Yes, it really is that simple.</p><p>mapping(address =&gt; uint256) balances;</p><p>Tokens are value counters stored in a contract. This is a simple Solidity contract demonstrating the core principles of a token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*UQEeXY43dna1XwzwTGblAA.png" /><figcaption>A very simple token example. This does not follow ERC20 standards.</figcaption></figure><p>In this SimpleBank contract, we can see that when you <strong>buy</strong> tokens, you send Ether with the call and that Ether pays for the tokens. In our contract above, 1 Ether is worth 100 tokens (line 26). When you <strong>sell </strong>(or burn),<strong> </strong>you send the number of tokens you want to burn as a parameter (line 31). As long as you have enough tokens, you will receive the Ether value of those tokens. The require() in the sell (line 33) checks that you cannot withdraw more tokens than you have. Of course, you don’t have to take Ether in return for tokens. You can use other tokens as payment, such as <a href="https://makerdao.com/en/">DAI</a> for example. SimpleBank does not implement a token standard. It shows the core principles of a token, which is that they determine your balance and exist inside of a smart contract. This smart contract allows you to <strong>buy</strong>, <strong>sell</strong> and <strong>transfer</strong> tokens.</p><p>ERC token standards (like ERC20) are usually just interfaces that your contract (like SimpleBank.sol) must implement if you want your token to be considered as that specific type of token. There are many different standards such as <strong>fungible</strong> (where one unit is equal to another, like money) and <strong>non-fungible</strong> (where one unit is not equal to another, like artwork). These standards tell you what your contract needs to implement in order to be considered compliant with the standard. You can have functions that are not included or go above and beyond the standards, however, you must ensure that if you can only communicate with your contract through the standard’s functions that you can still access the functionality. If you are unable to do so, some of your functionality may go unused by wallet users.</p><h3>Why do we need standards?</h3><p>In traditional tech, if two companies wished to have their apps talk to each other, they would have to make a custom API layer to interact between the two apps. This would be a completely custom API and would not be reusable. If the app wanted to talk to a third app, another API layer would have to be created. If there was a standard in place, no additional work would have to be put in before the apps could communicate with one another.</p><p>There are thousands of tokens, and without token standards, it would be almost impossible to communicate with each token contract. If a wallet such as <a href="https://metamask.io/">Metamask</a> wanted to communicate with multiple tokens, it would need to create an interface for each and every token. This is unscalable. We have standards so that a wallet service can implement one standard that then allows the service to interact with thousands of tokens. It also means that your contract can easily trade with other token contracts. Here is an example of an ERC20 token interface taken from <a href="https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/IERC20.sol">OpenZeppelin</a>. ERC20 is a fungible token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*gTnXwFIWYB8f-4T2w0KH7w.png" /><figcaption>This is the interface for ERC20 tokens.</figcaption></figure><p>Interfaces are powerful because we can cast any ERC20 token contract address to the interface and be able to call any of the above-listed functions on that contract without having to ever import the token’s contract.</p><p>Below, we are going to change the buy and sell function of our SimpleBank.sol so that we can buy our tokens with an ERC20 token. To do this, you will need to import the ERC20 interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*oymprP7bs_bppVA4-zWq5w.png" /><figcaption>Import the ERC20 interface</figcaption></figure><p>Our SimpleBank is <strong><em>still not an ERC20 token</em></strong><em> </em>but it is <strong><em>talking to one</em></strong> when buying and selling our SimpleBank tokens. The ERC20 token we want to use is specified in the constructor, by sending the ERC20 token’s contract address. Below is the updated constructor that takes in the ERC20 address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*sfDw1R8dVz8FwF0pM_Sh_g.png" /><figcaption>The constructor taking in an ERC20 token address</figcaption></figure><p>If we send through the contract address of <a href="https://makerdao.com/en/dai/">DAI</a> (an ERC20 <a href="https://en.wikipedia.org/wiki/Stablecoin">stablecoin</a>) in our constructor, 1 DAI would be worth 100 tokens. To make our token price a little more reasonable, one of our tokens will now be worth 2 DAI (line 23). We can now send through any ERC20 token’s contract address. Below is the updated buy function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*5vjeUma5aiXqCudlxXXJcg.png" /><figcaption>The buy function now using the IERC20 interface</figcaption></figure><p>The buy allows a user to purchase our SimpleBank tokens with a specified ERC20 token, and sell back to the same ERC20 token. Casting the address of the token (line 40) allows us to call any of the functions of the interface. Here, we are calling the transferFrom() function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*b0OnFtQfEjG-uuc4IbVGnA.png" /><figcaption>The sell function, now selling tokens for an ERC20 token</figcaption></figure><p>Notice how we require (line 37–46 (<strong>buy</strong>), 64–70 (<strong>sell</strong>)) for the transfer to succeed? We do this because the transfer returns a bool, and we need the transfer to succeed in order to send tokens. <strong>Note that before the transfer function can be called, the user first needs to </strong><strong>approve() our contract as a spender of their ERC20 tokens</strong>, or we will not be able to transfer tokens on their behalf. In an actual dApp, you can convolve these calls.</p><h3>Making an ERC20 token</h3><p>Here, we are going to make SimpleBank.sol ERC20 compliant. There are two ways to do this. Either you get the implemented <a href="https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/ERC20.sol">ERC20 token contract from OpenZeppelin</a>, add a mint and a burn function and be done with it, or you can implement all of the functionality yourself. Personally, I would advise against implementing the functionality yourself. OpenZeppelin has battle-tested their contracts, which means that they are less likely to have any vulnerabilities and bugs as hundreds of developers are constantly testing the code. Whereas if you implement the functionality, a single wrong line could cost your users their tokens. The only exception is if you want custom functionality on a call, in which case I would still recommend using OpenZeppelin’s ERC20 and then either overriding (if you inherited it) or editing the single function you need to change.</p><p>In the below example, I have inherited the implemented ERC20 from OpenZeppelin and added the public-facing mint and burn functions. SimpleBank.sol is now ERC20 compliant, meaning an exchange could list it simply by knowing its address. If you look at the <a href="https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/ERC20.sol">OpenZeppelin ERC20</a> contract, you can get a better idea of what each function does. As OpenZeppelin’s comments are quite extensive, repeating them here would be redundant. Below is the ERC20 compliant SimpleBank:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*9p-fJFZcJ1Z5YkmLAlfxlQ.png" /><figcaption>Simple Bank is now an ERC20 compliant token that can be bought with another ERC20 token.</figcaption></figure><p>SimpleBank now inherits ERC20 from OpenZeppelin. This means it can interact with the ERC20 interface.</p><h3>A quick intro to other fungible token standards</h3><p>ERC20 is not the only fungible token standard, but it was the first, which means that it does have a few bugs. For example, if you send ERC20 tokens to a contract and that contract does not implement any functionality to interact with ERC20 tokens, there is no way to get those tokens back. The tokens are, therefore, “lost”. There is also no way for a contract to revert when it receives ERC20 tokens because there is no way for it to know when it receives those tokens.</p><p>For example, if we send DAI to our SimpleBank contract address, there is no way for our SimpleBank to send them back to the sender, or to revert. The only change is in the DAI’s token contract, which doesn’t signal our SimpleBank contract to know that it is being sent tokens. This exact problem has resulted in thousands of tokens being lost.</p><p>There are many more token standards than the two listed below, however, these are to give you an idea of what token standards can do.</p><h4><a href="https://github.com/Dexaran/ERC223-token-standard">ERC223</a></h4><p>The ERC223 token standard makes tokens act more like Ether by creating receipts. When you are sent an ERC223 token, it receives this receipt, providing information about the transaction such as who sent it and the block.</p><p>The ERC223 token standard does not allow tokens to be sent to a contract that does not implement the “receiving hook”. This hook is called when an ERC223 token is sent to it, giving to contract the ability to handle tokens as it needs to. If there is no receiving hook on the contract, the call will revert and the tokens will not be sent to the contract.</p><p>To enable a smart contract to receive ERC223 tokens, the contract needs to inherit the ERC223ReceivingContract. This contract is an interface with a single unimplemented function:</p><p>tokenFallback(address _from, uint _value, bytes _data);</p><p>The contract then needs to implement this function and decide how it is going to handle receiving the token. The rest of the functionality of ERC223 is backwards compatible with ERC20. This means that you can use the ERC20 interface to interact with an ERC223 token, which in itself, is amazing. For a more in-depth look, check out <a href="https://github.com/Dexaran/ERC223-token-standard#the-main-goals-of-developing-erc223-token-standard-were">ERC223s goals</a>.</p><h4><a href="https://github.com/ethereum/eips/issues/1155">ERC1155</a></h4><p>This token standard is mainly used for games. It allows for fungible and non-fungible tokens to be stored in one contract. This is important because a game’s use of tokens will vary. For example, an NFT could be used to represent a valuable unique weapon and a fungible token would be used for in-game currency. Without this standard, a game would have to publish hundreds of different token contracts to represent all in-game items. With ERC1155, a game can deploy one contract to represent all in-game tokenisable items.</p><p>The <a href="https://enjincoin.io/about/">company behind this standard</a> created it to prevent having hundreds of tokens to represent one game. For more information on this standard, there is <a href="https://blog.enjincoin.io/erc-1155-the-crypto-item-standard-ac9cf1c5a226">this article</a>.</p><h3>Non-fungible tokens</h3><p>Non-fungible tokens (NFTs) all have a unique uint256 ID. This ID means that you can trace each token’s history and ownership. It also means you can associate metadata with the token, allowing the token to represent anything with unique properties.</p><p>ERC721, which is by far the most widely used standard for NFTs, is quite similar to the ERC20 contract interface. It has almost exactly the same functions except when a token amount would be specified in ERC20, the token ID is now specified instead. Below is the ERC721 interface taken from <a href="https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC721/IERC721.sol">OpenZeppelin</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*TBGTpm3aJuVqWJQXoQsB7Q.png" /><figcaption>ERC721 interface</figcaption></figure><p>Some use cases for NFTs range from C<a href="https://www.cryptokitties.co/">ryptoKitties</a>, a trading game where your kitty’s appearance is determined by its unique NFT ID, to <a href="https://dapp.knownorigin.io/feed">digital art</a>, to representing <a href="https://www.foam.space/?utm_source=StateOfTheDApps">land ownership</a> and more.</p><h3>Conclusion</h3><p>Tokens are value counters in contracts. Standards allow for uniformity between tokens and for wider adoption and use of tokens. There are thousands of token standards, but very few get major adoption. Standards are proposed as ERCs, and once they have received sufficient positive community feedback, they get formalised as an EIP. EIPs are vetted by Ethereum core developers before being implemented.</p><p>There are two main groupings of tokens, <strong>fungible</strong> and <strong>non-fungible</strong>. Fungible tokens mean that one token is worth any other token, like money, where $1 is always equal to any other $1. Non-fungible tokens all have a unique ID. Each NFT has an inherently different value, such as how one artwork would not be equal to any other artwork. NFTs have a unique value depending on what they are for or represent.</p><p>Token standards achieve better interoperability through interfaces. These interfaces allow for exchanges, other tokens and wallets to interact with thousands of tokens through the same interface. Newer standards built for fungible tokens often comply with the ERC20 token interface, as this makes the standard easier to adopt.</p><p>If you have any questions, get in touch with us here at <a href="https://linumlabs.com/">Linum Labs</a>, and we will gladly assist you along your blockchain journey.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F212b2b%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F212b2b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/1de794a3082722489d354c826f4d7fe8/href">https://medium.com/media/1de794a3082722489d354c826f4d7fe8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffe9df918008" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linum-labs/ethereum-tokens-explained-ffe9df918008">Ethereum Tokens Explained</a> was originally published in <a href="https://medium.com/linum-labs">Linum Labs Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A step by step guide to buying an ENS domain on mainnet]]></title>
            <link>https://medium.com/hackernoon/a-step-by-step-guide-to-buying-an-ens-domain-on-mainnet-5109572ef2bf?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/5109572ef2bf</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[mainnet]]></category>
            <category><![CDATA[domains]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[en]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Mon, 20 May 2019 20:56:00 GMT</pubDate>
            <atom:updated>2019-05-21T07:22:56.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEIkqBiptAnItiwL1UluKg.png" /><figcaption><a href="https://manager.ens.domains/">ENS domain manager</a></figcaption></figure><h3>A Step by Step Guide to Buying an ENS Domain on the Mainnet</h3><h4>ENS has recently released its <a href="https://docs.ens.domains/permanent-registrar-faq">permanent registrar</a>. With it comes some major changes in the process of acquiring a top-level ENS domain. In this article, I will be taking you through buying a domain, setting that domain up, and how to create subdomains through their new process, step by step.</h4><p>Not quite sure how ENS works? Check out <a href="https://youtu.be/FPpSZyWRMFg">this quick video intro</a> to ENS. Want to start on a testnet? Check out this <a href="https://medium.com/@vonnie610/a-step-by-step-guide-to-ens-domains-on-testnets-mainnet-3f549fcf1f1f">how-to guide for testnets</a>.</p><h3>Index:</h3><ol><li>Prep: <a href="https://medium.com/p/5109572ef2bf#b9f4">Everything you need before you start</a></li><li>Step 1: <a href="https://medium.com/p/5109572ef2bf#2dd4">Checking name availability</a></li><li>Step 2: <a href="https://medium.com/p/5109572ef2bf#7ea8">Buying an ENS domain name</a></li><li>Step 3: <a href="https://medium.com/p/5109572ef2bf#cb81">Setting up your domain</a></li><li>Step 4: <a href="https://medium.com/p/5109572ef2bf#518f">Subdomains</a></li><li><a href="https://medium.com/p/5109572ef2bf#e8ef">Implementing ENS in a dApp</a></li></ol><h3>Prep: Everything you need before you start</h3><p>Before you start there are a couple of things you should know and have on hand:</p><ul><li>The name of your domain. Type it somewhere, spell check it and when you need it, copy + paste it.</li><li>The address you want your domain to resolve to, i.e what address your domain name will “equal”.</li><li>The address you want to be the owner of your domain. This should be the account you use to do all the transactions, although you can easily transfer ownership. You will also need to have ether in this account, I would say at least 0.1, but it depends on how long you want to own the name for.</li></ul><h3>Step 1: Checking Name Availability</h3><p>Make sure your Metamask is pointing to the mainnet. Head over to the official <a href="https://manager.ens.domains/">ENS domain name manager</a>, and search the domain you want. If your name is unavailable you will be able to try to solicit the domain (offer the owner funds for the name). Otherwise, it should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxU2LwTt8GSDCf5xpXhCRw.png" /><figcaption>An available searched name</figcaption></figure><h3>Step 2: Buying the Domain</h3><p>Choose how long you want to rent the name for. The way the new permanent registrar is set up means it is much cheaper to buy a domain than before.</p><p>Once you have chosen a rental period click “Request To Register”. The first transaction is to connect to the ENS dApp and request the name for registration. It should not be an expensive transaction. The cute green loading bar represents the waiting period, which is probably checking that the name is not registered on an older registrar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAtPZLKj6YJtj4fbaA2_Qw.png" /><figcaption>The waiting period is now over, and you can continue with the registration.</figcaption></figure><p>Clicking “Register” will trigger another transaction. This transaction will be paying the rental fee you chose earlier. If your transaction fails, increase your gas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rFLnaCu76CrmXqxIunUlw.png" /><figcaption>A successfully purchased domain</figcaption></figure><p><strong>Note: </strong>Names registered or transferred to the new permanent registrar and NFTs. This means to transfer the domain you transfer the NFT. This also means you can check you have your name by checking your wallet for NFTs.</p><h3>Step 3: Setting up your domain</h3><p>On the same page that you were just on, click “Manage Name”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4vOSOaV9cP0JCuraQueNg.png" /><figcaption>The name manager interface</figcaption></figure><p>The first thing we are going to do is set the resolver address. Click the “Set” button in line with the blank resolver address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvG1ddxKH9Ot3DTvfa7ZNQ.png" /><figcaption>Setting the resolver address</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*iZCRtXK3H7ipezds4UCLJA.png" /><figcaption>Learn how to manage your name</figcaption></figure><p>We want to click “Use Public Resolver”. This can be changed later if you want to <a href="https://docs.ens.domains/contract-developer-guide/writing-a-resolver">make a custom resolver</a>. This should trigger a transaction. Don’t worry if your resolver address is different from the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FT-LyaDij3J3xCMRHXB-1w.png" /></figure><p>Now we are going to add a record. When you click the “+” you should see the screenshot below. In the drop-down select “address”, then copy paste the address you want your domain to resolve to (the address you want your domain to “equal”). Then hit “Save”. This should trigger a transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBkcUlJncpowH_Czug7Nxw.png" /><figcaption>Adding an address as a record.</figcaption></figure><p>Once your transaction has successfully mined it should ask you to set your reverse record. The address you entered in the previous step should be greyed out with your domain name under it. This is setting the address your domain name reverse resolves to. Once you are pretty sure this is the address you want your name to resolve to click “Save”. This should also trigger a transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEMbbo2P7i48eGvLu7A-Kw.png" /><figcaption>Setting the address your ENS domain name will resolve to</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*QrgPNj7mYWRgKmMDS6bp6w.png" /><figcaption>Your ENS domain is all set up!</figcaption></figure><p>You should get a little confirmation when the transaction has successfully mined.</p><h3>Step 4: Subdomains</h3><p>Switch to the subdomain tab (at the top, across from your domain name).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*er3I2ZTuM7DD2Dzdbtz1VQ.png" /><figcaption>The subdomain tab</figcaption></figure><p>Go ahead and “Add Subdomain”. The label you enter for your subdomain does not need to be followed by your domain name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QVMqQcM_OAkXw5ptSvm7fQ.png" /><figcaption>Don’t: add your domain after the subdomain</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kn3UtcocShPhbvbG-ZD4_A.png" /><figcaption>Do: just write down the subdomain</figcaption></figure><p>Hit save. This will trigger a transaction. When your transaction mines, the subdomain should appear below the “Add Subdomain” button. Click on your new subdomain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blNsOKiwnfVN-dM6GwhKCw.png" /><figcaption>Manager page for your subdomain</figcaption></figure><p>We need to set the resolver, again using the public resolver (it’s the same process). Once your resolver is set we are going to add a record, again this is exactly the same process as when you did it for your domain.</p><p>“+” add record &gt; choose “address” in the drop-down &gt; paste the address you want this subdomain to resolve to &gt; “Save”, approve the transaction. Then you should get the message below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTQKUdTapDbYPo4WSe-0hw.png" /><figcaption>Message drop down</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-iKDbNiq6L6xqV6-fDEb-w.png" /><figcaption>The message dropped down</figcaption></figure><p>Click “Save”, approve the transaction and then you are done!</p><h3>Implementing ENS in a dApp</h3><p>Want to know how to implement ENS in a dApp? Check out this <a href="https://github.com/Nicca42/Ethereum/tree/master/Educational/SimpleBankWithENS">repo I made</a>, showing the basics for ENS implementation, creating subdomains and the how-to javaScript goodness.</p><p><strong>Endnote: If you want to get updates on what the next tool I’m covering is, or if you just want to connect, I’m active </strong><a href="https://twitter.com/Vonnie610"><strong>on Twitter</strong></a><strong>, or </strong><a href="https://medium.com/@vonnie610"><strong>follow me here</strong></a><strong> on Medium.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5109572ef2bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/a-step-by-step-guide-to-buying-an-ens-domain-on-mainnet-5109572ef2bf">A step by step guide to buying an ENS domain on mainnet</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A step by step guide to ENS Domains on testnets & mainnet]]></title>
            <link>https://vonnie610.medium.com/a-step-by-step-guide-to-ens-domains-on-testnets-mainnet-3f549fcf1f1f?source=rss-f576c21b2103------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f549fcf1f1f</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum-name-service]]></category>
            <dc:creator><![CDATA[Veronica Coutts]]></dc:creator>
            <pubDate>Tue, 07 May 2019 16:31:01 GMT</pubDate>
            <atom:updated>2020-06-06T13:58:26.397Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMSONMi8PzR5QYfQeAiJRw.png" /><figcaption>Ethereum Name Service (ENS)</figcaption></figure><h3>A step by step guide to buying ENS domains on testnets</h3><h4>Like any sane blockchain developer, let’s start by going through the process on the testnet. I would also highly recommend reading the whole article before you actually start.</h4><p>Don’t know the fundamentals? Check out <a href="https://youtu.be/FPpSZyWRMFg">this short video</a> explaining the basics.</p><p><strong>Note:</strong> This was written before the permanent registrar was released. There will be another article about the mainnet process. The testnet process has not changed.</p><h3>A quick table of content:</h3><h4><a href="https://medium.com/p/3f549fcf1f1f#d41b">Testnets</a></h4><p><a href="https://medium.com/p/3f549fcf1f1f#a244">Step 1: Checking name availability</a></p><p><a href="https://medium.com/p/3f549fcf1f1f#5b6f">Step 2: “Buying” the domain</a></p><p><a href="https://medium.com/p/3f549fcf1f1f#40de">Step 3: Setting up your domain</a></p><p><a href="https://medium.com/p/3f549fcf1f1f#e22c">Step 4: Subdomains</a></p><h4><a href="https://medium.com/p/3f549fcf1f1f#051c">Mainnet</a></h4><p><a href="https://medium.com/p/3f549fcf1f1f#e41b">Step 1: Checking name availability</a></p><h3>Testnets</h3><h4>Step 1: Checking name availability.</h4><p>Head over to the <a href="https://manager.ens.domains/">ENS domain manager</a>. You should land here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tP_FrFpQCy1Ir1Dw8K4ig.png" /><figcaption><a href="https://manager.ens.domains/">ENS domain manager</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*LncJQ1GDN0vi4y83vce2pQ.png" /><figcaption>Metamask network options</figcaption></figure><p>Check that your network is a suitable test net (Rinkeby, Robsten or Goerli). A side note, the whole process is a little sketchy on Rinkeby, so if you can use a different network, do so.</p><p>You can change the network you are on with <a href="https://metamask.io/">Metamask</a>. To change your network, open metamask on the ENS manager page, select the drop-down (pointed to in purple) and then select an appropriate testnet (the ticked ones).</p><p>On tests nets, enter the name of the domain you want, followed by .test. On Robsten and Goerli you can get .eth domains (to test out the mainnet registration process).</p><h4>Step 2: “Buying” the domain</h4><p>If your domain is available you should be redirected to the page below. A few things to take note of, the underlined network (just to be <em>extra</em> sure you are on the right network). Then there is a little notice pointed to, in case you can’t read it there it says:</p><blockquote>Note: <em>.test </em>domain allows anyone to claim an unused name for test purposes, which expires after 28 days</blockquote><p>The above also applies to .eth domains bought on testnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kEJLmQMG1-dtFQtOOMRww.png" /><figcaption>The page you see once you have searched an available name before you claim it</figcaption></figure><p>It’s cut off in the screenshot above, but there should be a blue claim button somewhere on the right. This will make the wallet you currently have unlocked in Metamask the proud owner of a .test domain! Clicking the Claim should trigger a transaction. triggering Metamask to pop up asking for approval.</p><p>Your transaction might take a while to mine, so be patient. The page will automatically update when it is mined, but if it makes you feel better you can keep hitting F5 till it changes. When it does change it should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEgm46mTEeNzlyDnwgPEkA.png" /><figcaption>The page that loads once you have claimed a test domain</figcaption></figure><h4>Step 3: Setting up your domain</h4><p>Now you own a domain, its time to set it up. You should notice that the resolver address is blank. The resolver will allow dApps to resolve your domain names. Not sure what that means? Check out <a href="https://youtu.be/FPpSZyWRMFg">this super short video</a> I made explaining the basics.</p><p>To get the resolver address on testnets (not Robsten sadly) you can get the address by looking up the address of resolver.eth . If on your chosen testnet that address is empty, a quick google should sort you out. Or (if it works on your testnet) by clicking the “User Public Resolver”.</p><p>Right now let’s save it! This should also trigger a transaction and Metamask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWBkznMYkdvh_pItQ4RVYw.png" /></figure><p>Once you have set the address of your resolver, we need to set the first record. The address you put in will be the address the ENS domain name will resolve to. Once the record is added it will ask you to set the reverse record, go ahead and save that. If you are on Rinkeby, I have never been able to get to this step using this dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cqyvg-HDLCgo668VhWdFdw.png" /><figcaption>Saving the address as the address your domain points to.</figcaption></figure><p><strong>Note:</strong> if you are setting this address to the address of a contract, the contract will not be able to create new subdomains or do any owner only functionality. If you want to check which functions are owner only (or what functions there are in general as well as an implemented example of a dApp using ENS) head over to my <a href="https://github.com/Nicca42/Ethereum/tree/master/Educational/SimpleBankWithENS">Simple Bank With ENS repo</a>. Or once you are done with setting the domain up you can transfer ownership to the contract.</p><h4>Step 4: Subdomains</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cw68XQV4C73geZV79FOMw.png" /><figcaption>The top bar where you change to subdomains</figcaption></figure><p>On the top bar, there is a slider that goes from details to subdomains. We want to slide that. When you add a subdomain, you only need to add the actual name you want, not the whole domain again (it will stop you if you try anyway). To enable your dApp to make subdomains, see <a href="https://medium.com/p/3f549fcf1f1f#e8ef">implementing ENS in your dApp</a>.</p><p>And that’s a wrap, onto mainnet!</p><h3>Mainnet</h3><p>I was halfway through bidding for a mainnet domain when ENS released their <a href="https://docs.ens.domains/permanent-registrar-faq">permanent registrar</a>. When they did this pretty much all the tooling for the previous registrar absolutely 💩 themselves. So this section will be updated/linked once all the tools are pointing to the new registrar. These steps for name availability are still valid <strong>😅</strong>.</p><h4>Step 1: Checking name availability.</h4><p>Head to <a href="https://enslisting.com/">this website</a>. Its where the listing of names available to buy and sell are. Search your name. If the name you want is taken it will give you the option to “Solicit now”. This will let you bid for the name. Otherwise, it should look like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54N9r5wKOWsDxJruWbzI2g.png" /></figure><p>You can also check name availability on My Ether Wallet, and you might as well because you are going to have to do the rest of the process on My Ether wallet. If you have a MEW wallet then you are set, otherwise, head <a href="https://www.myetherwallet.com/">here</a> and make one. Then head over to the Dapps tab on the left, it should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQd56_l5B51BdxXle5PGcQ.png" /><figcaption>My ether wallet dApps page</figcaption></figure><p>Click ENS manager. Then search your name. If it&#39;s not available it will just give you information about the domain. Otherwise, it should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saC5opAVG-beeznTJ8QtAg.png" /><figcaption>An available names page on MEW</figcaption></figure><p>For the next step: <a href="https://medium.com/hackernoon/a-step-by-step-guide-to-buying-an-ens-domain-on-mainnet-5109572ef2bf">How to buy ENS domain on mainnet</a>.</p><p>Endnote: If you want to get updates on what the next tool I’m covering is, or if you just want to connect, hmu <a href="https://twitter.com/Vonnie610">on twitter</a>. Shout out to <a href="https://twitter.com/nicksdjohnson">@nicksdjohnson</a> for answering my questions and pointing out cool extra tidbits. 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f549fcf1f1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>