[idea] dual-contract tokens
A dual-contract token is an ERC-20 token that has an ERC-223 version. The ERC-223 version will be deployed by the original ERC-20 token contract and will have unlimited token spending approval from any wallets. This is achieved by changing the ERC-20 transferFrom()
logic to give the ERC-223 version unlimited token spending approval from any wallets. The ERC-223 version will call the transferFrom()
function in the original ERC-20 token contract when transferring funds, instead of modifying a balance sheet, and it will check the allowance()
function in the original ERC-20 token contract when using transferFrom()
in the ERC-223 version instead of checking allowance database. A dual-contract token can support more wallets, and is very DeFi-friendly.
submitted by /u/jessielesbian
[link] [comments]