Tuvshuu kun
Tuvshuu kun

Reputation: 11

When using chainlink automation, can another person call my performUpKeep function of smart contract?

Does chainlink automation use my performUpKeep function even though there is onlyOwner modifier ? If so can another person call performUpKeep function of my smart contract ?




I was using chainlink automation on my smart contract function. And i thought if chainlink automation can use my smart contract function directly, can another person call it ? Is chainlink automation safe ?

Upvotes: 0

Views: 152

Answers (1)

Solange Gueiros
Solange Gueiros

Reputation: 323

Hello Tuvshuu kun

No, the performUpKeep function will not work if you add an onlyOwner modifier, if the address is who deployed the contract (concept of owner).

But you can restrict it using onlyKeeperRegistry.

The EthBalanceMonitor Contract use this concept, it can be useful for you :)

Upvotes: 0

Related Questions