If you notice some outdated information please let us know!
-25%(Penalty)
FAIL
The final review score is indicated as a percentage. The percentage is calculated as Achieved Points due to MAX Possible Points. For each element the answer can be either Yes/No or a percentage. For a detailed breakdown of the individual weights of each question, please consult this document.
Very simply, the audit looks for the following declarations from the developer's site. With these declarations, it is reasonable to trust the smart contracts.
This report is for informational purposes only and does not constitute investment advice of any kind, nor does it constitute an offer to provide investment advisory or other services. Nothing in this report shall be considered a solicitation or offer to buy or sell any security, token, future, option or other financial instrument or to offer or provide any investment advice or service to any person in any jurisdiction. Nothing contained in this report constitutes investment advice or offers any opinion with respect to the suitability of any security, and the views expressed in this report should not be taken as advice to buy, sell or hold any security. The information in this report should not be relied upon for the purpose of investing. In preparing the information contained in this report, we have not taken into account the investment needs, objectives and financial circumstances of any particular investor. This information has no regard to the specific investment objectives, financial situation and particular needs of any specific recipient of this information and investments discussed may not be suitable for all investors.
Any views expressed in this report by us were prepared based upon the information available to us at the time such views were written. The views expressed within this report are limited to DeFiSafety and the author and do not reflect those of any additional or third party and are strictly based upon DeFiSafety, its authors, interpretations and evaluation of relevant data. Changed or additional information could cause such views to change. All information is subject to possible correction. Information may quickly become unreliable for various reasons, including changes in market conditions or economic circumstances.
This completed report is copyright (c) DeFiSafety 2023. Permission is given to copy in whole, retaining this copyright label.
This section looks at the code deployed on the relevant chain that gets reviewed and its corresponding software repository. The document explaining these questions is here.
1. Are the smart contract addresses easy to find?(%)
Contracts are easily located.
2. How active is the primary contract? (%)
Joe's MasterChef V3 contract is used well over 100 times a day.
3. Does the protocol have a public software repository? (Y/N)
Joe's software repository is on GitHub
4. Is there a development history visible? (%)
At 382 commits and 11 branches, it's clear that Joe's trading logbook goes back some way.
5. Is the team public (not anonymous)? (Y/N)
No public team members could be found.
The difference between this and the old link is solely the link. This section looks at the software documentation. The document explaining these questions is here.
7. Is the protocol's software architecture documented? (Y/N)
In-depth software documentation is outlined at https://github.com/traderjoe-xyz/joe-core/blob/main/docs/MASTERCHEFJOEV2.md.
8. Does the software documentation fully cover the deployed contracts' source code? (%)
TJ's core software documentation covers the most vital contracts, and they have provided excellent traceability with the Compound software in their Lending repository
9. Is it possible to trace the documented software to its implementation in the protocol's source code? (%)
There is a connection between the TJ software documentation and its implementation in their source code via non-explicit traceability.
10. Has the protocol tested their deployed code? (%)
At 102% tests to code, there is some evident of robust testing.
11. How covered is the protocol's code? (%)
No code coverage report was found, but there's clearly good testing on this protocol. Although TJ links to their coverage at https://github.com/traderjoe-xyz/joe-core/blob/main/docs/MASTERCHEFJOEV2.md, the link provided currently links to a private repo, and is therefore not verifiable.
12. Does the protocol provide scripts and instructions to run their tests? (Y/N)
Test scripts were found for the Joe Lending repository.
13. Is there a detailed report of the protocol's test results?(%)
There is documentation claiming the existence of such report at https://github.com/traderjoe-xyz/joe-core/blob/main/docs/MASTERCHEFJOEV2.md, but its link leads to a private repo, and is therefore not verifiable.
14. Has the protocol undergone Formal Verification? (Y/N)
Trader Joe has not undergone formal verification.
15. Were the smart contracts deployed to a testnet? (Y/N)
Evidence of testing on a testnet is documented.
This section looks at the 3rd party software audits done. It is explained in this document.
16. Is the protocol sufficiently audited? (%)
TraderJoe V1 was deployed before it's single audit. V3 was audited pre-release.
17. Is the bounty value acceptably high (%)
Joe offers 500K through Immunefi.
This section covers the documentation of special access controls for a DeFi protocol. The admin access controls are the contracts that allow updating contracts or coefficients in the protocol. Since these contracts can allow the protocol admins to "change the rules", complete disclosure of capabilities is vital for user's transparency. It is explained in this document.
18. Is the protocol's admin control information easy to find?
There is no admin control information. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
19. Are relevant contracts clearly labelled as upgradeable or immutable? (%)
There is no admin control information. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
20. Is the type of smart contract ownership clearly indicated? (%)
There is no admin control information. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
21. Are the protocol's smart contract change capabilities described? (%)
There is no contract change information. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
22. Is the protocol's admin control information easy to understand? (%)
There is no admin control information. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
23. Is there sufficient Pause Control documentation? (%)
No pause control information was found. Although there is a governance section describing future implementation in their docs, the module is currently inactive which makes the detailed information non-quantifiable.
24. Is there sufficient Timelock documentation? (%)
A timelock with a specific duration and what it applies to is identified, though this applies to just V2. The audit denotes that the current V3 contract does not have a timelock. This means that the timelock documentation is no longer applicable.
25. Is the Timelock of an adequate length? (Y/N)
The timelock is not applicable to V3.
This section goes over the documentation that a protocol may or may not supply about their Oracle usage. Oracles are a fundamental part of DeFi as they are responsible for relaying tons of price data information to thousands of protocols using blockchain technology. Not only are they important for price feeds, but they are also an essential component of transaction verification and security. This is explained in this document.
26. Is the protocol's Oracle sufficiently documented? (%)
Joe uses Chainlink. It justifies this in this article, but there are no software functions documented.
27. Is front running mitigated by this protocol? (Y/N)
Although no front running countermeasures are identified, their Medium article about their Chainlink Oracle implementation clearly states the mitigation of known exploits.
28. Can flashloan attacks be applied to the protocol, and if so, are those flashloan attack risks mitigated? (Y/N)
Joe identifies it uses Chainlink to prevent flashloan attacks.
1Enter appendix example code here
Tests to Code: 4158 / 4093 = 102 %