Intercoin / CommunityCoinContract

Contracts to let people stake various tokens and use the trust that was built up in Intercoin's factory code.
GNU Affero General Public License v3.0
12 stars 2 forks source link

pool [traded]-WETH #33

Closed artman325 closed 1 year ago

artman325 commented 2 years ago

bug with pool where reserve token are WETH. then user try to buy and stake liquidity and code convert eth to WETH and try to convert WETH to reservetoken(WETH). and uniswap library throw expection "UniswapV2Library: IDENTICAL_ADDRESSES"

artman325 commented 1 year ago

fixed in latest commits.
https://github.com/Intercoin/StakingContract/blob/79c21d5278a3f7e0f86dd2fff023d2d977297ee3/contracts/CommunityStakingPoolBase.sol#L158-L163 no need to "swap weth for weth" on uniswap we just skip this step