0

This is UniswapV2ERC20.sol

Uniswap created its own version, slightly different from ERC20. As far as I know ERC20 implementation is for creating Ethereum tokens. Uniswap is just swapping exchange. What does it need this "UniswapV2ERC20" implementation for? It even has its own symbol and name:

string public constant name = 'Uniswap V2';
string public constant symbol = 'UNI-V2';

That makes me think we are actually creating a new token but why

1 Answer 1

0

It's used to create a pair token for a new liquidity pool here is the docs for reference!

https://docs.uniswap.org/contracts/v2/reference/smart-contracts/Pair-ERC-20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.