Swap your vault's underlying collateral with another asset, in one transaction, without paying back the vault's debt. This uses the magic of open composable ethereum protocols, namely: MakerDAO's vaults, Aave's flash loans, and Uniswap's DEX.
More info: Twitter thread.
Live version of Collateral Swap
- Minimal / no usage of
;
(Visual Studio instructions) - For indentation, use 4 spaces (Visual Studio instructions)
npm install
npm start
npm run build
npm run deploy