INTRODUCTION
The blockchain industry has proven to be fast moving with rapid adoption and evolution. With the advances of technology and innovation, previous standards and protocols are being replaced resulting in increased performance and efficiency.
At Coinvest, our goal is to develop and deploy solutions as quickly as possible in order to gather customer feedback and continuously iterate. A repeated cycle that ensures that we are collaboratively working with our partners and overall community to develop solutions that are in full alignment with expectations. Ultimately, to push the envelope against any or all competition.
When we first started development of our smart contracts and the COIN protocol seven months ago, the tools and standards available to-market enabled us to deploy an initial version of our protocol that achieved unique innovation – one that is still unparalleled in the today’s world of cryptocurrency investing, by removing the requirement to physically hold cryptonized assets to retain their value. With advancements in BIP and new standards, we have advanced our technology to optimize our execution while increasing simplicity for our end user.
Welcome to COIN Protocol V2...
SUMMARY
COIN V2 is an upgrade to the existing COIN protocol and smart contracts. These changes include an upgrade with standard ERC865 while downgrading the token from ERC223 to ERC20.
In the world of Ethereum, Ether is the fuel to execute transactions on its blockchain. Thus, requiring users to have Ether on hand to execute transactions regardless if the platform only uses one native token. Therefore, requiring two tokens to execute one objective. The ERC865 standard enables the payment of transfers in tokens instead of gas; therefore, eliminating the need to posses Ether and another token to execute single transactions. We are also using the signing capability that allows a party to transfer tokens on behalf of the token owner to make authorized sells on the investment contract. While it may sound trivial, this is powerful as it reduces the need for repeated authorizations from the owner which makes processes more efficient.
ERC223 is a token standard to prevent the loss of funds when sending tokens to a contract that is not intended to handle ERC20 tokens. As a result, the tokens will not be rejected and are stuck in the contracts balance leading to loss of funds for the sender. At Coinvest, we implemented this standard as one of our blockchain engineers, Dexaran Derat, was the founder of ERC223. Additionally, because we wanted to prevent any loss in funds as well as lead in innovation. Unfortunately, being on the bleeding edge of technology has not favored us as a number of exchanges have yet to upgrade and support the ERC223 standard. As a result, they are not able to support COIN at this time. To rectify the situation and offer COIN to masses, we understand the importance of aligning with current supported standards. Hence our decisions to downgrade our token standard from ERC223 to ERC20.
REQUIREMENTS
To improve our protocol architecture, our goal was to build on top of the original requirements from the previous version. New requirements are in red.
TECH RESULTS
To meet our requirements, Coinvest refined the COIN token architecture to leverage ERC865 to allow transaction fees to be paid in COIN tokens instead of gas. Additionally, use the signing capability that allows a party to transfer tokens on behalf of the token owner to make authorized sells on the investment contract.. Here’s how it works:
Please Note: To make a buy on the investment contract instead of a normal transfer, the same steps are taken but with the token’s “approveAndCall” function with the given data for the buy call. A sell is the same but directly on the investment contract without token actions (because no COIN needs to be sent).
BENEFITS
So what do these upgrades mean for Coinvest and our users?
Users can trade on the Coinvest investment trading platform anonymously using their wallet address without having to create an account or supplying any personal information�
Improve compatibility for exchanges that only support the ERC20 standard
COIN V2 includes improvements with security, privacy, performance, and efficiency. In addition to these improvements, COIN V2 would have full compatibility and support with current exchanges on the market today.
COIN PROTOCOL V2
TRADE PROCESS
If confirmed, order is signed.
* Trade fee is sent to Coinvest corporate wallet address
TRANSFER PROCESS
If confirmed, order is signed.
UPGRADES
IMPACT
COIN V2 upgrades require a fork of the existing COIN token. Collectively, we have agreed that a fork is most beneficial now as opposed to the future for the following reasons:
TIMELINES
ETHERLESS DEMO
DEMO
The purpose of the Coinvest Etherless demo is to demonstrate V2 of the Coinvest token contract. More specifically, the ability to allow one address to delegate the transfer of COIN on behalf of the owner after the owner has signed a message giving permission for the transfer, thus eliminating the need for the owner to send the transaction to the blockchain themselves.
COINVEST APP V2
TECH STACK
HTML / CSS / JAVASCRIPT | VUE.JS (Frontend UI Library/Framework) | |
NGINX (Web Server) | NODE.JS (Backend Server) | |
ETHEREUM NODE (GETH / API Server / Blockchain / Smart Contracts) | MySQL (Transactional Data Store) | |
UBUNTU (Server Operating System) | ||
AMAZON WEB SERVICES (AWS Cloud Technology Services) |
APPENDIX
DEFINITIONS
RESOURCES
The technical constructs and details are each standard can be found below: