background
logo

Security Audit Report for Ref Exchange

專案簡介

The core contracts covered in this audit include ref-exchange in the https://github.com/ref-finance/ref-contracts/tree/main/ref-exchange. The iterative audit covers the code in the initial version, as well as subsequent versions to fix discovered issues, as detailed in our audit report. Please note that external dependencies are assumed reliable and are therefore excluded from the audit scope.

Our audit methodology employs automated vulnerability scans, manual verification, and business logic analysis to uncover potential security issues coupled with gas and code quality optimization recommendations. In summary, we identified several issues as well as security suggestions that should be considered. The Ref Finance team has addressed these issues promptly. It is important to note that our audit covers only the final reported versions of the codebase. Any subsequent updates would require a re-evaluation.

關鍵發現

我們在該智能合約中共發現 4 個潛在問題,另有 10 條建議與 3 條說明,明細如下:

高風險:0
中風險:3
低風險:1
建議:10
說明:3
ID Severity Description Category Status
1 Medium Improper Account Unregistration Software Security Fixed
2 Medium Lack of Storage Usage Check in function ft_on_transfer Software Security Fixed
3 Low Unrestricted Referral Account DeFi Security Fixed
4 Medium Incorrect Admin Fees Calculation in Simple Pool DeFi Security Fixed
5 - Lack of Check on Guardians' Removal Recommendation Fixed
6 - Two-Step Transfer of Privileged Account Ownership Recommendation Confirmed
7 - Potential Elastic Supply Token Problem Recommendation Confirmed
8 - Improper Check on the Admin Fees Recommendation Fixed
9 - Lack of Check in retrieve_unmanaged_token() Recommendation Confirmed
10 - Lack of Check on the Gas Used by migrate() Recommendation Fixed
11 - Code Optimization (I) Recommendation Fixed
12 - Code Optimization (II) Recommendation Fixed
13 - Avoid Logging in View Functions Recommendation Fixed
14 - Slippage Protection in Function add_liquidity Recommendation Fixed*
15 - Delayed Price in Rated Swap Pool Note Confirmed
16 - Timely Triggering update_token_rate() Note Confirmed
17 - Sensitive Functions Managed by DAO Note Confirmed

更多細節見審計報告

邁出走向安全的第一步

立即聯絡我們,獲取 BlockSec 的專業程式碼審計服務,在協議上線之前把安全性提上來!

Security Audit Report for Ref Exchange - BlockSec