Skip to content

Update Escrow to always pay oracle fees even when worker submissions are refused #3880

@portuu3

Description

@portuu3

Description
Currently, oracle fees can be affected when a worker submission is refused and the worker is not paid for that work.

We should update the Escrow contract so that oracle fees are still paid whenever the oracle has performed its role, even if some worker submissions are rejected and no payout is made to those workers.

Motivation
If an oracle reviews, validates, records, or processes a submission, it has still performed work. Refusing a worker submission should prevent the worker payout, but it should not automatically remove the oracle fee.

This makes the payment model fairer and avoids discouraging oracles from accepting invalid or low-quality work.

Implementation details

  • Oracle fees are always paid when the escrow has been completed/canceled.
  • Refused worker submissions do not trigger worker payouts.
  • Existing successful payout behavior is not broken.

TBD

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions