Intro
Calculation details
The calculation of the delegators income has changed a little bit. We now round up everywhere we can. The minimum a delegator can earn each day is 0.001 HIVE (We are aware that this should not be the final solution. But for now we want to give back to everyone who decides to delegate to us. If we recognize any malicious intent we will decide how we want to deal with it and let you know on our blog about the next steps).
We are querying the curation rewards of the @DIYHUB account for the previous 24h by using the get_curation_reward() method of beem.Account while config.interval is set to 1:
acc = Account(acc_name, blockchain_instance=hive)
curReward = acc.get_curation_reward(days=config.interval)
With the given result we construct a SQL query we then send to hivesql.io:
SELECT delegator,
Ceiling(( 4.01 / 100 * ( vests / (SELECT Sum(sub.vests)
FROM delegations sub
WHERE sub.delegatee = 'diyhub') * 100
) ) *
1000) / 1000 AS payout
FROM delegations
WHERE delegatee = 'diyhub'
As a result we will receive a list of delegators including a precalculated payout in HIVE:
This payout value will then get transferred from to the related delegator. Additionally to the HIVE payout we are still paying out DIY tokens on hive-engine. To make our life a bit easier we have adjusted the payout to
math.ceil(amount*config.token_supply_multi) where config.token_supply_multi is currently set to 100. So if a delegator receives 0.4 HIVE at the same time 40 DIY token will get sent to their wallet.
The automation now runs in a separate screen instance and the team is instructed to tell me if a payout fails some day in case I missed the notification. If you experience any issue or if you have any question related to the payouts feel free to contact us in our discord server.
We are doing our best so that we do not need to delay the payouts anytime again.
Inconveniences of the last 2 weeks
Background: We had some issues related to hive api nodes in correlation with the beem library. This already happened in the past at exact the same part of the code where we ask for the current delegations of our account. To reduce this very critical error potential we decided to switch this heavy query over to hivesql.io today. This improves stability and performance of this part enormously but of course we have still a backup of the old code in case hivesql.io loses it's support in the proposals (make sure to vote for it here please).
Thank you
For your understanding and patience. We value our delegators very high because without them we can not operate this initiative to support the DIY scene of HIVE!
We discover posts daily in various categories:
- ART: architecture, digital, photography, drawing, painting, make-up, tutorials.
- DIY: building, cooking, crafting, homesteading, needlework, paperwork, programming, repairing, science, tech, woodwork.
- MUSIC: covers, original, tutorials
- NATURE: gardening, health, outdoor/survival
Share your Do-It-Yourself projects in the DIYHub community on HIVE with members with the same passion, interests and who will appreciate your work. Let's connect in the community and build strong and long lasting relationships on the HIVE blockchain!
This is service is 100% non-profit!
all of our curation rewards are going directly back to the delegators via daily payouts in liquid HIVE! Please support us and the creators we are supporting with your delegation and earn passive income: 100 HP | 200 HP | 500 HP | 1000 HP | 2500 HP | 5000 HP
Next to the usual curation we are also running a witness server on hive.
If you want to support our journey then feel free to vote for us!
You can contact at any time via our discord server: https://discord.io/diyhub
Oh! you don't have an HIVE account yet? Sign up and start sharing!