Posts

APR Calculator Discord Bot: Get Your HBD Earnings Game Going

avatar of @jazzhero
25
@jazzhero
·
·
0 views
·
3 min read


When I first read a random blog post talking about a chance that the HBD savings interest rate would increase to 20%, I thought it was baseless hope.


But a day or two later, it actually happened.
An APR interest rate of 20% is exciting. More so because it's HBD -- a stablecoin backed by the Hive blockchain that's pegged to one US dollar. It's possible to get higher rates from other crypto staking or savings offerings. I joined a few ones with rates even reaching as high as 200+%. However, it's not unusual for those coins to crash in value within weeks. The higher APR didn't really matter.


I don’t have much HBD or Hive on my account, but I keep fussing over my savings and potential earnings. How much more finicky would users with tens of thousands of HBD be?


Getting detailed information is part of making the most out of your earnings game. Though manually calculating APR yields isn’t complex, having it done for you on Discord is infinitely much easier.


It’s not too difficult to code, neither server-resource heavy, so I went ahead and ninja-modified our current community Bot. 😁



APR Calculator: Custom Discord Bot Function


The APR Calculator is available to all discord servers that have @hiveph's HivePHBot. It was primarily a curation helper for our small Hive community. But we kept bloating it up with random features. 🤣

The bot has a new function that returns the projected interest earnings for an entire year. To use, type:

!apr STARTING_HBD_BALANCE OPTIONAL_WEEKLY_HBD_TOPUP
Please take note of the spaces in between the parameters.

STARTING_HBD_BALANCE is the initial amount of HBD that you're putting into your Savings. It must be a numeric value.

OPTIONAL_WEEKLY_HBD_TOPUP is an optional input. It tells the bot whether you'd like to consistently increase your savings balance by a certain amount every week. It should also be a numeric value.
*** Here's a sample command for calculating a year's worth of interest for a Savings account with a 500 HBD balance.


*** And here's the command if you want to calculate for a 500 HBD starting balance, but with an intention to add at least 5 HBD every week.



A Brief Look into the Calculation Process


I used the simple APR formula:

APR interest = balance * annual_rate/365 * period_in_days


But I used a week as the smallest unit instead of days to make the calculation faster.


The weekly top-up amount is assumed to be value added by the end of the week. Once added to the primary balance, it is also factored in the APR interest calculation.


I considered including compounded interest earned in the calculation. It implies that whatever amount you profited for the month from your Savings, you re-invest immediately. But I thought the weekly top-up is already a good substitute for it, since it’s a similar compounding effect.

Let me know if you think it's something that needs to be added. I avoided doing it since it felt redundant.



My Personal Gameplan


Prior to the interest hike, I was focused on increasing my Hive Power. But now I’m a bit torn. On some days, I favor getting more power, but the yield from Savings is incredibly enticing.


So I ended up with an even split. Similar to how Author rewards are distributed by default — 50% as HP and 50% as HBD, I keep the HP portion as is and put all HBD earnings into Savings. I feel like it’s a good compromise.


To end. Let’s look at the interest calculation for a 500 HBD balance when the rate was 12%. Then compare how much bigger it will be now that the APR is 20%. 🤑




Want to earn while having fun? Join Splinterlands.

Like the GIF on this post? Make your own using Canva.

Attributions:
----------
Images created with Canva. Cute Discord bot avatar is created with Charat.me. Also, several screenshots from Discord.


Posted Using LeoFinance Beta