Cub finance smart contract analysis

in LeoFinance4 years ago (edited)

screen.png

tl;dr Cub Defi smart contract is as safe as Goose Finance, and as I compared it to sushi it looks ok for me.

Cub defi get a lot of attention, so I decided to take part in the party. Before I go with more money I like to check what mechanics exists under the hood.
The easiest start always is the smart contract that interacts with site.
When we try to interact with contract we can get exact addres of it:

Screenshot from 2021-03-09 23-19-11.png

Thanks to the fact that all data are available we can check LionsDen smart contract:
https://bscscan.com/address/0x227e79c83065edb8b954848c46ca50b96cb33e16#code

after a while of reading it, one fragment brought my attention:

    // EGG tokens created per block.
    uint256 public cubPerBlock;

the place where name in comment suggest the orginal source of smart contract. A little checking on web and i found - Goose Finance. We can open it in any editor that compares text files, and we can see that its almost exact copy of Goose Finance:
https://github.com/goosedefi/goose-contracts

where changes are with naming, creator addresses etc. (disclaimer: in defi everything is a fork of forks, so its ok, I'm happy that leo community is engaged in broader cryptospace)

at this point we know that cub is as safe as goose.

as we can check on https://dappradar.com/rankings/category/defi

goose is at the moment second by users, and has over 600 milion $ in assets locked, and it exists from 10 february. Let's say pretty good as BSC project.

I do extra comparisons goose with sushiswap, what for me is a point that is safe enough, and I don't found any big differences in logic so decided that for my standards its acceptable :)

please not take it as financial advice, more like help in own research smart contract and blockchains are tested in practice so don't get mad at me if something blows in your face

Sort:  

Congratulations @nalesnik! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You received more than 300 upvotes.
Your next target is to reach 400 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP