hifi-finance/hifi

[flash-swap] Merge the "CollateralFlashUniswapV2" and "UnderlyingFlashUniswapV2" contracts

PaulRBerg opened this issue · 2 comments

Thanks to 32dd173 and 7f042ab, the CollateralFlashUniswapV2 and UnderlyingFlashUniswapV2 have become very much alike.

By passing an additional variable to the flash swap ABI-encoded data, say "repayToken", we could potentially merge the contracts. That will remove a big chunk of technical debt.

I started working on this in the refactor/flash-swap branch.

Closing now.

I should have closed this issue on Nov 16, when I merged PR #69 into the main branch.