Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

[Epic] Harvesting #66

Open iafhurtado opened 1 year ago

iafhurtado commented 1 year ago

Create harvest function to ILending Provider Interface.

When a Lending Provider is not farming then it will return null.

Another function needs to be compoundingCollateral(LP, Asset)

Vault to handle swap and compound.

pedrovalido commented 1 year ago

Have the basic functions implemented before public launch

pedrovalido commented 11 months ago

protocols with rewards: compound dforce radiant spark

pedrovalido commented 11 months ago

First goal: lay down the structure, structs, interface functions, functions in contracts with general steps and comments

pedrovalido commented 10 months ago

Note to self: harvest logic will be done inside the vault (instead of having HarvestManager). No need to separate additional logic (like flashloan logic as in RebalancerManager and LiquidationManager), so no need to have HarvestManager.

pedrovalido commented 10 months ago

Note to self: HarvestManager will have to be implemented due to size in Vaults. It also makes sense to implement a HarvestManager to be able to implement specific strategies and extra complexities outside the vault (swap, distribute, etc).

pedrovalido commented 10 months ago

comment the function preview harvest from iharvestable and leave it as TODO function for later