Created gasefficient uniswapV2 Trade solidity smart contract to swap eth or tokens efficiently from the contract. #314
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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