Clamp Fees With Minimum And Cap

Use when a fee has a floor, a ceiling, or both (payment-processor minimum, percentage capped). Applies the clamp in integer minor units and keeps the fee inside the allowed band.

jiayaoqijia Updated 81 repo stars

File contents

jiayaoqijia/cryptoskill commit dbc14b7f70

Frequently asked questions

npx get-skill add jiayaoqijia/clamp-fees-with-minimum-and-cap