Vaults such as Yearn Finance in the ecosystem?

Hey I wanted to create a self repaying loan protocol like Alchemix. The YearnVaultAdapter.sol was used during development, which is part of the mechanism to generate future yield.

Is there a way to use for example moola to create such vaults or do we have to have Yearn Finace in the celo ecosystem?