Cranker
Cranker with chainlink automation upkeep
Use Cases in Polystream
How it Works (Technical Flow)
solidityCopyEditfunction checkUpkeep(bytes calldata) external view returns (bool upkeepNeeded, bytes memory performData) {
upkeepNeeded = (block.timestamp >= lastEpochTime + EPOCH_DURATION);
}solidityCopyEditfunction performUpkeep(bytes calldata) external {
checkAndHarvest(); // Harvest yield and distribute rewards
optimizeYield(); // Automatically selects best yielding protocol
}
performUpkeep executions and $LINK paymentsLast updated