A simple contract for keeping track of collaterals?
For a separate project that I am working on, I needed a contract that keeps track of how much ERC20/ETH is set aside by an address for another address. I wrote the following contract (github link attached), that allows a user to deposit a certain amount of ERC20/ETH into a 'collateral' position, which they can…
Read more