Part of CertiK’s series
CertiK reviewed Venus Protocol (Venus - VAI Peg) on 24 May 2023: 14 findings, 1 critical; 12 marked fixed, 2 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 1 |
| High | 2 | 0 | 0 |
| Medium | 0 | 0 | 2 |
| Low | 0 | 0 | 9 |
### PegStability.sol In the contract `PegStability` the `DEFAULT_ADMIN_ROLE` can grant access to the following functions: - `pause()` - `resume()` - `setFeeIn()` - `setFeeOut()` - `setVaiMintCap()` - `setVenusTreasury()` - `setComptroller()` Any compromise to the `DEFAULT_ADMIN_ROLE` or access to the functions may allow a hacker to do the following - Pause the contract preventing anyone from swapping. - Resume the contract, which may allow swaps to occur when the should not be allowed. - Set the fees in BIPs to any percentage less than 100%. - Set the `vaiMintCap` to any value, allowing any amount of VAI to be minted or if the value is set to 0 to prevent anyone swapping stable token to VAI. - Set the treasury to a wallet they control to collect the fees for themselves. - Set the comptroller address to a malicious contract that will return the address of a malicious oracle to provide inaccurate prices for the stable token.
`PegStability` is an upgradeable contract. The owner can upgrade the contract without the community's commitment. If an attacker compromises the account, they can change the implementation of the contract and drain tokens from the contract.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (1)
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething 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