Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Incur gas cost for data requests that time out #453

Open
3 tasks
Thomasvdam opened this issue Dec 20, 2024 · 0 comments
Open
3 tasks

✨ Incur gas cost for data requests that time out #453

Thomasvdam opened this issue Dec 20, 2024 · 0 comments
Labels
type: feature ✨ New feature or request

Comments

@Thomasvdam
Copy link
Member

Thomasvdam commented Dec 20, 2024

✨ Feature

We want a small portion of the funds attached to a timed-out data request to be distributed to the executors that did commit.

Motivation

This makes it less risky for the solver to escrow their funds, incentives requestors to properly price their data requests, and makes it less risky for an executor node to post a commitment.

Implementation

  • Add param for a fixed amount of gas that will be charged per commitment in the case of a timeout. This amount should at least be equal to the gas cost of spinning up a VM.
  • When a DR times out due to not receiving enough commitments calculate the gas used based on the param.
  • Create the correct distribution messages when removing the DR from the contract.
@Thomasvdam Thomasvdam added the type: feature ✨ New feature or request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant