You are viewing a single comment's thread:

RE: Baj-Armero Dividend Logic: Is There a Better Way?

I just recently acquired myself some ARMERO, so this is very interesting indeed! The way that you set it up makes sense, and it works well, so I don't know if I have anything to offer, other than letting you know how we do it for the We Are Alive Tribe.

The script for the daily dividend payouts for held and/or staked ALIVE calculates how many of the chosen tokens to send were earned in a week, then sends out a quantity just under that for each token, for both liquid and staked ALIVE in people's accounts, with staked receiving double. It's been working well for a fair while now. I know that is very different from what you're doing with ARMERO, but perhaps there's a tidbit useful in there. 😁 πŸ™ πŸ’š ✨ πŸ€™

0.00154752 BEE
1 comments

So think about "token precision".

Liquid Hive has only three decimals available. Hive engine tokens can have more. But still, how do you guys deal with rounding?

0.00000287 BEE

Oh indeed, that actually caused a couple issues when we were testing the script, once for liquid HIVE, and once for LOLZ. Bjorn (@borniet), who wrote and manages our payout scripts, had to adjust the precision a little, though i
I don't know exactly how he tweaked it. The rounding issue with HIVE was solved (for the moment) by keeping more liquid HIVE on the payout account. You and @thecrazygm should connect with Bjorn, as he's a phenomenal coder, and an exceedingly prodigious builder. He's a dear friend and partner in two projects. 😁 πŸ™ πŸ’š ✨ πŸ€™

0.00173557 BEE