lilypad icon indicating copy to clipboard operation
lilypad copied to clipboard

Add Automatic Pricing Update Feature to Solver Control Loop

Open hollygrimm opened this issue 2 years ago • 0 comments

Currently, the pricing for the onchain job manager is set manually by administrators, which is not ideal for maintaining a dynamic and efficient marketplace. To address this, we propose adding an automatic pricing update feature to the solver control loop. This will enable the solver to dynamically adjust the pricing based on the current market conditions and resource offers.

Proposed Changes

  • Implement a mechanism in the solver control loop that periodically queries the current pool of resource offers to determine the current market price.
  • Utilize this information to automatically update the pricing by calling the setRequiredDeposit function on the contract.
  • Repeat this process at regular intervals to ensure that the pricing remains up-to-date and responsive to changing market conditions.

hollygrimm avatar Nov 03 '23 16:11 hollygrimm