hifi-finance / hifi

Monorepo implementing the Hifi fixed-rate, fixed-term lending protocol
https://app.hifi.finance
Other
106 stars 15 forks source link

[flash-swap] Add token withdraw method #61

Closed scorpion9979 closed 3 years ago

scorpion9979 commented 3 years ago

One implication of https://github.com/hifi-finance/hifi/pull/60 being merged is that the flash-swap contract is going to have to contain collateral token balances to insure that it would always have enough collateral to repay the 0.3% Uniswap V2 fee, especially in the case where USDC is used as collateral. Thus, we will need to add a token withdraw method in order for the contract owner to be able to withdraw tokens contained by the flash-swap contract.

scorpion9979 commented 3 years ago

This is no longer needed since the bot wallet will contain any USDC needed to pay for the 0.3% Uniswap V2 fee.