Smart contract that lets people deposit ETH and allow owner to withdraw ETH
In this contract we learn about:
- Payable functions.
- Getting external data (price feeds; ETH->USD) from decentralized oracles such as chainlink.
- Receiving funds and storing the list of senders.
- Setting owner of the contract.
- Withdrawing funds (only by smart contract owner).
- Setting permissions
- Working with real blockchains and oracles (Kovan testnet in our case).
Get free testnet ETH and LINK: https://faucets.chain.link/