Skip to content

fix: add amount input and validation to MilestoneFundButton - #137

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/issue-83-milestone-fund-amount
Open

rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/issue-83-milestone-fund-amount

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #83.

MilestoneFundButton was posting to the fund endpoint without collecting an amount from the user, making partial milestone funding impossible from the UI and leaving the backend contract ambiguous.

Added a numeric amount input mirroring the pattern already established by PoolDepositButton in the same file. Added client-side validation to reject empty, zero, negative, non-numeric, and excessive-precision inputs before they reach the API, ensuring consistency with the maintenance pool deposit flow.

Fixes MergeFi#83.

MilestoneFundButton was posting to the fund endpoint without collecting
an amount from the user, making partial milestone funding impossible from
the UI and leaving the backend contract ambiguous.

Added a numeric amount input mirroring the pattern already established
by PoolDepositButton in the same file. Added client-side validation to
reject empty, zero, negative, non-numeric, and excessive-precision
inputs before they reach the API, ensuring consistency with the
maintenance pool deposit flow.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

MilestoneFundButton has no amount input, making partial milestone funding impossible from the UI

1 participant