Sapien

QuantstampFiles named in the report

Quantstamp reviewed Sapien on 30 Mar 2025: 14 findings, 0 critical; 9 marked fixed, 5 acknowledged.

No open critical findings
Open the reportOpen Sapien’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings17

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High002
Medium024
Low033
Medium`calculateMultiplier` Will Always Return `maxMultiplier`Acknowledged

Currently, the function `calculateMultiplier()` will always return the `maxMultiplier` if the following condition is true: ``` if (amount >= BASE_STAKE) { return maxMultiplier; } ``` However, this condition will always be true, since during staking, it is required that the amount staked be greater than the `BASE_STAKE`: `require(amount >= BASE_STAKE, "Amount must be greater than base stake");`

MediumSignature Malleability in Unused `recoverSigner` FunctionAcknowledged

The `recoverSigner()` function in the `Rewards` contract uses the `ecrecover` precompile which is vulnerable to signature malleability. This vulnerability allows multiple valid signatures to be generated for the same message, as ecrecover accepts signatures with both high and low values of the s parameter. While this would typically be a high-severity issue that could allow signature replay attacks, the severity is significantly reduced because the function is currently unused in the contract. But since the contract is upgradeable consider fixing this issue to avoid impacting newer versions.

LowInequitable Multiplier Distribution in `calculateMultiplier()` FunctionAcknowledged

The function `SapienStaking.calculateMultiplier()` awards the same multiplier for a very wide range of stake amounts. One such example of this is that any `amount` from 980 tokens up to 999.999999999999999999 tokens will receive a multiplier of 149. This creates a large "dead zone" where users get no benefit from staking additional tokens, followed by a sharp cliff where 1 wei more suddenly increases the multiplier.

LowTest Suite Cannot Be ExecutedAcknowledged

According to the README, the test suite can be executed by running `npx hardhat test`. However, the test are actually written with the syntax expected by Truffle, not hardhat. As a result the above mentioned command throws an error. Unfortunetaly, using Truffle does not work either since running `truffle test` also throws an error.

LowVesting Could Transfer Tokens to the Original Gnosis SafeAcknowledged

The `releaseTokens()` function transfers the tokens from the `gnosisSafe` (who originally got all the token supply) to the `schedule.safe` address which originally was set as the same `gnosisSafe`. This could lead to the contract and the original receiving team thinking that a vesting was succesfully released when the original owner of the token still has them.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (3)

  • contracts/SapTestToken.sol
  • contracts/Rewards.sol
  • contracts/SapienStaking.sol

Part of Sapien’s security record

Sapien
Audits2 audits by 1 firmLast audit Jul 2025, by Quantstamp.
Critical findingsNo open critical findingsAcross 2 reports.
Open Sapien’s security record

Security firm

Quantstamp

240 projects reviewed · 338 reports · latest Nov 2026

See Quantstamp’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us