smartcontractkit / smartcontractkit/chainlink
[NODE] Change minimum reward to be able to depend on gas prices
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.2k
- Forks
- 2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 202
Description
Description
Varying gas costs and constant minimum LINK prices means massive losses for nodes when gas prices are high.
Basic Information
The flux monitor/aggregator will be a great improvement on the node operator community at least for the variable LINK rewards. At the moment, the price of my jobs are set to a minimum of 0.1 LINK, and jobs have been sending me more than that for processing their jobs, which is fantastic.
However, for the past few months, gas prices have been so high, that the cost to actually run a job is much higher than the reward. Here is such an example:
https://etherscan.io/tx/0x40b37262f8b4c58cd9ebf85a88cde0def4e88834b072be8c384a3bd9e87f11ed
Gas cost: 0.009781394 Ether ($4.17)
Link Reward: 0.16 LINK ($2.72)
So now a node is at a crossroads, they can up the price of the jobs (and cause jobs to fail) and wait for the gas prices to go back down and edit the price again, or they can just eat the loss. This seems unideal for both node operators (who will have to constantly change the price) and contracts (who will have to constantly change how much LINK they send), both these processes seem very manual.
Steps to Reproduce
I did not include steps to reproduce since this is an enhancement as opposed to a bug.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points, so start by locating the node reward and gas-price handling in the repository and the related contract interfaces. Done should be a specified, tested mechanism that adjusts the minimum reward with gas prices without requiring repeated manual price changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, solidity
- Domain
- backend, blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100