Skip to content

refactor: simplify submit publication (fixed stake, derived fee)#33

Merged
SiegfriedBz merged 2 commits into
developfrom
feature/simplify-submit-publication-fixed-stake
Apr 25, 2026
Merged

refactor: simplify submit publication (fixed stake, derived fee)#33
SiegfriedBz merged 2 commits into
developfrom
feature/simplify-submit-publication-fixed-stake

Conversation

@SiegfriedBz
Copy link
Copy Markdown
Owner

Summary

Contract

  • Simplify submitPublication by removing the _paidSubmissionFee parameter and deriving paidFee from msg.value - I_PUBLISHER_STAKE.
  • Replace previous fee/stake validation with a single minimum-payment check: msg.value >= I_PUBLISHER_STAKE + I_PUBLISHER_MIN_FEE.
  • Update all Foundry tests and helpers for the new function signature and revert behavior.

Front End

  • Simplify the frontend submission UX by removing the user stake input entirely and turning the fee box into a read-only breakdown (fixed stake + estimated fee + total).
  • Regenerate the TS contract config to sync the ABI change.

Deployments

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bio-verify-ai-dapp Ready Ready Preview, Comment Apr 25, 2026 3:36pm

@SiegfriedBz SiegfriedBz merged commit d24758f into develop Apr 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant