we know that there is new update for ERC20 that is ERC-223 now wich one should we use ?
Only a few projects use the ERC 223, an example is the AmigoCoin project. It is absolutely not advisable to launch today an ERC223 without considering newer standards like erc777 or so.
Erc20 is simple and largely improvable, but it IS the standard for ETH based tokens as resulting today.
- ERC-223 helps to stop the loss of tokens (e.g. in case they were sent to the non-compatible or wrong contract).
- It also consumes less gas since the token transfer is a one-step process (instead of 2 steps in ERC-20).
However, take into consideration the ATN incident that happened on March 5th, 2017.
ERC-20 is recommended option, accepted by most exchanges. ERC-223 tokens are tokens similar to ERC-20 tokens and used only on Ethereum network. ERC-223 is a newer standard with an improvements over ERC-20 standard. The standard eliminates lost tokens in certain conditions when sending tokens, better handling of incoming token transactions, and energy and gas savings.
You can check out the erc20 and erc223 token generating service for easy and simple custom token creation. The link is: https://tokenmint.io