We were trying to make a strategy for the Badger DAO Sett vaults farming COMP token.We implemented the minting of the CTokens but came to a critical error when we tried to withdraw. We couldn't get much farther than that so the project is incomplete. WBTC was deposited, lended out to Compound and we received cwBTC. COMP is claimed and then swapped to WBTC to reinvest.
We used Solidity to write the strategy in MyStrategy.sol. We deposit WBTC into the Badger Sett Vault which uses the Yearn V1 architecture. It is then deposited into Compund and minted into cwBTC which are the liquidity pool tokens of the strategy. We use the Comptroller to claim COMP. Uniswap is used to swap the COMP to WETH and then from WETH to WBTC. WBTC is then reinvested in the vault. Brownie was used to deploy the contracts on Ganache and for running tests.