Open abhi3700 opened 2 years ago
what
this is to check whether the parsed contract address has some ERC20 code.
this is not recommended because
It blocks developers creating a pair before deploying a token contract ( some may find this useful )
Every pair liquidity is dedicated so if the pair token isn't deployed or doesn't fulfill ERC20 standard core functionality wouldn't work including providing liquidity, etc. so it doesn't matter.
Instead of this line, the check contract logic can be written by introducing a function like this: