Problem: Attestation fees not based on result size
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- blockchain, payments
Research direction
Start by locating request_attestation() and the existing ERC-20 transfer or fee-handling path. Trace how the result byte size and max_fee parameter are available, then verify that the configurable base fee and per-byte rate produce the stated formula, abort above max_fee, and retain revenue in the network. Document the final formula.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Go
- Stars
- 7
- Forks
- 3
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from trufnetwork/node
-
type: goal
Difficulty 5/5 Over a week Newbie friendliness 35/100
trufnetwork/node#1436 ·
-
trufnetwork/node#1435 · 1 assignee ·
-
trufnetwork/node#1429 · 2 comments · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
trufnetwork/node#1313 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
trufnetwork/node#1190 ·
All issues in trufnetwork/node
Similar issues
-
bug github_actions
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
registrystack/registry-stack#1393 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
JakeChampion/lang#10213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
oasisprotocol/oasis-sdk#2523 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100