Skip to content

Commit

Permalink
Merge pull request #764 from redref/feat/override
Browse files Browse the repository at this point in the history
feat: allow overriding directory data in networks
  • Loading branch information
tombeynon authored Mar 23, 2024
2 parents aab4dfb + c7a8c19 commit d7882b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/Operator.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7882b1

Please sign in to comment.