Welcome to ialmanzaj's solutions to the challenges using solidity and foundry⛳️.
Anyone can send Ether to this contract. However only the owner can withdraw, upon which the contract will be deleted.
Become the 7th person to deposit 1 ETH to win 7 ETH. You can deposit 1 ETH at a time. Alice and Bob already has 1 ETH deposited.
Deposit more than previous user to become the king.
Hodl is a contract where users can deposit ETH but can only withdraw after a certain time has elapsed.
Constant product AMM (automated market maker) is a decentralized exchange where 2 tokens are traded.
The price of the tokens are determined by a mathematical equation
Alice has 10 WETH and deposited 1 WETH into ERC20Bank.
Thinking she might deposit more later, she has set inifinite approval on ERC20Bank.
In other words, ERC20Bank can spend unlimited amount of WETH owned by Alice.
Solution to challenges by smart-contract-engineer.