Smart contract that takes in ETH and lends a stable coin to users. ETH is deposited into a vault as collateral. Tokens that can be borrowed depend on an on-chain oracle. User can withdraw collateral by returning the borrowed tokens.
ganache truffle solidity typescript