diff --git a/README.md b/README.md index 0a2fe076..379355ec 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,10 @@ Create a `src/networks.local.json` file and specify the networks you want to ove "queryThrottle": 100, "gasModifier": 1.1 }, + "operator": { + "address": "OVERRIDE_BOT_ADDRESS", + "minimumReward": "OVERRIDE_BOT_MINIMUM_REWARD" + }, "healthCheck": { "uuid": "XXXXX-XXX-XXXX" } diff --git a/src/utils/Operator.mjs b/src/utils/Operator.mjs index d70a926e..d0e26aa7 100644 --- a/src/utils/Operator.mjs +++ b/src/utils/Operator.mjs @@ -2,8 +2,8 @@ import _ from 'lodash' const Operator = (network, data) => { const { address } = data - const botAddress = data.restake.address - const minimumReward = data.restake.minimum_reward + const botAddress = network.data.operator?.address || data.restake.address + const minimumReward = network.data.operator?.minimumReward || data.restake.minimum_reward return { address,