background
logo

Security Audit Report for bitget's bgw-new-staking-evm

개요

The target of this audit is the private code repository of bgw-new-staking-evm of bitget. This project implements a secure staking protocol that allows users to stake BWB tokens in customizable pools. The contract Staking enables pool creation with flexible parameters, stake/unstake operations with signature verification, and proportional reward distribution. It incorporates security features like reentrancy guards and pause functionality while maintaining transparent reward calculations. The system provides a reliable DeFi infrastructure for decentralized staking services through careful state management and validation checks.

Please refer to the report for the detailed 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 have found that the codebase contains 1 high-risk issue that require prompt attention. In addition, we have identified other non-critical issues as well as recommendations and notes that should be considered. The bgw-new-staking-evm 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.

주요 발견 사항

스마트 컨트랙트에서 잠재적인 문제 3건을 발견했습니다. 권고 사항 6건과 참고 사항 2건도 함께 정리했습니다.

높은 위험도 1건
중간 위험도 0건
낮은 위험도 2건
권고 사항 6건
참고 사항 2건
ID Severity Description Status
1 High Rewards remain claimable for unstaked orders Fixed
2 Low Incorrect update logic of variable stakeVisible Fixed
3 Low Lack of updating rewardAmount in function unStakeAndClaim() Confirm
4 - Remove redundant code Fixed
5 - Add additional check for _orderId Fixed
6 - Add additional check for _pool.poolId Fixed
7 - Gas optimization inside low-level call Fixed
8 - Revise code typos Fixed
9 - Revise the timestamp comparison in the function _calcCurrentRewards() Fixed
10 - Potential centralization risks -
11 - Ensure sufficient BWB token balance for fair reward distribution -

자세한 내용은 감사 보고서에서 확인할 수 있습니다.

더 안전한 프로토콜을 위한 첫걸음

출시 전에 프로토콜 보안을 강화하세요. BlockSec의 전문 코드 감사팀에 문의하시면 됩니다.

Security Audit Report for bitget's bgw-new-staking-evm - BlockSec