Description
Capminal Contracts are the open-source smart contracts powering the Capminal protocol. Prior to commit 3e26129, capminal-contracts calculates the amount of CAPU minted by ScapStaking.lockAndMintCapu using the mint rate at the pre-mint supply for the entire transaction. A user can therefore receive more CAPU than intended in a single large mint, because the calculation does not account for the increasing mint rate as supply grows. This issue is fixed in commit 3e26129.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Capminal | capminal-contracts | < 3e26129 | — |
References
- https://github.com/Capminal/capminal-contracts/security/advisories/GHSA-2qg4-mp8w-wr59
- https://github.com/Capminal/capminal-contracts/pull/4
- https://github.com/Capminal/capminal-contracts/commit/3e2612984ef0ca07ffbdb174ef1dcef115152ec5
- https://github.com/Capminal/capminal-contracts/commit/fa0c01a91d0dfa09f9627db9ee4ad3585bc67b87