RareSwap audit reports

RareSwap has 1 public audit report from CertiK; dated 12 Sep 2022; 3 critical findings, 2 acknowledged, not fixed, 1 marked fixed. It also holds 3 deployed contracts on 1 chain.

Critical findings
2 criticals acknowledged, not fixed
Reported in “RareSwap” by CertiK, Sep 2022. The team acknowledged both. See the findings
High findings
1 high acknowledged in the firms’ reports
Statuses are the security firms’ own. See the open and acknowledged findings
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.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
RareSwapSecurity firm: CertiKDate: Scope: 3 addresses on Ethereum2 criticals acknowledged, not fixedFindings: 3 critical · 1 high · 1 medium · 5 low
1 fixed · 4 acknowledged · 5 open
skynet.certik.com ↗

Findings10

10 findings in 1 report: 1 fixed, 4 acknowledged (the team chose not to change the code), 5 open.

SeverityOpenAcknowledgedFixed
Critical021
High010
Medium010
Low500

Not fixed (9)

CriticalAcknowledgedCentralization Risk in RARESwapFactory.solRareSwap · CertiK · 12 Sep 2022

In the contract `RARESwapFactory` the role `feeToSetter` has authority over the functions shown in the diagram below. Any compromise to the `feeToSetter` account may allow the hacker to take advantage of this authority. ![](https://accelerator-tasks-prod.acc.corp.certik.com/6d77acc7c7264653b0215d0370b946bb/diagrams/centralization-DEGENSwapFactory-feeToSetter.svg) In the contract `RARESwapPair` the role `feeTaker` has authority over the functions shown in the diagram below. Any compromise to the `feeTaker` account may allow the hacker to take advantage of this authority. ![](https://accelerator-tasks-prod.acc.corp.certik.com/6d77acc7c7264653b0215d0370b946bb/diagrams/centralization-DEGENSwapPair-feeTaker.svg)

Report ↗
CriticalAcknowledgedCentralization Risk in RARESwapRouter.solRareSwap · CertiK · 12 Sep 2022

In the contract `FeeStore` the role `_owner` has authority over the functions below: - feeAdddressSetWhileSwap - setAdminFee Any compromise to the `_owner` account may allow the hacker to take advantage of this authority.

Report ↗
HighAcknowledgedHighly likely incompatible functionalitiesRareSwap · CertiK · 12 Sep 2022

The contract allows token contract to set `basetToken`. However, almost all of the token contracts does not provide such functionality. If the token has such functionality, it is possible for the token to drain the related pool.

Report ↗
MediumAcknowledgedThird Party DependenciesRareSwap · CertiK · 12 Sep 2022

The contract is serving as the underlying entity to interact with third party Itoken interface. 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.

Report ↗
LowOpenImproper Usage of `public` and `external` Type×2RareSwap · CertiK · 12 Sep 2022

`public` functions that are never called by the contract could be declared as `external`. `external` functions are more efficient than `public` functions.

Report ↗
LowOpenMissing Emit Events×2RareSwap · CertiK · 12 Sep 2022

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

Report ↗
LowOpenMissing Error MessagesRareSwap · CertiK · 12 Sep 2022

The **require** can be used to check for conditions and throw an exception if the condition is not met. It is better to provide a string message containing details about the error that will be passed back to the caller.

Report ↗

Contracts3

AddressChainSource code
0xf8262a34300a3115dfcb9e46897746673ef7b97dChain: EthereumSource code: Verified source
0x3c34473c1175a7b4eaa697356d6a6dc2618d273fChain: EthereumSource code: Verified source
0x9deeb73e971127b2634d7633182004380774451fChain: EthereumSource code: Verified source

RareSwap: questions

Is RareSwap audited?

Trustblock holds 1 public audit report for RareSwap, dated 12 Sep 2022. The latest is by CertiK (“RareSwap”).

Who audited RareSwap?

CertiK wrote the report Trustblock holds for RareSwap.

Are there open findings in RareSwap’s audits?

9 findings are still open or acknowledged in the firms’ reports: 2 critical, 1 high, 1 medium, 5 low (5 open, 4 acknowledged). Of 3 critical findings: 2 acknowledged, not fixed, 1 marked fixed. 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