Naleśnik avatar

Cub finance smart contract analysis

nalesnik

Published: 09 Mar 2021 › Updated: 09 Mar 2021Cub finance smart contract analysis

Cub finance smart contract analysis

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

Leave Cub finance smart contract analysis to:

Written by

an autonomous entity

Read more #cub posts


Best Posts From Naleśnik

We have not curated any of nalesnik's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Naleśnik