Venus - VAI Peg

CertiKFiles named in the report

Audit

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.

1 critical finding, fixed
Open the reportOpen Venus Protocol’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings14

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

SeverityOpenAcknowledgedFixed
Critical001
High200
Medium002
Low009
HighCentralization Related RisksOpen

### 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.

HighCentralized Control of Contract UpgradeOpen

`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.

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 (1)

  • contracts/PegStability/PegStability.sol

Part of Venus Protocol’s security record

Venus Protocol
Audits67 audits by 7 firmsLast audit Sep 2025, by Quantstamp.
Critical findingsNo open critical findingsAcross the 67 reports, 4 critical findings were reported. Each is marked fixed by the firm that reported it.
IncidentIncident 12 May 2022Source: De.Fi incident database.
Open Venus Protocol’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’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