Maverick Protocol audit reports

Base, BNB Chain, Arbitrum, Ethereum, Scroll, zkSyncmav.xyzX

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.

Critical and high findings
No open critical findings; 2 high acknowledged in the firms’ reports
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits3

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
Maverick Phase 2 auditSecurity firm: ABDK ConsultingDate: Scope: Not recorded; see the reportNone openFindings: 7 high · 13 medium · 52 low
37 fixed · 35 acknowledged
GitHub ↗
Maverick Protocol auditSecurity firm: ABDK ConsultingDate: Scope: Not recorded; see the reportNone openFindings: 2 high · 6 medium · 94 low
72 fixed · 30 acknowledged
GitHub ↗
Maverick ProtocolSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 2 high · 3 medium · 12 low
8 fixed · 9 acknowledged
skynet.certik.com ↗

Findings191

191 findings in 3 reports: 117 fixed, 74 acknowledged (the team chose not to change the code), none open.

SeverityAcknowledgedFixed
Critical00
High29
Medium715
Low6593

Not fixed (74)

HighAcknowledgedCentralization Related RisksMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
HighAcknowledgedMissing Router Restrictions on `Pool.addLiquidityMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
MediumAcknowledgedThe previously set vote reward is not removed from trasferrers.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The previously set vote reward is not removed from trasferrers.

The report gives no description here.

Report ↗
MediumAcknowledgedThe returned value is ignored here.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
MediumAcknowledgedThe returned value is ignored.×2Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
MediumAcknowledgedThese functions could be called several times effectively changing previous values.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

These functions could be called several times effectively changing previous values.

The report gives no description here.

Report ↗
MediumAcknowledgedThis code is executed even when ”payer” is not this contract.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

This code is executed even when ”payer” is not this contract.

The report gives no description here.

Report ↗
MediumAcknowledgedRisks of Using `balance` of an Address for SwappiMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedBad datatype in RewardBase.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedBad datatype in RewardSingle.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
Show all 74
LowAcknowledgedBad naming in Distributor.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedBad naming in RewardOpen.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedNo access level specified for these variables, so internal access will be used by default.×2Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

No access level specified for these variables, so internal access will be used by default.

The report gives no description here.

Report ↗
LowAcknowledgedProcedural in PoolPositionBase.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedProcedural in PoolPositionDynamic.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in Distributor.sol×2Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in Poll.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in PoolPositionAndRewardFactory.sol×2Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in PoolPositionBase.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in RewardBase.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in RewardOpen.solMaverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedThis assignment should be done only when lockDuration >= minLockDuration  Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

This assignment should be done only when lockDuration >= minLockDuration  

The report gives no description here.

Report ↗
LowAcknowledgedThis code fills in-storage arrays with zero values.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedWe didn’t review the ”clip” function used here.Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedWe didn’t review these files.×8Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedWe didn’t review this file.×2Maverick Phase 2 audit · ABDK Consulting · 11 May 2023

The report gives no description here.

Report ↗
LowAcknowledgedBad datatype in Pool.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedDeploying a separate instance of the ”Pool” contract for each pair consumes lots of gas.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

Deploying a separate instance of the ”Pool” contract for each pair consumes lots of gas.

The report gives no description here.

Report ↗
LowAcknowledgedIn ERC20 the ”decimals” property is used by UI to render token amounts in a human-friendly way.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

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 ↗
LowAcknowledgedIn ERC20 the ”decimals” property is used by UI to render token amounts in a human-readable way.×2Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

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 ↗
LowAcknowledgedProcedural in Passport.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedProcedural in Pool.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedReadability in BinMath.sol×8Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedReadability in Math.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in BinMap.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedSuboptimal in Pool.solMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedThe ”counter” return value is redundant.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedThe swap direction is unclear from the arguments.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedThis function calculates something that differs from both, weighted moving average and exponential moving average, as ”self.twa” could include values observed before the current loMaverick Protocol audit · ABDK Consulting · 13 Oct 2022

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 ↗
LowAcknowledgedThis function is overcomplicated and inefficient.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedThis loop doesn’t scale and could exceed the block gas limit.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

This loop doesn’t scale and could exceed the block gas limit.

The report gives no description here.

Report ↗
LowAcknowledgedThis maximum tick value means that the allowed price range is from 1e-10 to 1e10, which doesn’t looks sufficient.Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

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 ↗
LowAcknowledgedWe didn’t review these files.×3Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedWe didn’t review this file.×3Maverick Protocol audit · ABDK Consulting · 13 Oct 2022

The report gives no description here.

Report ↗
LowAcknowledgedGas Optimization on `uint` and `int` ValuesMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedIncompatibility With Deflationary Tokens(Swap)Maverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedLack of Pool Validity ChecksMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedMissing Proper Handling of `msg.value`Maverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedThird Party DependenciesMaverick Protocol · CertiK · 21 Apr 2022

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 ↗
LowAcknowledgedVariables Could Be Declared ImmutableMaverick Protocol · CertiK · 21 Apr 2022

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 ↗

Contracts8

AddressChainSource code
0x7448c7456a97769f6cd04f1e83a4a23ccdc46abdChain: BaseSource code: Verified source
0x7448c7456a97769f6cd04f1e83a4a23ccdc46abdChain: ArbitrumSource code: Verified source
0x7448c7456a97769f6cd04f1e83a4a23ccdc46abdChain: Scroll
0x7448c7456a97769f6cd04f1e83a4a23ccdc46abdChain: BNB ChainSource code: Verified source
0xd691d9a68c887bdf34da8c36f63487333acfd103Chain: BNB ChainSource code: Verified source
0x64b88c73a5dfa78d1713fe1b4c69a22d7e0faaa7Chain: BaseSource code: Verified source
0x7448c7456a97769f6cd04f1e83a4a23ccdc46abdChain: EthereumSource code: Verified source
0x787c09494ec8bcb24dcaf8659e7d5d69979ee508Chain: zkSyncSource code: Verified source

All 8 addresses and the files the reports name

Maverick Protocol: questions

Is Maverick Protocol audited?

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”).

Who audited Maverick Protocol?

2 security firms wrote the reports Trustblock holds for Maverick Protocol: ABDK Consulting and CertiK.

Are there open findings in Maverick Protocol’s audits?

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