Aug 30, 2021

CakeDeFi - Earn passive income by staking your crypto and forget about it

Warning: There is absolutely no financial advice on this or on any other pages of this blog.

Old way of earning from crypto

It's been a while having my crypto sit quietly in my crypto wallet. As an non-savvy crypto owner, mining and trading crypto is most I know about how one can earn from crypto.

Crypto Staking Experiment with Cake DeFi

"Staking" has been a new term to my early this year (of 2021). It's nowadays an easier approach to generate revenue with your available crypto without the need of hunting for expensive GPU (for mining) and additional payment monthly electricity bill.

My first staking experience was started with CakeDeFi (affiliate link)

My first experiment started 4 months ago (April 2021), I transferred 20 DFI to my partner. And then she directly put them all into "Staking" with auto-compound and she forgot about it until she received an email today.

20 DFI + staking became USD106


In this case:

20DFI worth approximate USD75 (4 months ago)

20DFI + staking (auto-compound) = ~USD106 (August same year)


Looking at the chart below, I picked the peak value point on April as example. Compared to the highlighted value, it has lower price today at the time of this writing (USD2.79 / DFI). The value of staking with autocompound compensated the drop in USD value, while still profit from the extra DFI token earned from staking.


USD price changes of DFI



How does earning from staking work?

When you stake your DFI, you get paid with DFI twice a day. 
Here's come the best part, all you need to do, in short, stake your DFI and forget about it.

You have an option to enable "auto-compound" and let it to continue to stake with all the new earning without having to manually add them after every earning cycle. Which it also means, we can just stake now and forget about it until you login again next time to find out how much you've gained in your asset, but just remember to enable "auto-compound" option.

DFI Staking - auto-compound setting


The following is an example about daily earning:

Auto-compound (staking) & Earning



See the result for yourself first

Okay, since the very first transaction would usually require you spend hardearned money to get started . Please don't simply believe that anyone can just earn a fortune out from this.
Risk is always there, for a non-savvy crypto owner, I'd usually start small (where it won't hurt a bit if I lost all of it) until I've gain enough confidence to make a big decision. Trust no one until you see for yourself first.

This isn't a financial advisor post, please DO NOT read or treat it like one. I'm not any certified financial advisor, I'm just sharing my good experience with what've achieved with CakeDeFi. If you are a owner of crypto already, then you may have already know the how's its volatility affect its value, so please be warned, do it only what you think you capable of, never overdo anything. Like the old saying, never put all your eggs in one basket.

If you are interested to get an account, you can use this CakeDefi affiliate link and get extra USD$30 worth of DFI after you sign up & make your first $50 deposit.

How does it looks like inside?

Liquidity Mining (risky, due to the volatility value changes - Impermanent Loss)

Impermanent Loss happens because you add liquidity in pair (BTC - DFI as example below).
Either of the crypto drop or rise in value, the other paired crypto would need to increase or reduce itself to breakeven and to maintain the initial share you have started with.


Interface for Staking DFI
This one is straight forward. You'll need to swap your token into DFI, and start staking.
You'll get staking reward every day, and "auto-compound" option will help you auto-stake the daily earnings, so you are staking with the most DFI you have available (to maintain highest earning capability).



Have fun staking!

Aug 17, 2021

Unit test on Angular with Jasmine, test case executed randomly

 Problems

If your written unit test is written in an order that has test like:
expect(modalCtrlSpy.dismiss.calls.count()).toBe(1);

The "count()" is accumulated throughout the test cases from the start until the end of a "described" scenario. If test cases get executed without following the order as written test, it fails due to "count()" result get accumulated differently across the test. It can't match the "expected" accumulated result if test run randomly.

Solution

In the karma.conf.js file, add "random: false" under client.jasmine object to prevent test case being executed randomly.