Skip to content

fix: restore GelatoAutomation contract (#46)#105

Open
Tranquil-Flow wants to merge 4 commits intomainfrom
fix/46-gelato-automation
Open

fix: restore GelatoAutomation contract (#46)#105
Tranquil-Flow wants to merge 4 commits intomainfrom
fix/46-gelato-automation

Conversation

@Tranquil-Flow
Copy link
Copy Markdown

Summary

  • Restores the entirely commented-out GelatoAutomation.sol with proper AbstractAutomation inheritance
  • Implements Gelato resolver/executor interface: checker() returns readiness + encoded payload, execute() triggers distribution
  • Marks unused execData parameter correctly via /* execData */
  • Adds comprehensive test coverage: checker true/false states, permissionless execute, revert when not ready, all distribution condition combinations

Closes #46

Test plan

  • testGelatoChecker — returns false initially, true after blocks advance
  • testGelatoExecute — executes distribution via Gelato executor
  • testGelatoExecutePermissionless — random address can call execute safely
  • testGelatoExecuteRevertsWhenNotReady — reverts with NotResolved
  • testGelatoCheckerFalseWhenNotReady — all false conditions tested (no votes, low yield, disabled)
  • testGelatoCheckerTrueWhenReady — verifies execPayload encodes executeDistribution selector
  • Full suite: 191 tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review and Implement Gelato Automation Integration

1 participant