Summary
Add a standalone example script under contrib/examples/ that computes a given percentage of a base unit token amount, returning a bigint result.
Requirements
- File lives under contrib/examples/percentage-of-amount/ with a short README.
- Exposes a small percentageOf function used by the script.
- Handles a percentage of zero and of one hundred as edge cases.
- Include a few example inputs and expected outputs in the README.
Constraints
- Fork the repo, then create your branch from the drips branch (NOT main).
- Do ALL your work inside the contrib/ folder. Do not add, edit, rename,
or delete any file outside contrib/.
- Open your PR against the drips branch. PRs targeting main are
auto-closed. PRs targeting drips that touch files outside contrib/ are
also auto-closed.
- Save your work under contrib/examples/ named after this issue (for example,
contrib/examples/issue-42-name/).
Acceptance Criteria
- The change is entirely inside contrib/.
- The PR base branch is drips.
- Reviewed and approved by a maintainer before merge to drips.
- The maintainer will merge drips into main separately.
Summary
Add a standalone example script under contrib/examples/ that computes a given percentage of a base unit token amount, returning a bigint result.
Requirements
Constraints
or delete any file outside contrib/.
auto-closed. PRs targeting drips that touch files outside contrib/ are
also auto-closed.
contrib/examples/issue-42-name/).
Acceptance Criteria