safemoonprotocol / Safemoon.sol

safemoon contract
661 stars 899 forks source link

why does the contract has uniswap in it? #27

Open amit221 opened 3 years ago

amit221 commented 3 years ago

the title said it all

theSkele commented 3 years ago

Because safemoon.sol interacts with pancakeswap, and pancakeswap is a fork of uniswap.

amit221 commented 3 years ago

but you don't need code in order to interact with pancakeswap ,pancakeswap interact with contracts using the erc20 interface for transfers. people trade in pancakeswap automaticity add liquidity there as they add their coin in there.

theSkele commented 3 years ago

well you do need a contract to create a token pair on any uniswap fork (including pancake), and that is what safemoon.sol does