Vikash-8090-Yadav / Solidity-Pathshala

One place for the smart contract developer. This repo will have all the smart contract written in the remix ide .It contains all the source code with the screen shot.
MIT License
42 stars 55 forks source link

Created gasefficient uniswapV2 Trade solidity smart contract to swap eth or tokens efficiently from the contract. #314

Open manavjain2002 opened 9 months ago

manavjain2002 commented 9 months ago

Closes #313

šŸ‘Øā€šŸ’» Changes proposed

Created a new solidity smart contract for uniswapV2 Trading. The smart contract supports swapping from EthToToken, TokenToETH, and TokenToToken with other useful functionalities to deposit or withdraw ETH or WETH.

āœ”ļø Check List (Check all the applicable boxes)

šŸ“„ Note to reviewers

Comments are written wherever it's required.

My Deployed contract and results :

Network - Goerli

Contract Address - 0xeAd01ad508F87cd4482ECeA609e2A3F3220d32B6

SwapEthToTokens Tx Hash - 0x4da3c21675bd3e00bb6aef2f54b0ed2436249a299fcbfd5be9d80009c3db1db1

Swap TokensToEth Tx Hash - 0xde5a9ec840e1858d04d499297895bdf431c5c1d457c8a443592973a2f62def1c

Swap TokensToTokens Tx Hash - 0xcd6a8fa10c897de86c8a4f1462311e53959179b4e6100a4c2fe364ef423d1749

UnwrapWeth Tx Hash - 0x243c67a749680ab46f585fc40ef6f0dd69d785a56bd5b7974e7c802798c86904

WithdrawETH Tx Hash - 0x05f145d7a9f327f601c17a300b8b89233f88ab26dc0df460830f7db6560d2650

github-actions[bot] commented 9 months ago

Our team will soon review your PR. Thanks @manavjain2002 :)

manavjain2002 commented 9 months ago

Kindly add hacktoberfest-accepted label if merging.

Vikash-8090-Yadav commented 9 months ago

Great.