lilypad
lilypad copied to clipboard
Add Automatic Pricing Update Feature to Solver Control Loop
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
setRequiredDepositfunction on the contract. - Repeat this process at regular intervals to ensure that the pricing remains up-to-date and responsive to changing market conditions.