-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
So far, there are two external interfaces in the leverage tool:
- Uniswap (FlashSwap)
- Compound
Code to interface with these two external smart contracts are intertwined, it would be cleaner and more secure to modularize these interface routines. For example, in contracts/FlashSwapCompoundHandler.sol, functions that are not related to FlashSwap should be moved outside this smart contract. There needs to be a mechanism to call external contracts, changing line 62 from:
DSProxyInterface(dsProxy).execute(address(this), openLoanLogicData);
to:
DSProxyInterface(dsProxy).execute(ProxyAddress, openLoanLogicData);where ProxyAddress here is where Compound interfacing routine, or other routine lives.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request