SPK - SPK DAO Funding and Updates

in #dao3 years ago (edited)

Status for March

<p dir="auto">Over 3000 accounts have claimed their March Tokens on the SPK Claim Chain. This includes quite a few of the largest accounts representing ~72M Hive and Hive Power. If you haven't claimed your tokens yet please go to <a href="https://spk.dlux.io" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">spk.dlux.io or <a href="https://dlux.io/me#spk" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SPK Wallet @ dlux and claim before the end of the month UTC. <p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23tbF6BXD1v4oNVpyd8GaZp9Gy7hRscBt38YXbvjqEMSdiCfE2paKo1o7xaLf45a587J8.png" alt="New UI Incoming" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23tbF6BXD1v4oNVpyd8GaZp9Gy7hRscBt38YXbvjqEMSdiCfE2paKo1o7xaLf45a587J8.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23tbF6BXD1v4oNVpyd8GaZp9Gy7hRscBt38YXbvjqEMSdiCfE2paKo1o7xaLf45a587J8.png 2x" /> <p dir="auto">This presents a bit of a problem for the claim chain. The stated goals of establishing a DAO with the unclaimed tokens will upset the balance of power when more than 60% of the tokens are unclaimed. To that end we're only going to move around 15% of what has been claimed into our DAO account. <p dir="auto">We put together some code that will claim a consensus determined (15% default) amount of claimed tokens and move them. There are also some new voting mechanisms for our node runners. Once more of the network is established this voting will move to the SPK token holders as it's planned to be the governance token for the SPK network. I'm in contact with just about all the node runners so if you want to set a higher or lower vote amount let me know; we are hard at work making UI for these changes though. <p dir="auto"><span>Speaking of UI. Both interfaces have been getting vast amount of development attention from <a href="/@psorigins">@psorigins and <a href="/@markegiles">@markegiles Check out the links above. <h2>Technical Updates | Code Review <p dir="auto">Now that most of the release fires have been extinguished we're hoping to do a more thoughtful review process for new features. Version 1.0.7 has the following changes. <h5>1.0.7 <ul> <li>Fixed release(txid) to wait for promises (order canceling) <li>Adust elmerlin balance by 9566.250 for release error in block 63014889 <li>Adjust MSHeld Balance by 56 HIVE due to 1.0.4 errors <li>Added a non-claim to DAO routine <li>Added voting for DAO routine <li>Fixed Account Update <li>Added partial fill tracking on buy orders <p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23w295pmbajMaEzhZJNJ6fqcPnMu6xfCRBVGwtbDUjWZUSQqLrAZZYc7kEqLHT6ekZtmr.png" alt="New UI Incomming" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23w295pmbajMaEzhZJNJ6fqcPnMu6xfCRBVGwtbDUjWZUSQqLrAZZYc7kEqLHT6ekZtmr.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/disregardfiat/23w295pmbajMaEzhZJNJ6fqcPnMu6xfCRBVGwtbDUjWZUSQqLrAZZYc7kEqLHT6ekZtmr.png 2x" /> <h6>Release - order cancel routine <ul> <li>/processing_routes/dex.js <ul> <li>dex_clear removed for loop with promise stacking <h6>non-claim dao funding <ul> <li>/processing_routes/send.js <pre><code> newClaim = 0 if(dao.m != json.timestamp.split('-')[1] && (json.timestamp.split('-')[0] == '2022' || json.timestamp.split('-')[0] == '2023') && parseInt(json.timestamp.split('-')[1]) < 4){ dao.m = json.timestamp.split('-')[1] //set month newClaim = parseInt((supply - dao.ct) * (dao.v/10000))//only distribute based on new supply dao[json.timestamp.split('-')[1]] = newClaim //set claim reciept by month dao.t += newClaim //add to total dao.ct = supply + newClaim //track the current supply so new tokens only get issued off claims ops.push({ type: 'put', path: ['balances', 'rd'], data: parseInt(rdbal + newClaim) }); //dao account ops.push({ type: 'put', path: ['stats', 'daoclaim'], data: dao }); //this obect ops.push({ type: 'put', path: ['stats', 'tokenSupply'], data: supply + newClaim }); //update supply } // mints new tokens on the first claim of each additional month if(!newClaim)ops.push({ type: 'put', path: ['stats', 'tokenSupply'], data: parseInt(supply + trak.s) }); else { ops.pop() ops.push({ type: 'put', path: ['stats', 'tokenSupply'], data: parseInt(supply + trak.s + newClaim) }); //update supply with new claim } // further adjusts token supply if the claim op was a success <h6>Voting <ul> <li>/processing_routes/nodes.js <pre><code>var dv = parseInt(json.ds) || 0 //dao vote 10000 = 100.00% / 1 = 0.01% //the portion of the claim that will be put into the chains DAO. Recommend 10-15% if (dv < 0) { dv = 1500 } if (dv > 10000) { dv = 1500 } // already finding the issue here: json.ds should be json.dv <p dir="auto">Votes get counted here: <ul> <li>/dao.js <pre><code>var newOwners = {}, dexfeea = 0, dexfeed = 1, dexmaxa = 0, dexslopea = 0, dexmaxd = 1, dexsloped = 1, dva = 0, dvd = 1 if(j){ for (var node in mnode) { //and pay them ... const gbal = gov[node] || 0 ... const dvvote = typeof mnode[node].dv != 'number' ? 1500 : mnode[node].dv ... dva += parseInt(wins * gbal * dvvote); dvd += parseInt(wins * gbal * 10000); ... } } } ... stats.daoclaim.v = parseInt(dva / dvd); //stored here <h6>Partials Tracking <ul> <li>/processing_rooutes/dex.js <pre><code> var partial = { coin: thistarget, token: remaining + thisfee } if(next.partial){ next.partial[`${json.transaction_id}`] = partial } else { next.partial = { [`${json.transaction_id}`]: partial } } <h6>Account Update <p dir="auto">Wasn't pointing to the correct transaction signer. This has been worked with several minor fixes. During testing this seemed to work, but live has had slightly less than phenomenal results. Any updates here will include the above ds => dv fix in version <code>1.0.8 but I expect at least a day to work through this.
Sort:  

Good job. 1 year from now we see the true impact.

I thought that working on a web 3.0 with JS would be very difficult but with what I have just seen it is not, apart from adding comments to indicate to others that it does certain lines of code

$WINE


0.200 WINEXCongratulations, @theguruasia You Successfully Shared With @disregardfiat.
You Earned 0.200 WINEX As Curation Reward.
You Utilized 2/3 Successful Calls.

wine_logo


Contact Us : WINEX Token Discord Channel
WINEX Current Market Price : 0.300


Swap Your Hive <=> Swap.Hive With Industry Lowest Fee (0.1%) : Click This Link
Read Latest Updates Or Contact Us

It's a big one you are doing
A big kudos to you 😇😇

Your website doesn't work on mobile. Why not add HiveAuth support?

We will. We love options.

Cool. Looking forward to using it.
Feel free to contact me if you need help.

PIZZA!

You can now send $PIZZA tips in Discord via tip.cc!

@disregardfiat! The Hive.Pizza team manually curated this post.

I have claimed some eheheh fun fun

Congratulations @disregardfiat! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png" /><td>Post with the highest payout of the day. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@disregardfiat" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Check out the last post from <a href="/@hivebuzz">@hivebuzz: <table><tr><td><a href="/hive-122221/@hivebuzz/pum-202203-25"><img src="https://images.hive.blog/64x128/https://i.imgur.com/JIdWpzd.png" /><td><a href="/hive-122221/@hivebuzz/pum-202203-25">Hive Power Up Month - Feedback from February day 25 <h6>Support the HiveBuzz project. <a href="https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for <a href="https://peakd.com/me/proposals/199" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">our proposal!

Nice content.. great