A personal repo to learn and implement smart contracts using solidity with test cases. Currently implemented NFT Auction, Lottery, Proxy, Security Threats and Solutions, Vault, Staking Rewards, Constant Product AMM and Uniswap V2 Integration
I learnt solidity from https://solidity-by-example.org/. That website doesn't had a example for solving front running attack. So I learnt the commit-reveal scheme and implemented a solution for front running. The solution was raised as a PR and was accepted and is now live.
PR - https://github.com/solidity-by-example/solidity-by-example.github.io/pull/238
Solution implemented Link - https://solidity-by-example.org/hacks/front-running/
Discussion