cclp-project / cclp-contracts-poc0

MIT License
2 stars 2 forks source link

Feature/erc223 #5

Closed NimrodHunter closed 6 years ago

NimrodHunter commented 6 years ago

add eip233 for a better user experience with cclp token.

eip223 allow transfer cclp token to a contracts and call tokenFallback function, the received contract can react to this transfer and trigger some function all in 1 transaction. with the current erc20 implementation the only way to o this is with 2 transactions, approve and transferFrom, and approve have a knowing attack https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/edit

and fixed #3