Skip to content

Problem: Attestation fees not based on result size #1200

@MicBun

Description

@MicBun

Attestation requests need dynamic fee calculation based on result byte size to ensure fair pricing for the network.

Acceptance Criteria:

  • Fee calculation function implemented
  • Formula: base_fee + (result_bytes * per_byte_rate)
  • Configurable parameters: base_fee, per_byte_rate
  • Fee charged via ERC-20 transfer in request_attestation()
  • Transaction aborts if calculated fee > max_fee parameter
  • Fee revenue stays with network (no distribution in MVP)
  • Documentation of fee formula

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions