Yield vault harvesting
Last updated
Last updated
is using Gelato Automate for automated yield harvesting.
This is the function which Gelato will be calling. harvestVault
claims yield generated from a pool and re-deposits them back into the pool.
ETHA uses this resolver below to check for ready to be harvested pools.
The resolver loops through an array of pools. And for each vault, if a defined delay
has elapsed since the previous harvest time, canExec
will return true
, prompting Gelato to execute the task. execPayload
will be the data to the function call harvestVault(address vault)
and its argument is the address of the vault to be harvested.