When the development work for the Blue Hill Platform began, it was decided to use the best known blockchain to deploy smart contracts, this being of course Ethereum. At the time, the cost of GAS was not a problem, we were talking about levels below 10 Gwei. See: https://etherscan.io/chart/gasprice

With the birth of DeFI (Decentralized Finance) recently we have been at levels of 120 to reach peaks of 500 Gwei, which seriously hinders developments and uses of dapps (decentralized apps).

To make an analogy, it is as if suddenly the wheels of the cars are so expensive that they exceed the cost of the car itself, so we have been forced to take other options such as trying to make the car run the same with 2 wheels as with 4, a motorcycle (to understand us).

The Blue Hill Platform at present is developed and ready for deployment from test environment to production. In fact, the smart contracts of both the token and the wallet are deployed in a testnet called Kovan, on the same Ethereum network, before passing them to the MainNet. Once this happens there is no going back, so the steps must be safe and accurate.

You can see the different contracts for the operation of the BHF-Token in:

Token: https://kovan.etherscan.io/address/0xa580D95E05C5d28538ED0b36F9545aF1d0338d58
Wallet Registry: https://kovan.etherscan.io/addressclet/0x2654143BF82539e5E69b7D
Wallet (example) https://kovan.etherscan.io/address/0x073ECc55A34663229960Dc10e00ac148B56d5dE8
Poll (example): https://kovan.etherscan.io/address/0x04a010e260c0be573d34bca7d6428c33e1ec2be5

This project involves the creation of a wallet by user. The different parameters of the same are integrated (such as the vesting program, burning program, movement of the token, the possibility of voting, etc.). Right now each contract is free.

What does a wallet have to do right now without the proposed changes? Make the following transactions:

https://kovan.etherscan.io/tx/0x2bd03e22999ce0a36a1a7e6109927429c60c740d28a7dd7f25a5ad328c454a59
https://kovan.etherscan.io/tx/0x720464a499a6a6b407d3cb46f3c341da0781ed0610c705d242512a6b5d1894d0
https://kovan.etherscan.io/tx/0x93d04ec8d0311c976611df48698b396b42845ddb85e3daa7ac04697b8f4ee1e4
https://kovan.etherscan.io/tx/0x4a5dd5c471b4cc0cdad05137a31e23bf22e2979ebda5c847e704c8cea5dcd949
https://kovan.etherscan.io/tx/0x120d8d72b49ab2102b6e48a4c14ebd80f17712a

Proposed solution?

That all these contracts go within the smart contract of the wallet, to avoid calling the contracts every time a wallet is created. It is something novel in the sense that, without thinking about this high cost of historical gas, it is not usually done that way. After two weeks of study we have decided that this is the best way to solve the situation in order to provide a functional and friendly platform in all aspects, meeting all the requirements already established.

These are the contracts delivered for your audit:

- Poll: Survey contract, represents a survey on the platform with various options.
- Token: The BHF-Token.
- Wallet Registry: It is a contract used to register all the wallets that exist on the platform. In this way, when someone votes we can verify that they can perform this action and that they are a known user by the platform by buying them here. It is a record.

blog-image