Maverick Protocol has 3 public audit reports from ABDK Consulting and CertiK; the latest is ABDK Consulting, 11 May 2023; no critical findings reported. It also holds 8 deployed contracts on 6 chains.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Maverick Phase 2 audit | Security firm: ABDK Consulting | Date: | Scope: —Not recorded; see the report | None open | Findings: 7 high · 13 medium · 52 low 37 fixed · 35 acknowledged | GitHub ↗ |
| Maverick Protocol audit | Security firm: ABDK Consulting | Date: | Scope: —Not recorded; see the report | None open | Findings: 2 high · 6 medium · 94 low 72 fixed · 30 acknowledged | GitHub ↗ |
| Maverick Protocol | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 2 high · 3 medium · 12 low 8 fixed · 9 acknowledged | skynet.certik.com ↗ |
191 findings in 3 reports: 117 fixed, 74 acknowledged (the team chose not to change the code), none open.
| Severity | Acknowledged | Fixed |
|---|---|---|
| Critical | 0 | 0 |
| High | 2 | 9 |
| Medium | 7 | 15 |
| Low | 65 | 93 |
In the contract Pool.sol the role `factory.owner` has authority over the function `claimProtocolFees()`. Any compromise to the `owner` account may allow a hacker to take advantage of this authority.
Report ↗Our current understanding is that the `addLiquidity()` and `removeLiquidity()` functions in Pool.sol should be only called by the Router contract, such that the related token transferring logics are successfully triggered in Router. The `addLiquidity()` and `removeLiquidity()` functions in Router.sol are the actual accessible points for external users to interact with. If `Pool.removeLiquidity()` is meant to be called by external users, then the balance of base and quote tokens should be that of a `msg.sender` instead of that of the contract address (`address(this)`). In addition, there are some possible math simplifications, like in `addLiquidity()`, the `quoteFeeEscrow` is added to `totalQuoteBalance`, subtracted when calculating `quoteIn`, and finally used added with `quoteIn` again in the function call of `_setLiquidity()`
Report ↗The previously set vote reward is not removed from trasferrers.
The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗These functions could be called several times effectively changing previous values.
The report gives no description here.
Report ↗This code is executed even when ”payer” is not this contract.
The report gives no description here.
Report ↗Using `address(this).balance` or `token.balanceOf(address(this))` as the `inputAmount` is risky. Function `swapEthForToken()` in contract Router and functions `sellTokenForToken()`, `sellEthForToken()` and `sellTokenForETH()` in ZeroExRouter are functions that swaps between tokens and tokens (or between ETH and tokens). When the direction is swapping ETH to token, the amount to be swapped should be the attached `msg.value` in the specific transaction. When the direction is swapping token to ETH or token to token, the amount to be swapped should be the `msg.sender`'s input amount, which need to be pointed out by the function caller as a function parameter. Take `ZeroExRouter.sellTokenForToken()` as an example. A userA want to sell tokenA for tokenB, and the recipient is userA itself. The userA should first transfer amountA of tokenA to the contract (`tx-a1`), and then call `sellTokenForToken(tokenA, tokenB, userA, minAmount, )` (`tx-a2`). A hackerZ can monitor the pattern of the two transactions. The hackerC can wait for the execution of userA's `tx-a1`, and then front run userA's `tx-a2`, with `sellTokenForToken(tokenA, tokenB, hackerZ, minAmount, )` (`tx-z1`) to take advantage of userA.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗No access level specified for these variables, so internal access will be used by default.
The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗This assignment should be done only when lockDuration >= minLockDuration
The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗Deploying a separate instance of the ”Pool” contract for each pair consumes lots of gas.
The report gives no description here.
Report ↗In ERC20 the ”decimals” property is used by UI to render token amounts in a human-friendly way.
The report gives no description here.
Report ↗In ERC20 the ”decimals” property is used by UI to render token amounts in a human-readable way.
The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗This function calculates something that differs from both, weighted moving average and exponential moving average, as ”self.twa” could include values observed before the current lo
The report gives no description here.
Report ↗The report gives no description here.
Report ↗This loop doesn’t scale and could exceed the block gas limit.
The report gives no description here.
Report ↗This maximum tick value means that the allowed price range is from 1e-10 to 1e10, which doesn’t looks sufficient.
The report gives no description here.
Report ↗The report gives no description here.
Report ↗The report gives no description here.
Report ↗This finding is not a security issue. We noticed that `uint8` ,`uint16`, `uint32`, `int128`, `uint224`, etc. are used for variable type declaration. We would like to mention that all other `int` types except `int256` would be implicitly converted to `int256` during code execution, since EVM is designed and works with `256bit/32byte`. The implicit conversion would lead to extra gas cost. Here attached an example showing the gas cost: ```solidity pragma solidity 0.8.4; contract A { //69729 gas uint8 a = 0; } contract B { //69324 gas uint256 a = 0; } ```
Report ↗When transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the charged transaction fee. As a result, an inconsistency in the amount will occur and the transaction may fail due to the validation checks.
Report ↗In Router and ZeroExRouter, when the pool address is about to be used, it would be get from `factory.lookup()`. The return value of `factory.lookup()` is from the mapping of `pools[poolKey]`. However, there's no sanity check to validate if a pool exists. It is possible that the pool is never created, and the `pools[poolKey]` is the default `address(0)`.
Report ↗Functions `Router.swap` and `ZeroExRouter.sellEthForToken()` are declared with the `payable` keyword. However, the `msg.value` is never handled if the function is invoked in a transaction. (This finding is related to CKP-01 Risks of Using `balance` of an Address for Swapping)
Report ↗The contract is serving as the underlying entity to interact with third party 0x protocol and prb-math library. The scope of the audit treats 3rd party entities as black boxes and assume their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc. Note that ZeroExRouter.sol is relied on the liquidity function interface of 0x protocol.
Report ↗The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.
Report ↗| Address | Chain | Source code |
|---|---|---|
| 0x7448…6abd0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd | Chain: Base | Source code: Verified source |
| 0x7448…6abd0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd | Chain: Arbitrum | Source code: Verified source |
| 0x7448…6abd0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd | Chain: Scroll | |
| 0x7448…6abd0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd | Chain: BNB Chain | Source code: Verified source |
| 0xd691…d1030xd691d9a68c887bdf34da8c36f63487333acfd103 | Chain: BNB Chain | Source code: Verified source |
| 0x64b8…aaa70x64b88c73a5dfa78d1713fe1b4c69a22d7e0faaa7 | Chain: Base | Source code: Verified source |
| 0x7448…6abd0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd | Chain: Ethereum | Source code: Verified source |
| 0x787c…e5080x787c09494ec8bcb24dcaf8659e7d5d69979ee508 | Chain: zkSync | Source code: Verified source |
Trustblock holds 3 public audit reports for Maverick Protocol, dated 21 Apr 2022 to 11 May 2023. The latest is by ABDK Consulting (“Maverick Phase 2 audit”).
2 security firms wrote the reports Trustblock holds for Maverick Protocol: ABDK Consulting and CertiK.
74 findings are still open or acknowledged in the firms’ reports: 2 high, 7 medium, 65 low (all acknowledged). No critical finding is reported. Statuses are the security firms’ own.
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