From 20ed07998987ae8c42f08a997bcd988bb1eb4d11 Mon Sep 17 00:00:00 2001 From: pinkBoss Date: Mon, 31 Mar 2025 18:18:27 +0200 Subject: [PATCH] new - Update automation-interfaces.mdx --- .../chainlink-automation/reference/automation-interfaces.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/chainlink-automation/reference/automation-interfaces.mdx b/src/content/chainlink-automation/reference/automation-interfaces.mdx index 0d2657dcea0..c76d9eac898 100644 --- a/src/content/chainlink-automation/reference/automation-interfaces.mdx +++ b/src/content/chainlink-automation/reference/automation-interfaces.mdx @@ -35,7 +35,7 @@ Custom logic upkeeps need to use the [`AutomationCompatibleInterface.sol`](https ### checkUpkeep function -This view function contains the logic that runs offchain during every block as an [`eth_call`](https://eth.wiki/json-rpc/API#eth_call) to determine if `performUpkeep` should be executed onchain. To reduce onchain gas usage, attempt to do your gas intensive calculations offchain in `checkUpkeep` and pass the result to `performUpkeep` onchain. It is a best practice to import the [`AutomationCompatible.sol`](https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/automation/AutomationCompatible.sol) contract and use the `cannotExecute` modifier to ensure that the method can be used only for simulation purposes. +This view function contains the logic that runs offchain during every block as an [`eth_call`](https://ethereum.org#eth_call) to determine if `performUpkeep` should be executed onchain. To reduce onchain gas usage, attempt to do your gas intensive calculations offchain in `checkUpkeep` and pass the result to `performUpkeep` onchain. It is a best practice to import the [`AutomationCompatible.sol`](https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/automation/AutomationCompatible.sol) contract and use the `cannotExecute` modifier to ensure that the method can be used only for simulation purposes. ```solidity function checkUpkeep(