<?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 Osunkunle Olanrewaju on Medium]]></title>
        <description><![CDATA[Stories by Osunkunle Olanrewaju on Medium]]></description>
        <link>https://medium.com/@osunkunleolanrewaju?source=rss-863153785173------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ina7npCygnKCv8E_.jpg</url>
            <title>Stories by Osunkunle Olanrewaju on Medium</title>
            <link>https://medium.com/@osunkunleolanrewaju?source=rss-863153785173------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:52:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osunkunleolanrewaju/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[Exploring Kryvora: A Hands-On Look at the Node, Swap, and Bridge]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/exploring-kryvora-a-hands-on-look-at-the-node-swap-and-bridge-8ed8c11ee30d?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ed8c11ee30d</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 11:59:34 GMT</pubDate>
            <atom:updated>2026-09-09T11:59:34.296Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly walkthrough of the Kryvora ecosystem — what it is, how it works, and how to start participating.</em></p><p>If you’ve been exploring Ethereum Layer 2 networks lately, you’ve probably noticed a common theme: everyone is chasing the same goal — faster transactions, lower fees, and a smoother developer experience, without sacrificing the security that makes Ethereum trustworthy in the first place. Kryvora is one of the newer projects taking a shot at this, and after spending time testing its Swap and Bridge on testnet — plus digging into its freshly launched Node system — I wanted to put together a practical overview for anyone curious about where to start.</p><p>This post covers four things: what Kryvora actually is, how the Bridge works, how the Swap works, and what the new Node License system means for the network.</p><h3><strong>What Is Kryvora?</strong></h3><p>Kryvora is an EVM-equivalent Ethereum Layer 2 network. In plain terms, that means it’s built to behave just like Ethereum from a developer’s perspective — the same tooling, the same smart contract standards — while processing transactions off the main chain to keep things fast and cheap. Activity ultimately settles back to Ethereum, which is what gives L2s like this their security backbone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GSyFpIL9-bz9V5qznjr_g.png" /></figure><p>Right now, Kryvora is live on testnet, which is the ideal time to explore it: you can test every core feature — bridging, swapping, running infrastructure — without any real financial risk, using the official faucet to get testnet ETH.</p><h3>Bridging Into Kryvora</h3><p>The Bridge is the entry point to the network. It moves Sepolia ETH from Ethereum’s testnet into Kryvora’s L2 environment.</p><p>What stood out to me using it is how deliberately cautious the process is. The Bridge doesn’t just fire off your deposit and assume it landed — it waits for a confirmed receipt on the Ethereum (L1) side before your funds are recognized on Kryvora. That extra confirmation step takes a little more patience than some flashier bridges, but it’s the right trade-off: it reduces the chance of funds getting stuck in limbo between chains, which is one of the more common failure points for cross-chain bridges in general.</p><p>Practically, the flow looks like this:</p><ol><li>Grab testnet ETH from the Kryvora faucet if you don’t already have some.</li><li>Connect your wallet on the Bridge interface.</li><li>Deposit ETH and wait for the L1 confirmation.</li><li>Your balance shows up on Kryvora, ready to use.</li></ol><p><a href="https://www.youtube.com/watch?v=lZUY0L6zanc">https://www.youtube.com/watch?v=lZUY0L6zanc</a></p><p>It’s a straightforward process, but the wait-for-confirmation design is worth calling out — it’s a small detail that says a lot about how the team is thinking about reliability.</p><h3><strong>Swapping on Kryvora</strong></h3><p>Once your ETH is on the network, the Swap feature is where you actually start interacting with Kryvora’s token ecosystem. It’s a fairly standard AMM-style interface — connect your wallet, pick a pair, and swap.</p><p>Right now you can trade between ETH and Kryvora’s testnet tokens (KALPHA and KBETA), with liquidity pools charging a 0.30% fee, which is in line with what you’d expect from most decentralized exchanges. There’s also a liquidity provision option, so if you want to go beyond simple swaps, you can add to a pool and track your share of the reserves directly from the interface.</p><p><a href="https://www.youtube.com/watch?v=AuqD0c01qWw">https://www.youtube.com/watch?v=AuqD0c01qWw</a></p><p>Two things I appreciated as a user: the interface shows pool reserves and RPC status in real time, and quick-select buttons (25%, 50%, MAX) make it fast to test different trade sizes without manually calculating amounts. For anyone new to DeFi, this is a low-stakes way to get comfortable with how swaps and liquidity pools actually function under the hood.</p><h3><strong>The Kryvora Node: The Main Event</strong></h3><p>While I haven’t run one myself yet, this is arguably the most important piece of the ecosystem right now — and it’s the centerpiece of Kryvora’s current phase of growth. Kryvora recently announced that its Node infrastructure has officially gone live, alongside an Early Node License system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CC-4pKRACFP9ux3dyalRYA.png" /></figure><h4>Purpose</h4><p>At its core, a Kryvora Node exists to verify network activity independently. Rather than trusting a single operator or a small handful of servers to tell the truth about what’s happening on-chain, nodes let a distributed set of participants check that activity for themselves. That’s the whole point of decentralization: no single party should be able to quietly manipulate the record, because too many independent eyes are watching it.</p><h4>Benefits</h4><p>Running (or simply relying on) a healthy node network has knock-on effects for everyone using Kryvora, not just the operators:</p><ul><li><strong>Stronger decentralization</strong> — the more independent operators there are, the harder the network is to censor, manipulate, or take offline.</li><li><strong>Verifiable trust</strong> — node status is signed and inspectable, so claims about network health aren’t just marketing copy.</li><li><strong>Early positioning</strong> — for operators themselves, getting in during the Early Node License phase means being part of the network’s foundational layer rather than joining after the infrastructure is already saturated.</li><li><strong>Network resilience</strong> — distributing verification work across many nodes reduces the risk of any single point of failure.</li></ul><h4>Development</h4><p>Kryvora didn’t launch node infrastructure on day one — it rolled it out deliberately, alongside a gated access system. Rather than letting anyone spin up unlimited nodes immediately and risk overloading the network early on, the team introduced an Early Node License requirement. That’s a healthier way to scale decentralization: grow the operator base in a controlled way, monitor how the network handles it, and expand access as infrastructure matures. Practically, running a node means operating your own infrastructure (commonly a VPS), binding it to a Genesis Node Key, and being able to inspect your signed node status directly.</p><h4>Role Within the Ecosystem</h4><p>Nodes sit underneath everything else in Kryvora — the Bridge, the Swap, the block explorer, the task portal — because all of it depends on network activity being trustworthy and verifiable. Users interacting with the Swap or Bridge benefit from node verification even if they never run one themselves; it’s the quiet infrastructure layer that makes the rest of the ecosystem credible. For anyone technically inclined and looking to get involved beyond just using the dApps, securing a Node License is the clearest way to become part of Kryvora’s underlying infrastructure rather than just a user of it.</p><h3>On-Chain Activity and the Bigger Picture</h3><p>Beyond the Bridge, Swap, and Node, Kryvora also runs a public block explorer, letting anyone inspect transactions, verify contracts, and track network activity in real time. That kind of transparency matters — it’s how a community actually verifies that a network is doing what it claims to do, rather than just taking marketing claims at face value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rdd_b-_VjPuRO-0SnjTOFg.png" /></figure><p>Between the task portal, the dApp suite, and the Node system, Kryvora is building out the standard toolkit of an emerging L2: infrastructure for developers, liquidity for users, and a way for the community to get directly involved in securing the network — not just using it.</p><h3>Why This Matters Right Now</h3><p>Testnet phases are where the real groundwork of a network gets laid — bugs get caught, early community members get familiar with the tooling, and the people who show up early are usually the ones most invested in the project’s long-term success. If you’re curious about Layer 2s, DeFi mechanics, or blockchain infrastructure in general, Kryvora’s current stage is a genuinely useful (and free) place to learn by doing.</p><p>Try the Bridge, test a swap, look into securing a Node License, and see the network from the inside rather than just reading about it.</p><p><strong>Explore Kryvora:</strong></p><ul><li>Task Portal: <a href="https://tasks.kryvora.network/">tasks.kryvora.network</a></li><li>Website: <a href="https://kryvora.network/">https://kryvora.network/</a></li><li>DApps (Swap/Bridge): <a href="https://dapps.kryvora.network/#bridge">dapps.kryvora.network</a></li><li>Node Center: <a href="https://node.kryvora.network/">node.kryvora.network</a></li><li>Docs:<a href="https://kryvora.network/docs"> kryvora.network/docs</a></li><li>Follow: <a href="https://x.com/KryvoraNetwork">@KryvoraNetwork</a></li></ul><p>#Kryvora #Kryvorians #KryvoraCommunityChallenge2026</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ed8c11ee30d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Hackathon Judge on GenLayer — Subjective Scoring with the Prompt Comparative…]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/building-an-ai-hackathon-judge-on-genlayer-subjective-scoring-with-the-prompt-comparative-6f4cade146f7?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f4cade146f7</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 16:00:56 GMT</pubDate>
            <atom:updated>2026-06-15T16:00:56.425Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an AI Hackathon Judge on GenLayer — Subjective Scoring with the Prompt Comparative Equivalence Principle</h3><p><em>This is the third post in my GenLayer series. If you’ve followed along, you’ve seen how to fetch live web data with </em><strong><em>gl.nondet.web.get_text</em></strong><em> and build a custom equivalence principle with </em><strong><em>gl.vm.run_nondet_unsafe</em></strong><em> (the BTC Price Bet contract). This time we go further: we’ll have an LLM make a genuinely subjective judgment call — scoring a hackathon submission — and let the network reach consensus on something that doesn’t have a single “correct” answer.</em></p><h3>What We’re Building</h3><p>A hackathon judging contract that:</p><ol><li>The <strong>organizer</strong> deploys with a <strong>rubric</strong> — plain English judging criteria, e.g. <em>“Judge on innovation (50%) and code quality (50%)”</em></li><li>The organizer <strong>funds a prize pool</strong> in GEN</li><li><strong>Participants</strong> submit their GitHub repo URL</li><li>Anyone calls judge_project() — the contract <strong>fetches the repo’s README, sends it to an LLM along with the rubric, and gets back a 0–100 score and one-line feedback</strong></li><li>Once everyone is judged, the organizer calls distribute_prizes() — the contract <strong>ranks all submissions and automatically pays out 50% / 30% / 20% to the top 3</strong></li></ol><p>No human judges. No spreadsheet. No manual wire transfers. The scoring, ranking, and payout all happen inside the Intelligent Contract.</p><h3>The New Concept: Subjective Consensus</h3><p>In the BTC Price Bet contract, we used gl.vm.run_nondet_unsafe with a hand-written validator_fn that checked “is the leader’s price within 1% of mine?” That works great for <strong>numbers</strong> — prices are objective facts.</p><p>But “is this hackathon project innovative?” doesn’t have that kind of answer. Two validators running the <em>exact same prompt</em> against the <em>exact same README</em> might reasonably come back with scores of 82 and 87, and slightly different wording in their feedback. Neither is “wrong.” This is the <strong>subjective consensus problem</strong>, and GenLayer has a purpose-built tool for it:</p><p><strong><em>gl.eq_principle.prompt_comparative(fn, principle)</em></strong><em> — runs fn on the leader and on each validator. Instead of checking for exact equality, an LLM compares the two results against a </em><strong><em>principle you write in plain English</em></strong><em> and decides whether they represent the same underlying judgment.</em></p><p>Here’s the shape of it:</p><pre>def nondet():<br><br>    # do the subjective work — fetch data, call an LLM, return a result<br><br>    return {&quot;score&quot;: 85, &quot;feedback&quot;: &quot;Clean architecture, novel use case.&quot;}<br><br>result = gl.eq_principle.prompt_comparative(<br><br>    nondet,<br><br>    &quot;The scores must be within 10 points of each other and both represent &quot;<br><br>    &quot;the same overall judgment of project quality relative to the rubric.&quot;<br><br>)</pre><p>Compare this to gl.vm.run_nondet_unsafe, where <em>you</em> write the comparison logic in code. With prompt_comparative, <em>you describe the comparison in English</em> and an LLM applies it. This is the right tool whenever “equivalent” means “same ballpark, same verdict” rather than “identical bits.”</p><h3>Two New Storage Types: DynArray and Multi-Key TreeMaps</h3><p>The BTC bet only needed a handful of scalar fields. A hackathon with an unknown number of participants needs:</p><ul><li>An <strong>ordered list</strong> of participant addresses, so we can iterate over everyone and rank them</li><li><strong>Multiple lookup tables</strong> keyed by address — repo URL, score, feedback, judged status</li></ul><p>GenLayer’s storage system provides exactly these:</p><p><strong>participants: </strong>DynArray[str] # like a Python list, but on-chain</p><p><strong>repo_urls:</strong> TreeMap[str, str] # address -&gt; repo URL</p><p><strong>scores:</strong> TreeMap[str, u256] # address -&gt; score</p><p><strong>feedback:</strong> TreeMap[str, str] # address -&gt; feedback text</p><p><strong>judged:</strong> TreeMap[str, bool] # address -&gt; has been judged?</p><p>DynArray[str] supports .append(), len(), and iteration with for x in … — everything you’d expect from a list. TreeMap[K, V] supports [] access, .get(key, default), and assignment. As with the BTC bet, addresses are stored as str (no native Address | None, remember).</p><h3>Project Setup</h3><p>Same as before — either use <a href="https://studio.genlayer.com/contracts">studio.genlayer.com</a> directly (recommended), or the CLI:</p><pre>pip install genlayer<br><br>genlayer init hackathon-judge<br><br>cd hackathon-judge<br><br>genlayer up</pre><p>You’ll want <strong>at least 3 test accounts</strong> in Studio this time — one organizer and 2–3 participants — to see the ranking and prize split in action.</p><h3>Step 1 — State and Constructor</h3><pre># { &quot;Depends&quot;: &quot;py-genlayer:1jb45aa8ynh2a9c9xn3b7qqh8sm5q93hwfp7jqmwsfhh8jpz09h6&quot; }<br><br>from genlayer import *<br><br>import json<br><br>class HackathonJudge(gl.Contract):<br><br>    organizer:    str<br><br>    rubric:       str<br><br>    prize_pool:   u256<br><br>    distributed:  bool<br><br>    participants: DynArray[str]<br><br>    repo_urls:    TreeMap[str, str]<br><br>    scores:       TreeMap[str, u256]<br><br>    feedback:     TreeMap[str, str]<br><br>    judged:       TreeMap[str, bool]<br><br>    def __init__(self, rubric: str) -&gt; None:<br><br>        if rubric == &quot;&quot;:<br><br>            raise gl.vm.UserError(&quot;Rubric cannot be empty&quot;)<br><br>        self.organizer   = str(gl.message.sender_address)<br><br>        self.rubric      = rubric<br><br>        self.prize_pool  = u256(0)<br><br>        self.distributed = False</pre><p>The constructor captures <strong>gl.message.sender_address</strong> as the <strong>organizer</strong> — this is our access-control anchor. Only this address will be allowed to call <strong>distribute_prizes() </strong>later. <strong>DynArray </strong>and <strong>TreeMap </strong>fields don’t need explicit initialization in <strong>__init__</strong> — they start out empty automatically.</p><h3>Step 2 — Funding the Prize Pool</h3><pre>@gl.public.write.payable<br><br>def fund_pool(self) -&gt; None:<br><br>    if self.distributed:<br><br>        raise gl.vm.UserError(&quot;Cannot fund after prizes are distributed&quot;)<br><br>    if gl.message.value == u256(0):<br><br>        raise gl.vm.UserError(&quot;Must send GEN (set value &gt; 0)&quot;)<br><br>    self.prize_pool = self.prize_pool + gl.message.value</pre><p>Nothing new here — <strong>@gl.public.write.payable</strong> and <strong>gl.message.value</strong> work exactly as they did in the BTC bet. We deliberately allow <strong>anyone</strong> to call this, not just the organizer — sponsors or community members could top up the pool too. We guard against funding after <strong>distributed </strong>is set, since at that point the payout math has already run.</p><h3>Step 3 — Submitting a Project</h3><pre>@gl.public.write<br><br>def submit_project(self, repo_url: str) -&gt; None:<br><br>    if self.distributed:<br><br>        raise gl.vm.UserError(&quot;Submissions are closed&quot;)<br><br>    if repo_url == &quot;&quot;:<br><br>        raise gl.vm.UserError(&quot;repo_url cannot be empty&quot;)<br><br>    addr = str(gl.message.sender_address)<br><br>    if self.repo_urls.get(addr, &quot;&quot;) != &quot;&quot;:<br><br>        raise gl.vm.UserError(&quot;You have already submitted a project&quot;)<br><br>    self.repo_urls[addr] = repo_url<br><br>    self.judged[addr]    = False<br><br>    self.participants.append(addr)</pre><p>Three things to notice:</p><ol><li><strong>self.repo_urls.get(addr, “”)</strong> — the TreeMap.get(key, default) pattern. Since “” is our “not set” sentinel (same convention as the BTC bet), checking != “” tells us whether this address has already submitted.</li><li><strong>self.participants.append(addr)</strong> — this is the first time we’ve written to a DynArray. It behaves exactly like list.append() in plain Python.</li><li>We initialize self.judged[addr] = False explicitly here, rather than relying on TreeMap.get()’s default later — this keeps the data model explicit (every participant has a judged flag from the moment they submit).</li></ol><h3>Step 4 — Judging a Project (The Core Logic)</h3><p>This is the heart of the contract. Let’s build it in pieces.</p><p><strong>4a. Validation and capturing state before the nondet block</strong></p><pre>@gl.public.write<br><br>def judge_project(self, participant: str) -&gt; None:<br><br>    if self.distributed:<br><br>        raise gl.vm.UserError(&quot;Judging is closed — prizes already distributed&quot;)<br><br>    repo_url = self.repo_urls.get(participant, &quot;&quot;)<br><br>    if repo_url == &quot;&quot;:<br><br>        raise gl.vm.UserError(&quot;No submission found for this participant&quot;)<br><br>    if self.judged.get(participant, False):<br><br>        raise gl.vm.UserError(&quot;This participant has already been judged&quot;)<br><br>    # Capture BEFORE entering the nondet block — self.* is inaccessible inside it<br><br>    rubric_text = self.rubric</pre><p>Just like in the BTC bet, we read everything we need from storage <strong>before</strong> entering the non-deterministic block. repo_url and rubric_text are now plain local variables.</p><p><strong>4b. The LLM call</strong></p><pre>def nondet():<br><br>        readme = gl.nondet.web.get_text(repo_url)<br><br>        prompt = f&quot;&quot;&quot;<br><br>You are judging a hackathon submission.<br><br>RUBRIC:<br><br>{rubric_text}<br><br>PROJECT README / REPOSITORY CONTENT:<br><br>{readme[:3000]}<br><br>Score this project from 0 to 100 based on how well it satisfies the rubric.<br><br>Respond using ONLY the following JSON format, nothing else:<br><br>{{&quot;score&quot;: &lt;integer 0-100&gt;, &quot;feedback&quot;: &quot;&lt;one sentence of feedback&gt;&quot;}}<br><br>It is mandatory that you respond only using the JSON format above.<br><br>Do not include any other words, explanation, or formatting.<br><br>&quot;&quot;&quot;<br><br>        res = gl.nondet.exec_prompt(prompt)<br><br>        res = res.replace(&quot;```json&quot;, &quot;&quot;).replace(&quot;```&quot;, &quot;&quot;).strip()<br><br>        data = json.loads(res)<br><br>        score = int(data[&quot;score&quot;])<br><br>        score = max(0, min(100, score))  # clamp to valid range<br><br>        return {&quot;score&quot;: score, &quot;feedback&quot;: str(data[&quot;feedback&quot;])}</pre><p>A few details worth calling out:</p><ul><li><strong>gl.nondet.exec_prompt(prompt)</strong> is the actual LLM call — it returns a raw string.</li><li>We truncate the README to [:3000] characters. LLM context windows aren’t infinite, and most of the signal in a README is in the first few thousand characters anyway.</li><li>The res.replace(“```json”, “”)… line strips markdown code fences. LLMs love wrapping JSON in ```json … ``` blocks even when told not to — this defensive cleanup is standard practice and appears in GenLayer’s own official examples.</li><li><strong>Clamping the score</strong> (max(0, min(100, score))) protects against an LLM occasionally returning something like 105 or -3.</li></ul><p><strong>4c. The Equivalence Principle call</strong></p><pre> result = gl.eq_principle.prompt_comparative(<br><br>        nondet,<br><br>        &quot;The scores must be within 10 points of each other and both &quot;<br><br>        &quot;represent the same overall judgment of project quality &quot;<br><br>        &quot;relative to the rubric.&quot;<br><br>    )<br><br>    self.scores[participant]   = u256(result[&quot;score&quot;])<br><br>    self.feedback[participant] = result[&quot;feedback&quot;]<br><br>    self.judged[participant]   = True</pre><p>This single line replaces the entire leader_fn / validator_fn pair from the BTC bet. prompt_comparative runs nondet on the leader, runs it again independently on each validator, and uses an LLM to check the <strong>principle</strong> — “are these two scores and assessments close enough to represent the same judgment?” If they diverge wildly (say, one validator scores 20 and another scores 90), consensus fails and the transaction doesn’t go through — which is exactly the safety property we want.</p><h3>Step 5 — Distributing Prizes</h3><p>This is where everything comes together, and it’s entirely <strong>deterministic</strong> — no nondet block at all.</p><pre>@gl.public.write<br><br>def distribute_prizes(self) -&gt; None:<br><br>    if str(gl.message.sender_address) != self.organizer:<br><br>        raise gl.vm.UserError(&quot;Only the organizer can distribute prizes&quot;)<br><br>    if self.distributed:<br><br>        raise gl.vm.UserError(&quot;Prizes have already been distributed&quot;)<br><br>    if len(self.participants) == 0:<br><br>        raise gl.vm.UserError(&quot;No participants to judge&quot;)<br><br>    # Ensure every participant has been judged<br><br>    for addr in self.participants:<br><br>        if not self.judged.get(addr, False):<br><br>            raise gl.vm.UserError(f&quot;Participant {addr} has not been judged yet&quot;)<br><br>    # Build a plain Python list and sort it — fully deterministic<br><br>    ranked: list[tuple[str, int]] = []<br><br>    for addr in self.participants:<br><br>        ranked.append((addr, int(self.scores.get(addr, u256(0)))))<br><br>    ranked.sort(key=lambda pair: pair[1], reverse=True)<br><br>    splits = [50, 30, 20]<br><br>    pool   = int(self.prize_pool)<br><br>    for i in range(min(3, len(ranked))):<br><br>        addr, _score = ranked[i]<br><br>        payout = pool * splits[i] // 100<br><br>        if payout &gt; 0:<br><br>            gl.get_contract_at(Address(addr)).transfer(<br><br>                value=u256(payout), on=&quot;finalized&quot;<br><br>            )<br><br>    self.distributed = True</pre><p><strong>Access control</strong> — str(gl.message.sender_address) != self.organizer is the same pattern used to validate addresses throughout: convert to str, compare against the stored str.</p><p><strong>Why is sorting safe here, with no equivalence principle?</strong> Because by this point, every score is already finalized on-chain storage — a deterministic value every validator reads identically. Sorting a list of (address, int) tuples is pure, deterministic Python. There’s nothing non-deterministic left to reconcile. This is an important distinction: <strong>non-determinism comes from external data sources (web, LLMs), not from computation on values already agreed upon.</strong></p><p><strong>The payout loop</strong> mirrors the BTC bet’s single payout, just repeated for up to 3 winners: gl.get_contract_at(Address(addr)).transfer(value=…, on=”finalized”).</p><h3>Step 6 — View Methods</h3><pre>@gl.public.view<br><br>def get_status(self) -&gt; dict:<br><br>    return {<br><br>        &quot;organizer&quot;:         self.organizer,<br><br>        &quot;rubric&quot;:            self.rubric,<br><br>        &quot;prize_pool_wei&quot;:    int(self.prize_pool),<br><br>        &quot;participant_count&quot;: len(self.participants),<br><br>        &quot;distributed&quot;:       self.distributed,<br><br>    }<br><br>@gl.public.view<br><br>def get_leaderboard(self) -&gt; list:<br><br>    result = []<br><br>    for addr in self.participants:<br><br>        result.append({<br><br>            &quot;address&quot;:  addr,<br><br>            &quot;repo_url&quot;: self.repo_urls.get(addr, &quot;&quot;),<br><br>            &quot;score&quot;:    int(self.scores.get(addr, u256(0))),<br><br>            &quot;feedback&quot;: self.feedback.get(addr, &quot;&quot;),<br><br>            &quot;judged&quot;:   self.judged.get(addr, False),<br><br>        })<br><br>    return result<br><br>@gl.public.view<br><br>def get_submission(self, addr: str) -&gt; dict:<br><br>    return {<br><br>        &quot;repo_url&quot;: self.repo_urls.get(addr, &quot;&quot;),<br><br>        &quot;score&quot;:    int(self.scores.get(addr, u256(0))),<br><br>        &quot;feedback&quot;: self.feedback.get(addr, &quot;&quot;),<br><br>        &quot;judged&quot;:   self.judged.get(addr, False),<br><br>    }</pre><p><strong>get_leaderboard() </strong>is the one to watch in the Studio — call it after each <strong>judge_project()</strong> and watch scores populate in real time, then again after <strong>distribute_prizes()</strong>.</p><h3>Testing It in GenLayer Studio</h3><p><strong>1. Deploy</strong> — paste the contract, deploy with rubric = “Judge on innovation (50%) and code quality (50%)”.</p><p><strong>2. Fund the pool</strong> — as the organizer account, call fund_pool() with value 100000000000000000000 (100 GEN).</p><p><strong>3. Submit projects</strong> — switch to 2–3 different accounts and call submit_project() with real, public GitHub repo URLs (e.g. some popular open-source projects — the LLM needs something to read).</p><p><strong>4. Judge each one</strong> — call judge_project(participant_address) for each participant. Watch the Studio logs: you’ll see the web fetch, the LLM call, and the validators converging on a score via prompt_comparative.</p><p><strong>5. Check the leaderboard</strong> — call get_leaderboard(). You should see scores and one-line feedback for everyone.</p><p><strong>6. Distribute</strong> — as the organizer, call distribute_prizes(). The top 3 addresses (by score) receive 50/30/20% of the pool.</p><h3>Key Takeaways</h3><p><strong>gl.eq_principle.prompt_comparative(fn, principle)</strong> — the tool for subjective consensus. You write <em>what “equivalent” means</em> in plain English; an LLM applies it across validators. Use this whenever outputs are evaluative rather than factual.</p><p><strong>DynArray[str]</strong> — an on-chain list. Supports .append(), len(), and iteration, just like Python.</p><p><strong>Multiple TreeMaps as a relational model</strong> — instead of one big struct per participant, GenLayer contracts often use several parallel TreeMaps keyed by the same address. It reads like a set of database columns.</p><p><strong>Stripping code fences from LLM JSON</strong> — res.replace(“```json”, “”).replace(“```”, “”) is a defensive pattern you’ll use in almost every prompt-based contract.</p><p><strong>Clamping LLM outputs</strong> — max(0, min(100, score)) guards against out-of-range values from a model that didn’t perfectly follow instructions.</p><p><strong>Determinism after consensus</strong> — once a value is written to storage via a nondet block, all further computation on it (sorting, ranking, arithmetic) is ordinary deterministic code. Non-determinism is a property of <em>external data fetches</em>, not of computation in general.</p><p><strong>Address-based access control</strong> — str(gl.message.sender_address) != self.organizer is the standard “only the owner can call this” pattern in GenLayer.</p><h3>What’s Next</h3><p>This contract makes a few simplifying choices that are worth extending:</p><ul><li><strong>Anti-gaming</strong>: a participant could submit a repo, wait for it to be judged favorably, then quietly push different code before the hackathon ends. A production version might snapshot the repo’s commit hash at judging time.</li><li><strong>Multi-round judging</strong>: average scores across multiple judge_project() calls (perhaps from different “judge” addresses) for more robust rankings.</li><li><strong>Refunding unused prize shares</strong>: if fewer than 3 participants enter, the unallocated portion of the pool currently stays locked in the contract.</li></ul><p>The pattern, though, stays the same: fetch external data inside gl.nondet, let the Equivalence Principle reconcile subjective or variable results, and keep all ranking and payout logic in plain deterministic Python.</p><p>The full source code and test suite are available in the repository linked below.</p><p><a href="https://github.com/lario0913/genlayer_hackathon_judge">https://github.com/lario0913/genlayer_hackathon_judge</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f4cade146f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Trustless BTC Price Bet on GenLayer — A Deep Dive into Intelligent Contracts]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/building-a-trustless-btc-price-bet-on-genlayer-a-deep-dive-into-intelligent-contracts-7fc201397cd2?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fc201397cd2</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Wed, 20 May 2026 09:06:06 GMT</pubDate>
            <atom:updated>2026-05-20T09:06:06.208Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a follow-up to my GenLayer overview from three months ago. If you’re already familiar with </em><strong><em>gl.Contract, @gl.public.view</em></strong><em>, and </em><strong><em>@gl.public.write</em></strong><em>, you’re in the right place. This tutorial goes one layer deeper — we’ll build a working 2-player bet that fetches live Bitcoin prices on-chain using </em><strong><em>gl.nondet.web.get_text</em></strong><em> and a custom equivalence principle.</em></p><h3>What We’re Building</h3><p>A trustless 2-player bet on Bitcoin’s price. Here’s the flow:</p><ol><li>Player A deploys the contract, setting a <strong>price threshold</strong> (e.g., $70,000) and a <strong>stake</strong> (e.g., 1 GEN).</li><li>Player A calls join(“high”) — they’re betting BTC will be <strong>above</strong> $70k at resolution.</li><li>Player B calls join(“low”) — they’re betting BTC will be <strong>below</strong> $70k.</li><li>Anyone calls resolve(). The contract <strong>fetches the live BTC price from the web</strong>, determines the winner on-chain, and automatically sends the full pot to them.</li></ol><p>No oracle. No third party. No manual settlement. The entire resolution logic — including the web fetch and the price comparison — occurs within the Intelligent Contract and is validated by a decentralised network of AI validators.</p><h3>Why GenLayer Makes This Possible</h3><p>In traditional smart contracts (Solidity, Rust), fetching external data requires a trusted oracle — a separate service you have to trust. That defeats the point.</p><p>GenLayer’s Intelligent Contracts can fetch live web data <strong>directly</strong>, inside the contract itself. Multiple independent validator nodes each perform the same fetch and compare results using the <strong>Equivalence Principle</strong>. If enough validators agree the results are equivalent (not necessarily identical — prices can shift by a fraction of a percent between requests), the transaction reaches consensus and executes on-chain.</p><p>This is the core new concept we’re introducing today:</p><p><strong>gl.nondet</strong> — the gateway to non-deterministic operations like web requests and LLM calls. Any call inside <strong><em>gl.nondet </em></strong>runs independently on each validator node. You define what “agreement” means via a validator function.</p><h3>The Core Concept: Non-Determinism and the Equivalence Principle</h3><p>Before writing a line of code, let’s understand the mental model.</p><p>Traditional smart contracts are <strong>deterministic</strong> — every node runs the same code and gets the exact same result. This is how you get consensus: everyone agrees because there’s only one possible answer.</p><p>But fetching a live Bitcoin price is <strong>non-deterministic</strong> — if five validators hit the CoinDesk API within a few seconds of each other, they might get $69,847.22, $69,851.10, $69,843.88. These are different numbers. Traditional blockchains can’t handle this.</p><p>GenLayer solves this with two mechanisms:</p><p><strong>1. gl.vm.run_nondet_unsafe(leader_fn, validator_fn)</strong></p><p>One validator is elected as the “leader.” It runs leader_fn and proposes a result. Every other validator runs validator_fn, which receives the leader’s result and independently checks whether it’s acceptable. You define the acceptance logic.</p><p><strong>2. The Equivalence Principle</strong></p><p>Your validator_fn returns True or False. This is where you encode what “close enough” means for your use case. For a price fetch, you might say “within 1% is fine.” For an LLM-based decision, you might say “the same outcome, even if worded differently.”</p><p>Here’s the pattern in pseudocode:</p><pre>def leader_fn():<br><br>    # fetch or compute something non-deterministic<br><br>    return result<br><br>def validator_fn(leaders_result) -&gt; bool:<br><br>    # independently compute your own result<br><br>    # return True if leader&#39;s result is acceptable<br><br>    my_result = leader_fn()<br><br>    return abs(my_result - leaders_result) / leaders_result &lt;= 0.01<br><br>final_result = gl.vm.run_nondet_unsafe(leader_fn, validator_fn)<br><br># final_result is now safe to use in deterministic code<br><br>self.price = final_result  # ✓ storage write AFTER nondet block</pre><p>The critical rule: <strong>storage writes, contract calls, and message emission must happen AFTER the nondet block returns.</strong> Inside leader_fn and validator_fn, you can only fetch and compute — not modify state.</p><h3>Project Setup</h3><p>You have two options to get started:</p><p><strong>Option A — GenLayer Studio (no install needed)</strong></p><p>Head to <a href="https://studio.genlayer.com/contracts">studio.genlayer.com</a>. Create a new contract file, paste the code, and use the built-in simulator. The Studio includes a faucet (💧 button) to fund test accounts.</p><p><strong>Option B — CLI</strong></p><pre>pip install genlayer<br>genlayer init btc-price-bet<br>cd btc-price-bet<br>genlayer up # starts a local network<br>genlayer init btc-price-bet<br>cd btc-price-bet<br>genlayer up # starts a local network</pre><p>pip install genlayer</p><p>genlayer init btc-price-bet</p><p>cd btc-price-bet</p><p>genlayer up # starts a local network</p><p>genlayer init btc-price-bet</p><p>cd btc-price-bet</p><p>genlayer up # starts a local network</p><p>Either way, you’ll need two test wallet addresses. In the Studio, just create two accounts in the account selector.</p><h3>Step 1 — The Contract Header and State</h3><p>Every Intelligent Contract starts with a dependency declaration, then extends gl.Contract.</p><pre># { &quot;Depends&quot;: &quot;py-genlayer:1jb45aa8ynh2a9c9xn3b7qqh8sm5q93hwfp7jqmwsfhh8jpz09h6&quot; }<br><br>from genlayer import *<br><br>import json<br><br>class BTCPriceBet(gl.Contract):<br><br>    threshold:   u256   # price boundary in whole USD (e.g. 70000)<br><br>    stake:       u256   # required stake per player in wei<br><br>    player_high: str    # address of &quot;above&quot; bettor, &quot;&quot; if not joined<br><br>    player_low:  str    # address of &quot;below&quot; bettor, &quot;&quot; if not joined<br><br>    resolved:    bool<br><br>    winner:      str    # winning address, &quot;&quot; before resolution<br><br>    final_price: u256   # BTC price captured at resolution (whole USD)</pre><p><strong>A few things to notice:</strong></p><ul><li>The<strong><em> # { “Depends”: … }</em></strong> comment on line 1 is <strong>required</strong> — it pins the exact GenVM SDK version. Copy it exactly.</li><li><strong><em>u256 </em></strong>is GenLayer’s unsigned 256-bit integer type, used for all GEN amounts. It mirrors Solidity’s <strong><em>uint256</em></strong>.</li><li>State variables are declared with type annotations <strong>at class level</strong>. These are stored on-chain.</li></ul><p><strong>Important storage gotcha — no <em>Address | None:</em></strong></p><p>GenLayer’s storage engine builds a fixed memory layout at class definition time. It supports <strong><em>u256, str, bool, Address,</em></strong> and collections like TreeMap and DynArray — but it has <strong>no concept of a nullable or optional type</strong>. Python’s Address | None union syntax will crash the GenVM with an <strong><em>AttributeError </em></strong>when it tries to build the schema.</p><p>The correct pattern is to store addresses as plain str and use an empty string “” to mean “not set yet”:</p><p># ❌ This will crash with: AttributeError: module has no attribute ‘Optional’</p><p>player_high: Address | None</p><p># ✅ Correct — use str with “” as the sentinel value</p><p>player_high: str # “” means no player has joined this side yet</p><p>This is a subtle but important constraint of the current GenVM SDK that isn’t prominently documented.</p><h3>Step 2 — The Constructor</h3><pre>def __init__(self, threshold_usd: int, stake_gen: int) -&gt; None:<br><br>    if threshold_usd &lt;= 0:<br><br>        raise gl.vm.UserError(&quot;Threshold must be a positive USD price&quot;)<br><br>    if stake_gen &lt;= 0:<br><br>        raise gl.vm.UserError(&quot;Stake must be positive&quot;)<br><br>    # Convert GEN to wei: 1 GEN = 10^18 wei<br><br>    self.threshold   = u256(threshold_usd)<br><br>    self.stake       = u256(stake_gen) * u256(10 ** 18)<br><br>    self.player_high = &quot;&quot;<br><br>    self.player_low  = &quot;&quot;<br><br>    self.resolved    = False<br><br>    self.winner      = &quot;&quot;<br><br>    self.final_price = u256(0)</pre><p><strong>Why convert to wei?</strong> GenLayer’s native token GEN is denominated in wei, just like ETH — 1 GEN equals 1⁰¹⁸ wei. All <strong><em>gl.message.value</em></strong> comparisons happen in wei. So we convert the human-friendly <strong><em>stake_gen</em></strong> input once at construction and store it as wei internally.</p><p><strong>Why <em>gl.vm.UserError</em> instead of <em>raise Exception</em>?</strong> The GenLayer linter (W004) flags bare Exception as incorrect. <strong><em>gl.vm.UserError</em></strong> is GenLayer’s purpose-built error type — it maps to a clean transaction revert with a readable message, like revert(“reason”) in Solidity.</p><p>When you deploy this in the Studio, you’ll be prompted for <strong><em>threshold_usd </em></strong>and <strong><em>stake_gen</em></strong>. Try 70000 and 1.</p><h3>Step 3 — Joining the Bet</h3><pre>@gl.public.write.payable<br><br>def join(self, side: str) -&gt; None:<br><br>    if self.resolved:<br><br>        raise gl.vm.UserError(&quot;Bet is already resolved&quot;)<br><br>    if side not in (&quot;high&quot;, &quot;low&quot;):<br><br>        raise gl.vm.UserError(&quot;side must be &#39;high&#39; or &#39;low&#39;&quot;)<br><br>    if gl.message.value != self.stake:<br><br>        raise gl.vm.UserError(<br><br>            f&quot;Send exactly {int(self.stake)} wei &quot;<br><br>            f&quot;({int(self.stake) // (10**18)} GEN)&quot;<br><br>        )<br><br>    sender = str(gl.message.sender_address)<br><br>    if side == &quot;high&quot;:<br><br>        if self.player_high != &quot;&quot;:<br><br>            raise gl.vm.UserError(&quot;&#39;high&#39; side is already taken&quot;)<br><br>        self.player_high = sender<br><br>    else:<br><br>        if self.player_low != &quot;&quot;:<br><br>            raise gl.vm.UserError(&quot;&#39;low&#39; side is already taken&quot;)<br><br>        self.player_low = sender</pre><p><strong><em>@gl.public.write.payable</em></strong> — this is the new decorator you haven’t seen before. It’s like <strong><em>@gl.public.write</em></strong> but it also accepts GEN sent with the transaction. Without <strong><em>.payable</em></strong>, any transaction that sends value will be rejected.</p><p>Inside a payable method:</p><ul><li><strong><em>gl.message.value</em></strong> — the amount of GEN (in wei) sent with this call</li><li><strong><em>gl.message.sender_addres</em></strong>s — the wallet address that called this method</li></ul><p>Note the attribute is sender_address, not sender. We also wrap it in str() since our storage field is typed as str. Checking whether a side is taken uses != “” instead of<strong><em> is not None,</em></strong> consistent with the string sentinel approach.</p><h3>Step 4 — The Resolution Logic (The Heart of the Contract)</h3><p>This is where everything comes together. Read it carefully — every line matters.</p><pre>@gl.public.write<br><br>def resolve(self) -&gt; None:<br><br>    if self.resolved:<br><br>        raise gl.vm.UserError(&quot;Already resolved&quot;)<br><br>    if self.player_high == &quot;&quot; or self.player_low == &quot;&quot;:<br><br>        raise gl.vm.UserError(&quot;Both players must join before resolving&quot;)<br><br>    # Capture threshold as plain int for the closure<br><br>    # (storage is inaccessible from inside nondet blocks)<br><br>    threshold = int(self.threshold)<br><br>    # ── Non-deterministic block ─────────────────────────────────<br><br>    def leader_fn():<br><br>        raw = gl.nondet.web.get_text(<br><br>            &quot;https://api.coindesk.com/v1/bpi/currentprice.json&quot;<br><br>        )<br><br>        data = json.loads(raw)<br><br>        # CoinDesk returns rate as a comma-formatted string e.g. &quot;65,432.10&quot;<br><br>        price = float(data[&quot;bpi&quot;][&quot;USD&quot;][&quot;rate&quot;].replace(&quot;,&quot;, &quot;&quot;))<br><br>        return {&quot;price&quot;: price, &quot;above&quot;: price &gt; threshold}<br><br>    def validator_fn(leaders_res) -&gt; bool:<br><br>        if not isinstance(leaders_res, gl.vm.Return):<br><br>            return False<br><br>        my_result    = leader_fn()<br><br>        leader_price = leaders_res.calldata[&quot;price&quot;]<br><br>        my_price     = my_result[&quot;price&quot;]<br><br>        # Accept if prices are within 1% of each other<br><br>        price_ok     = abs(leader_price - my_price) / leader_price &lt;= 0.01<br><br>        # The above/below decision must match exactly<br><br>        decision_ok  = leaders_res.calldata[&quot;above&quot;] == my_result[&quot;above&quot;]<br><br>        return price_ok and decision_ok<br><br>    result = gl.vm.run_nondet_unsafe(leader_fn, validator_fn)<br><br>    # ── End of non-deterministic block ─────────────────────────<br><br>    # All storage writes happen AFTER run_nondet_unsafe returns<br><br>    self.resolved    = True<br><br>    self.final_price = u256(int(result[&quot;price&quot;]))<br><br>    self.winner      = self.player_high if result[&quot;above&quot;] else self.player_low<br><br>    # Send the full pot (both stakes) to the winner<br><br>    pot         = self.stake * u256(2)<br><br>    winner_addr = Address(self.winner)<br><br>    gl.get_contract_at(winner_addr).transfer(value=pot, on=&quot;finalized&quot;)</pre><p>Let’s dissect the key parts:</p><p><strong>Why capture threshold = int(self.threshold) before the nondet block?</strong></p><p>Storage is inaccessible from inside non-deterministic blocks. If you tried to read <strong><em>self.threshold</em></strong> inside <strong><em>leader_fn</em></strong>, the GenVM would raise an error. Capture any state you need as a plain Python variable before entering the block.</p><p><strong>leaders_res.calldata</strong> — when the leader succeeds, its return value is wrapped in <strong><em>gl.vm.Return</em></strong>. The actual dict you returned from leader_fn lives at <strong><em>.calldata</em></strong>. If the leader failed, leaders_res will be an exception type — that’s what the isinstance check guards against.</p><p><strong>The two acceptance criteria in validator_fn:</strong></p><ul><li>price_ok — prices within 1% (market moves between fetches)</li><li>decision_ok — the above/below verdict must be identical. If validators straddle the threshold, consensus fails — which is the correct behaviour since the outcome is genuinely ambiguous at that moment.</li></ul><p><strong>The payout:</strong></p><p>winner_addr = Address(self.winner)</p><p><strong><em>gl.get_contract_at(winner_addr).transfer(value=pot, on=”finalized”)</em></strong></p><p>We reconstruct an Address object from the stored string, get a contract proxy for it, and call .transfer() with on=”finalized” — meaning the transfer only executes once the transaction has passed the full appeal window and is permanently settled.</p><h3>Step 5 — The View Methods</h3><pre>@gl.public.view<br><br>def get_status(self) -&gt; dict:<br><br>    return {<br><br>        &quot;threshold_usd&quot;:    int(self.threshold),<br><br>        &quot;stake_wei&quot;:        int(self.stake),<br><br>        &quot;player_high&quot;:      self.player_high or None,<br><br>        &quot;player_low&quot;:       self.player_low  or None,<br><br>        &quot;resolved&quot;:         self.resolved,<br><br>        &quot;winner&quot;:           self.winner       or None,<br><br>        &quot;final_price_usd&quot;:  int(self.final_price),<br><br>        &quot;ready_to_resolve&quot;: (<br><br>            self.player_high != &quot;&quot; and<br><br>            self.player_low  != &quot;&quot; and<br><br>            not self.resolved<br><br>        ),<br><br>    }</pre><p>View methods are free to call — they don’t require gas or a transaction. The or None pattern converts the empty string sentinel back to None for clean JSON output, so callers don’t need to know about the internal “” convention.</p><h3>The Complete Contract</h3><pre># { &quot;Depends&quot;: &quot;py-genlayer:1jb45aa8ynh2a9c9xn3b7qqh8sm5q93hwfp7jqmwsfhh8jpz09h6&quot; }<br>from genlayer import *<br>import json<br><br>class BTCPriceBet(gl.Contract):<br><br>    # Address | None is NOT supported in GenLayer storage.<br>    # Use str with &quot;&quot; as the &quot;not set&quot; sentinel instead.<br>    threshold:   u256<br>    stake:       u256<br>    player_high: str    # &quot;&quot; means not joined yet<br>    player_low:  str    # &quot;&quot; means not joined yet<br>    resolved:    bool<br>    winner:      str    # &quot;&quot; before resolution<br>    final_price: u256<br><br>    def __init__(self, threshold_usd: int, stake_gen: int) -&gt; None:<br>        if threshold_usd &lt;= 0:<br>            raise gl.vm.UserError(&quot;Threshold must be a positive USD price&quot;)<br>        if stake_gen &lt;= 0:<br>            raise gl.vm.UserError(&quot;Stake must be positive&quot;)<br><br>        self.threshold   = u256(threshold_usd)<br>        self.stake       = u256(stake_gen) * u256(10 ** 18)<br>        self.player_high = &quot;&quot;<br>        self.player_low  = &quot;&quot;<br>        self.resolved    = False<br>        self.winner      = &quot;&quot;<br>        self.final_price = u256(0)<br><br>    @gl.public.write.payable<br>    def join(self, side: str) -&gt; None:<br>        if self.resolved:<br>            raise gl.vm.UserError(&quot;Bet is already resolved&quot;)<br>        if side not in (&quot;high&quot;, &quot;low&quot;):<br>            raise gl.vm.UserError(&quot;side must be &#39;high&#39; or &#39;low&#39;&quot;)<br>        if gl.message.value != self.stake:<br>            raise gl.vm.UserError(<br>                f&quot;Send exactly {int(self.stake)} wei &quot;<br>                f&quot;({int(self.stake) // (10**18)} GEN)&quot;<br>            )<br><br>        sender = str(gl.message.sender_address)<br><br>        if side == &quot;high&quot;:<br>            if self.player_high != &quot;&quot;:<br>                raise gl.vm.UserError(&quot;&#39;high&#39; side is already taken&quot;)<br>            self.player_high = sender<br>        else:<br>            if self.player_low != &quot;&quot;:<br>                raise gl.vm.UserError(&quot;&#39;low&#39; side is already taken&quot;)<br>            self.player_low = sender<br><br>    @gl.public.write<br>    def resolve(self) -&gt; None:<br>        if self.resolved:<br>            raise gl.vm.UserError(&quot;Already resolved&quot;)<br>        if self.player_high == &quot;&quot; or self.player_low == &quot;&quot;:<br>            raise gl.vm.UserError(&quot;Both players must join before resolving&quot;)<br><br>        threshold = int(self.threshold)<br><br>        def leader_fn():<br>            raw = gl.nondet.web.get_text(<br>                &quot;https://api.coindesk.com/v1/bpi/currentprice.json&quot;<br>            )<br>            data = json.loads(raw)<br>            price = float(data[&quot;bpi&quot;][&quot;USD&quot;][&quot;rate&quot;].replace(&quot;,&quot;, &quot;&quot;))<br>            return {&quot;price&quot;: price, &quot;above&quot;: price &gt; threshold}<br><br>        def validator_fn(leaders_res) -&gt; bool:<br>            if not isinstance(leaders_res, gl.vm.Return):<br>                return False<br>            my_result    = leader_fn()<br>            leader_price = leaders_res.calldata[&quot;price&quot;]<br>            my_price     = my_result[&quot;price&quot;]<br>            price_ok     = abs(leader_price - my_price) / leader_price &lt;= 0.01<br>            decision_ok  = leaders_res.calldata[&quot;above&quot;] == my_result[&quot;above&quot;]<br>            return price_ok and decision_ok<br><br>        result = gl.vm.run_nondet_unsafe(leader_fn, validator_fn)<br><br>        self.resolved    = True<br>        self.final_price = u256(int(result[&quot;price&quot;]))<br>        self.winner      = self.player_high if result[&quot;above&quot;] else self.player_low<br><br>        pot         = self.stake * u256(2)<br>        winner_addr = Address(self.winner)<br>        gl.get_contract_at(winner_addr).transfer(value=pot, on=&quot;finalized&quot;)<br><br>    @gl.public.view<br>    def get_status(self) -&gt; dict:<br>        return {<br>            &quot;threshold_usd&quot;:    int(self.threshold),<br>            &quot;stake_wei&quot;:        int(self.stake),<br>            &quot;player_high&quot;:      self.player_high or None,<br>            &quot;player_low&quot;:       self.player_low  or None,<br>            &quot;resolved&quot;:         self.resolved,<br>            &quot;winner&quot;:           self.winner       or None,<br>            &quot;final_price_usd&quot;:  int(self.final_price),<br>            &quot;ready_to_resolve&quot;: (<br>                self.player_high != &quot;&quot; and<br>                self.player_low  != &quot;&quot; and<br>                not self.resolved<br>            ),<br>        }<br><br>    @gl.public.view<br>    def get_threshold(self) -&gt; int:<br>        return int(self.threshold)<br><br>    @gl.public.view<br>    def get_stake_wei(self) -&gt; int:<br>        return int(self.stake)</pre><h3>Testing It in GenLayer Studio</h3><p><strong>Step 1 — Deploy</strong></p><p>Open <a href="https://studio.genlayer.com/contracts">studio.genlayer.com</a>, paste the contract, and click <strong>Deploy</strong>. Enter constructor args: threshold_usd = 70000, stake_gen = 1.</p><p><strong>Step 2 — Player A joins</strong></p><p>Switch to Account 1 in the account selector. Call join with arg “high” and set the value field to 1000000000000000000 (= 1 GEN in wei). The Studio’s 💧 faucet button will fund your test accounts.</p><p><strong>Step 3 — Player B joins</strong></p><p>Switch to Account 2. Call join with arg “low” and the same value.</p><p><strong>Step 4 — Check state</strong></p><p>Call get_status(). You should see both players filled in and ready_to_resolve: true.</p><p><strong>Step 5 — Resolve</strong></p><p>Call resolve() from either account (no value needed). Watch the Studio logs — you’ll see the validator nodes each fetch the CoinDesk API, compare results, and reach consensus. The winner’s address and the fetched price will be saved to state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GnlvyOjrXS8MjZS7G2wcXA.png" /></figure><h3>Key Takeaways</h3><p>Here’s what this contract taught us that basic tutorials don’t cover:</p><p><strong>@gl.public.write.payable</strong> — how to accept GEN inside a write method, and why it’s a separate decorator from @gl.public.write.</p><p><strong>gl.message.value</strong> — the amount of GEN (in wei) sent with the transaction.</p><p><strong>gl.message.sender_address</strong> — the correct attribute for the caller’s address (not gl.message.sender).</p><p><strong>No Address | None in storage</strong> — GenLayer’s storage system doesn’t support nullable types. Use str with “” as your sentinel. This will save you a confusing AttributeError on deployment.</p><p><strong>gl.vm.UserError(“message”)</strong> — the correct way to revert with a readable error message. Never use bare raise Exception(…).</p><p><strong>gl.nondet.web.get_text(url)</strong> — fetches a URL’s text content inside a non-deterministic block, independently on each validator.</p><p><strong>gl.vm.run_nondet_unsafe(leader_fn, validator_fn)</strong> — the full custom consensus pattern. The leader proposes; validators judge. You define what “agreement” means.</p><p><strong>leaders_res.calldata</strong> — how to access the leader’s return value inside the validator function.</p><p><strong>gl.get_contract_at(Address(addr)).transfer(value, on)</strong> — how to send GEN to a winner. Pass an Address object, not a raw string. Use on=”finalized” for safety.</p><p><strong>The nondet boundary rule</strong> — gl.nondet.* calls must live inside the nondet block. Storage reads you need inside the block must be captured as plain variables before entering it.</p><h3>What’s Next</h3><p>Now that you understand the nondet pattern, the door is open to everything interesting in GenLayer:</p><ul><li><strong>Prediction markets</strong> — resolve based on live sports scores or news headlines</li><li><strong>Parametric insurance</strong> — pay out when a weather API reports a flood event</li><li><strong>Bounty contracts</strong> — have an LLM evaluate whether submitted work meets a spec</li></ul><p>The pattern is always the same: leader_fn fetches or computes, validator_fn checks whether the leader’s result is acceptable, and all state changes happen after run_nondet_unsafe returns.</p><p>The full source code and tests are available in the repository linked below.</p><p><a href="https://github.com/lario0913/btc_price_predictor">https://github.com/lario0913/btc_price_predictor</a></p><p><em>Next in this series: we’ll extend this contract to support multiple simultaneous bets on any asset, and build a simple frontend using genlayer-js.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fc201397cd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From zero to Genlayer: An Introductory GenLayer Tutorial]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/from-zero-to-genlayer-an-introductory-genlayer-tutorial-16fcbda3ae9f?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/16fcbda3ae9f</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Tue, 03 Feb 2026 07:48:36 GMT</pubDate>
            <atom:updated>2026-02-03T07:48:36.082Z</atom:updated>
            <content:encoded><![CDATA[<h3>Welcome to GenLayer! This tutorial will guide you through creating your first Intelligent Contract — a simple program that prints “hello world, welcome to genlayer”.</h3><h3>What is GenLayer?</h3><p>GenLayer is the first “Intelligent Blockchain” — a next-generation blockchain platform that combines traditional smart contract capabilities with artificial intelligence. Unlike conventional blockchains that only execute deterministic code, GenLayer’s Intelligent Contracts can:</p><ul><li><strong>Understand natural language</strong> using Large Language Models (LLMs)</li><li><strong>Access the internet</strong> directly without oracles</li><li><strong>Make subjective decisions</strong> based on real-world data</li><li><strong>Process non-deterministic operations</strong> while maintaining consensus</li></ul><p>Think of it as Bitcoin delivering trustless money, Ethereum delivering trustless computation, and GenLayer delivering trustless decision-making.</p><h3>Prerequisites</h3><p>Before starting, ensure you have:</p><ul><li><strong>Docker</strong> (version 26+) — Required to run the GenLayer environment</li><li><strong>Node.js</strong> (version 18+) and <strong>npm</strong> — Needed for the GenLayer CLI</li><li>Basic understanding of Python (Intelligent Contracts are written in Python!)</li></ul><h3>Step 1: Install GenLayer CLI</h3><p>Open your terminal and install the GenLayer CLI globally:</p><p>bash</p><pre>npm install -g genlayer</pre><p>This command installs the GenLayer command-line interface tool that will help you set up and manage your development environment.</p><h3>Step 2: Initialize GenLayer Studio</h3><p>Now let’s set up your local GenLayer development environment:</p><p>bash</p><pre>genlayer init</pre><p>This command will:</p><ol><li>Verify your Docker installation</li><li>Prompt you to select your preferred LLM provider(s):</li></ol><ul><li><strong>Llama3</strong> — No API key required (recommended for beginners)</li><li><strong>OpenAI</strong> — Requires API key</li><li><strong>Heurist</strong> — Requires API key (free credits available)</li></ul><p>3. Download and configure the necessary Docker containers</p><p>4. Set up 5 validators by default</p><p>Once setup is complete, the GenLayer Studio will open in your browser at <a href="http://localhost:8080/">http://localhost:8080/.</a></p><h3>Step 3: Understanding Intelligent Contracts</h3><p>Intelligent Contracts are written in Python using the GenLayer SDK. They have a simple structure:</p><p>python</p><pre>from genlayer import *</pre><pre>class MyContract(gl.Contract):<br>    # State variables<br>    variable_name: str<br>    <br>    def __init__(self):<br>        # Constructor - runs when contract is deployed<br>        self.variable_name = &quot;initial value&quot;<br>    <br>    @gl.public.view<br>    def read_method(self) -&gt; str:<br>        # Read-only method<br>        return self.variable_name<br>    <br>    @gl.public.write<br>    def write_method(self, new_value: str):<br>        # Method that modifies state<br>        self.variable_name = new_value</pre><h3>Step 4: Create Your Hello World Contract</h3><p>Now let’s create our first Intelligent Contract! In the GenLayer Studio:</p><ol><li>Click on <strong>“Create New Contract”</strong> or select the default contract</li><li>Delete the existing code</li><li>Paste the following code:</li></ol><pre>#python<br># { &quot;Depends&quot;: &quot;py-genlayer:test&quot; }<br>from genlayer import * <br><br>class HelloWorld(gl.Contract):<br>    greeting: str<br>    <br>    def __init__(self):<br>        &quot;&quot;&quot;<br>        Initialize the contract with a greeting message.<br>        This runs once when the contract is deployed.<br>        &quot;&quot;&quot;<br>        self.greeting = &quot;hello world, welcome to genlayer&quot;<br>    <br>    @gl.public.view<br>    def get_greeting(self) -&gt; str:<br>        &quot;&quot;&quot;<br>        Returns the greeting message.<br>        This is a read-only method that doesn&#39;t modify the contract state.<br>        &quot;&quot;&quot;<br>        return self.greeting<br>    <br>    @gl.public.write<br>    def set_greeting(self, new_greeting: str):<br>        &quot;&quot;&quot;<br>        Updates the greeting message.<br>        This method modifies the contract state.<br>        &quot;&quot;&quot;<br>        self.greeting = new_greeting<br>    <br>    @gl.public.view<br>    def print_greeting(self) -&gt; str:<br>        &quot;&quot;&quot;<br>        Prints and returns the greeting message.<br>        &quot;&quot;&quot;<br>        print(self.greeting)<br>        return self.greeting</pre><h3>Understanding the Code</h3><p>Let’s break down what each part does:</p><ul><li><strong>from genlayer import *</strong> - Imports the GenLayer SDK</li><li><strong>class HelloWorld(gl.Contract)</strong> - Defines our Intelligent Contract</li><li><strong>greeting: str</strong> - A state variable that stores our message</li><li><strong>__init__(self)</strong> - Constructor that initializes the greeting when deployed</li><li><strong>@gl.public.view</strong> - Decorator for read-only methods</li><li><strong>@gl.public.write</strong> - Decorator for methods that modify state</li><li><strong>get_greeting()</strong> - Returns the current greeting</li><li><strong>set_greeting()</strong> - Allows updating the greeting</li><li><strong>print_greeting()</strong> - Prints and returns the greeting</li></ul><h3>Step 5: Deploy Your Contract</h3><ol><li>In the GenLayer Studio, click the <strong>“Deploy”</strong> button</li><li>The constructor doesn’t require any parameters, so just click <strong>“Deploy Contract”</strong></li><li>Wait for the deployment confirmation</li><li>Once deployed, you’ll see your contract address</li></ol><p>Congratulations! You’ve just deployed your first Intelligent Contract!</p><h3>Step 6: Interact with Your Contract</h3><p>Now let’s interact with your deployed contract:</p><h3>Read the Greeting</h3><ol><li>Go to the <strong>“Read Methods”</strong> section</li><li>Click on <strong>get_greeting</strong> or <strong>print_greeting</strong></li><li>Click <strong>“Call”</strong></li><li>You should see: &quot;hello world, welcome to genlayer&quot;</li></ol><h3>Update the Greeting</h3><ol><li>Go to the <strong>“Write Methods”</strong> section</li><li>Click on <strong>set_greeting</strong></li><li>Enter a new greeting like: &quot;hello blockchain, hello AI!&quot;</li><li>Click <strong>“Execute”</strong></li><li>Wait for transaction confirmation</li></ol><h3>Verify the Update</h3><ol><li>Return to <strong>“Read Methods”</strong></li><li>Call <strong>get_greeting</strong> again</li><li>You should now see your new greeting!</li></ol><h3>Step 7: View Transaction Logs</h3><p>The GenLayer Studio provides detailed logs for every transaction:</p><ol><li>Scroll down to the <strong>“Logs”</strong> section</li><li>You’ll see information about:</li></ol><ul><li>Transaction hash</li><li>Execution status</li><li>Validator consensus</li><li>Any output from print statements</li></ul><h3>What Makes This “Intelligent”?</h3><p>While our Hello World contract is simple, it runs on GenLayer’s Intelligent Contract framework, which means:</p><ul><li><strong>Consensus through AI</strong>: Multiple validators with different AI models verify the execution</li><li><strong>Optimistic Democracy</strong>: Validators vote on transaction outcomes</li><li><strong>Python-native</strong>: No need to learn Solidity or other specialized languages</li><li><strong>Ready for complexity</strong>: This foundation can be extended to access the web, process natural language, and make subjective decisions.</li></ul><h3>Next Steps</h3><p>Now that you’ve created your first Intelligent Contract, you can:</p><ol><li><strong>Explore more examples</strong> in the GenLayer documentation:</li></ol><ul><li>Wizard of Coin — An AI-powered game contract</li><li>Prediction Market — Resolves outcomes using web data</li><li>Performance Rewards — Evaluates task completion</li></ul><p><strong>2. Add AI capabilities</strong>:</p><ul><li>Use LLMs to process natural language</li><li>Implement the Equivalence Principle for consensus</li><li>Fetch and analyze web data</li></ul><p><strong>3. Build a dApp</strong>:</p><ul><li>Use GenLayer.js SDK to create a frontend</li><li>Connect your contract to a web application</li><li>Deploy to testnet and share with others.</li></ul><h3>Useful Resources</h3><ul><li><strong>Documentation</strong>: <a href="https://docs.genlayer.com/">https://docs.genlayer.com</a></li><li><strong>GitHub</strong>: <a href="https://github.com/genlayerlabs">https://github.com/genlayerlabs</a></li><li><strong>Discord</strong>: Join the GenLayer community for support</li><li><strong>Telegram</strong>: Quick updates and informal chats</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16fcbda3ae9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Fuseon Finance]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/introducing-fuseon-finance-099eb870c026?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/099eb870c026</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 18:44:17 GMT</pubDate>
            <atom:updated>2025-09-22T18:44:17.660Z</atom:updated>
            <content:encoded><![CDATA[<p>Drawing inspiration from leading DeFi protocols such as Curve, Solidly, and Velodrome, <a href="https://x.com/fuseon_finance"><strong>Fusion Finance</strong></a> is pioneering the next-generation automated market maker (AMM) on <strong>Plasma blockchain. </strong>As the central liquidity hub on Plasma, Fuseon believes in sustaining growth and this makes it adopt the innovative ve(3,3) mechanics and robust tokenomics that support its vision. This will empower protocols to build extensive liquidity pools while optimizing capital efficiency, aligning $FUS emission.</p><p>On Fuseon, every stakeholder is considered important and rewarded for contributing to the smooth running of Fuseon. Starting with the <strong>veFUS voters</strong> that chose to lock their tokens to participate in governance and also reducing the total $FUS in circulation. veFUS holders will decide on which pools will earn FUS emissions through voting, and they will receive 100% of the incentives and fees for the pools they vote for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*y0oTYUGXSvIfFhcxdT6a-g.png" /></figure><p><strong>Protocols; </strong>since the protocols already know that VeFUS voters will determine the pools that will earn FUS emissions, they offer incentives to veFUS voters to attract their votes and FUS emissions to their pool, which allows them to build liquidity at low cost.</p><p><strong>Liquidity providers</strong> who deposited their tokens for trading on Fuseon will receive FUS emission as rewards.</p><p><strong>Traders</strong> will be able to perform their swap transactions with minimal slippage because of the robust pool, and they will pay competitive fees that benefit veFUS voters.</p><p>To read more about Fuseon and its products, visit:</p><p>Twitter: <a href="https://x.com/fuseon_finance">https://x.com/fuseon_finance</a></p><p>Docs: <a href="https://docs.fuseon.finance/">https://docs.fuseon.finance/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=099eb870c026" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fuelet Wallet — a Fuel Wallet focused on Account Abstraction]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/fuelet-wallet-a-fuel-wallet-focused-on-account-abstraction-b32b9d47b141?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/b32b9d47b141</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Fri, 22 Sep 2023 14:26:56 GMT</pubDate>
            <atom:updated>2023-09-22T14:26:56.986Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fuelet Wallet — a Fuel Wallet focused on Account Abstraction</h3><p>Fuelet wallet is a self-custodial crypto wallet for the next billion web3 users. Fuelet is built on Fuel network, and it focused on UX and enhanced security through Fuel’s Account Abstraction. The mission at fuelet is to make crypto management as simple as handling a traditional bank account, while upholding the robust security standards required for Web3. Fuelet combines everything user needs in a crypto wallet: security, advanced features, an active community, strong support, and a seamless user experience.</p><h4>Fuelet Wallet’s Account Abstraction</h4><p>Account abstraction refers to the ability to programmatically set the validity conditions of a transaction. It allows developers to define custom verification logic as the primary account. Fuelet implements the Fuel Account Abstraction with predicates which enables some special features to be implemented in the wallet and these features help users to have a great experience whenever they interacted the wallet. Some of the features are:</p><p>· Social recovery with guardians, 2FA, and multi-device</p><p>· Hardware signer</p><p>· Batch transactions</p><p>· Paying Gas in any tokens</p><p>. Daily limits</p><h4>Basic Operations that can be performed on Fuelet Wallet</h4><p>· Store, send, receive and swap crypto assets on the Fuel Network</p><p>· NFT and portfolio analytics in your pocket</p><p>· Deposit and withdraw funds between Ethereum and Fuel</p><p>· Browse dApps</p><p>· Watchlist to track any wallet.</p><h4>Reasons to use/chose Fuelet Wallet</h4><p>1. Fuelet wallet is built on fuel which is the fastest execution layer for modular blockchains. It combines security and speed, enabling lightning-fast transactions and a seamless user experience in the Web3 landscape.</p><p>2. It has a very easy to use User Interface</p><p>3. Fuelet gives user the complete control over their crypto assets. The wallet is non-custodial, meaning users hold the keys to their funds. This ensures maximum security and peace of mind.</p><p>4. They have a very strong community on Twitter and Discord and the team is always open to feedback as its user centered.</p><p>5. Fuelet Wallet is available for iOS, Android, and browsers like Chrome, Brave, etc. It’s easy to install on any device, and it automatically syncs your transactions, ensuring a consistent and secure experience wherever you go.</p><h4>Social Media</h4><p>To learn more about the project and the team, you can reach out to the following fuelet’s community platform:</p><p>· Discord: <a href="https://discord.gg/8RF78b5X6a">https://discord.gg/8RF78b5X6a</a></p><p>· Twitter: <a href="https://twitter.com/FueletWallet">https://twitter.com/FueletWallet</a></p><p>· Github: <a href="https://github.com/fuelet">https://github.com/fuelet</a></p><p>· Telegram: <a href="https://t.me/fueletapp">https://t.me/fueletapp</a></p><p>· Medium: <a href="https://medium.com/fuelet-wallet">https://medium.com/fuelet-wallet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b32b9d47b141" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple guide on Migoswap Testnet v2]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/a-simple-guide-on-migoswap-testnet-v2-a09f629d48ec?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/a09f629d48ec</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 19:44:44 GMT</pubDate>
            <atom:updated>2023-02-25T19:44:44.058Z</atom:updated>
            <content:encoded><![CDATA[<p>Migoswap is a friendly dex on Corechain that allows swapping, staking, farming, and earning tokens on the platform. Below is a list of steps on how to easily participate in the migoswap testnet v2 that was annouced recently.</p><h4>Getting Started</h4><p>Here is a list of resources to get you started in participating in the testnet:</p><p>i. Setting up a compatible Core Testnet wallet (e.g. metamask) detailed guide here: <a href="https://docs.coredao.org/developer/user-guides/user-guide-for-core-testnet">https://docs.coredao.org/developer/user-guides/user-guide-for-core-testnet</a></p><p>ii. Get tCORE &amp; sUSDT from the faucet: <a href="https://scan.test.btcs.network/faucet">https://scan.test.btcs.network/faucet</a></p><p>iii. Add custom token on Migoswap by visiting <a href="https://dex.migoswap.org/">https://dex.migoswap.org/</a> where you will click on ‘Select on Token” under the asset tab and input desired token address in the address field from the following contract address.</p><p>sUSDT Token: 0x3786495f5d8a83b7bacd78e2a0c61ca20722cce3</p><p>TestDogeCore Token: 0xe514EcDa9aAA5b1c50771f58624d2e78231E22Dd</p><p>TestShibaCore Token: 0x05F2D5C58E137D2b258fA842c67134dE1F45fC11</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*Sx6OhjjhYW3vPqYZEAV-ug.png" /></figure><h4>Performing the Swap operation on Migoswap</h4><p>i. Visit <a href="https://migoswap.org/">https://migoswap.org/</a></p><p>ii. Click on <strong>Trade</strong> and then click on <strong>Exchange</strong> to see the swap interface.</p><p>iii. Perform the swap operation across Tcore and sUSdT, TDC, and TSC. Likewise, across sUDST and TDC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypNsrc5difIXVCNo9laa3Q.png" /></figure><h4>Adding and removing Liquidity</h4><p><strong><em>To add liquidity;</em></strong></p><p>i. While on the swap page, click on <strong>Liquidity</strong>, and after that click on <strong>Add Liquidity</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nS92QftQmLVjoHCzND1DNA.png" /></figure><p>ii. on the <strong>Add Liquidity</strong> page, chose the correct pair of liquidity you wish to supply, enter the appropriate unit and click on the <strong>Supply</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNDkPqf8JuVnE1RW4LOt4A.png" /></figure><p><strong><em>To remove liquidity;</em></strong></p><p>i. Go to the liquidity page where all pools you provided are displayed, on getting there click on the pair you wish to remove.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*5mhYsLMTwOovE-vBzdrjvg.png" /></figure><p>ii. Click the Remove button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*_RBOywXyUneFfqTw-baVKw.png" /></figure><p>iii. Click the percentage of the pool you wish to remove, and finally, click on the remove button. Approve the transaction and you’re good to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*_RBOywXyUneFfqTw-baVKw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a09f629d48ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meadow Tier System and Insurance]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/meadow-tier-system-an-insurance-c10a238fc9ac?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/c10a238fc9ac</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 07:24:44 GMT</pubDate>
            <atom:updated>2023-01-09T07:25:29.685Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week, I gave an overview of The Meadow Launchpad and its catchy tokenomics. Today, I will be explaining the exciting features of the Meadow Tier System and The Meadow Insurance, of the Launchpad in detail.</p><p><strong>THE MEADOW TIER SYSTEM</strong></p><p>The Meadow Tier System is a scheme developed by the Meadow team to increase the buying pressure while also limiting its volatility in the industry.</p><p>The Meadow team will implement a tiered structure, with each tier requiring the staking and locking of a minimum number of tokens. The better the tier, the higher the allocated amount. For instance, these are four tiers:</p><p>· <strong>Diamond (Best)</strong> : requires the locking of 50,000 tokens</p><p>· <strong>Gold</strong> — requires the locking of 25,000 tokens</p><p>· <strong>Silver </strong>— requires the locking of 15,000 tokens</p><p>· <strong>Bronze</strong> <strong>(Lowest tier)</strong> — requires the locking of 5,000 tokens</p><p><strong>MEADOW INSURANCE PLAN</strong></p><p>The Meadow insurance plan is like a recovery plan for anyone (investors) in the Diamond or Gold Tier System in case the market isn’t favorable to those that the IDO. This plan serves as a hedge against inflation, and increases buying pressure while also limiting the volatility in the industry. The Insurance plan works in such a way that 5–10% of the total raise will also go towards “<strong>Meadow Insurance</strong>” this will build over time and disburse to everyone in the top tier system based on a certain percentage if the token price falls below the IDO price within 3 months, throughout 2 vesting periods.</p><p>The higher the tier you have the more you will benefit from our insurance pool. For instance:</p><p>· <strong>Diamond</strong> (Best tier) <strong><em>30%</em></strong> of your principal back if the token price goes below IDO price.</p><p>· <strong>Gold </strong>(Second best tier) <strong><em>15%</em></strong> of your principal back if the token price goes below IDO price.</p><p>· <strong>Silver and Bronze</strong> (Does not benefit from the insurance pool)</p><p>Next week, I will release my next post to extensively explain and break down the Meadow Roadmap.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c10a238fc9ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Meadow Launchpad]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/the-meadow-launchpad-93a4e12aadb3?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/93a4e12aadb3</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 20:35:01 GMT</pubDate>
            <atom:updated>2023-01-02T20:35:01.562Z</atom:updated>
            <content:encoded><![CDATA[<p>For the next few weeks, I will be releasing posts on a SUI project that I am really bullish on, Meadow Launchpad.</p><p>The Meadow Launchpad is a decentralized launchpad that will launch projects on the Sui network, the most scalable network ready for the next generation of users. Launchpads are an essential component in the evolution and expansion of the digital asset ecosystem and a good one must offer usability that is both straightforward and adaptable, and they also feature powerful safeguards against the possibility of fraud and failure. Meadow’s innovative launch models blended tier-based allocation with lottery allocation to ensure that all token holders receive a fair share of the rewards and they also retain escrow for project funds in order to protect the principal capital of investors because launchpad IDOs is a high-risk endeavor.</p><h3><strong>TOKENOMICS</strong></h3><p>The Meadow Launchpad token will initially be made available either on the ERC20 network or BEP20 network and then be bridged back to the Sui network. The token will have;</p><p>· <strong>Circulating Supply at TGE: </strong>2,000,000–3,500,000 tokens</p><p>· <strong>Potential initial token unlock:</strong> 2,312,500</p><p>· <strong>Token Max Supply: </strong>100,000,000</p><p>· <strong>Initial market-cap: </strong>$200,000 — $250,000</p><p>The token is distinguished by the following tokenomics and characteristics that are one of a kind:</p><p>· <strong>12% Campaign Pool</strong></p><p>· 35% Funded pool</p><p>· 25% for Team &amp; Advisors</p><p>· <strong>7% Marketing &amp; Development</strong></p><p>· <strong>10% </strong>Seed Round</p><p>· <strong>10% Private Round</strong></p><p>· <strong>1% public sale</strong></p><p>Next week, I will release a post on an interesting feature of the Meadow Launchpad which will really excite and protect investors, watch out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93a4e12aadb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I feel so good and accomplished after checking and testing out the InsureDAO testnet system.]]></title>
            <link>https://medium.com/@osunkunleolanrewaju/i-feel-so-good-and-accomplished-after-checking-and-testing-out-the-insuredao-testnet-system-4d96b6184ff5?source=rss-863153785173------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d96b6184ff5</guid>
            <dc:creator><![CDATA[Osunkunle Olanrewaju]]></dc:creator>
            <pubDate>Fri, 13 Aug 2021 02:07:16 GMT</pubDate>
            <atom:updated>2021-08-13T02:07:16.684Z</atom:updated>
            <content:encoded><![CDATA[<p>I feel so good and accomplished after checking and testing out the InsureDAO testnet system. InsureDAO is a peer to pool insurance market protocol on Ethereum. The management and operations of the protocols and controlled by the DAO. This is a tool that DeFi gurus should definitely check out.</p><p>The interesting part of the system is that anyone that has access to ethereum can create, purchase and underwrite any insurance without needing to verify his/her identity or do KYC.</p><p>You can also check more about the project before the mainnet get launched. Check them out here and test their testnet.</p><p><a href="https://twitter.com/insuredao">https://twitter.com/insuredao</a></p><p>https://medium.com/@insuredao_team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d96b6184ff5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>