Project #3 for Arcane x CertiK Developer Workshop: https://calnix.gitbook.io/eth-dev/
Problem Statement: yieldprotocol/mentorship2022#3
Users can exchange ERC20 TokenA for ERC20 TokenB via a contract called Wrapper. Wrapper contract will do a 1 for 1 exchange.
- Users can send a pre-specified ERC20 token to a Wrapper contract (also an ERC20).
- Wrapper contract issues an equal number of Wrapper tokens to the sender.
- Holder of wrapper tokens can claim their original ERC20 tokens, by burning wrapped tokens.
Ether is not an ERC-20 token, while being the native token for Ethereum. This forces all platforms to implement Ether as an edge case.
- Code a Wrapper that takes Ether as it's currency.