Skip to content

svgvr8/eth-swap-dapp

Repository files navigation

DAO Token Swap

Try running some of the following tasks:

npm i
npm start

Take input token address from user and chain ID

Check if liquidity is added on PancakeSwap or UniSwap

If added, then try to swap it with a native currency or stable coin

For example, swap $DKD with $ALCX on ETH. For testnet, you can pick any token pair. Note that the contract does not have to transfer tokens to the Uniswap Router when calling the function. Instead, the user allows DAOHQ to approve the Router X amount of tokens, so that the tokens are still with user and not with DAOHQ.

Factory Address Ropsten : 0x2160FeBfCE7241936cEf2E5DaAc35046D91edD98

DAO LP = 0xdbeAd30107C6fA2Fc4A611a787430730fcc10D80 DAO Factory = 0x535a16EFde6f95477d60b8CC327661F392ad387f DAO Router = 0x73e6d458b7f1b819b47e3628b71030d9ef20c29e

Sample Swap ETH to WETH on DAO Router = https://ropsten.etherscan.io/tx/0x8e36af7fe74294085119b011def60807c01592abd337538c54b0117af820466c