CertiK reviewed Phuture (Phuture.Finance (Audit #2)) on 15 Dec 2022: 8 findings, 0 critical; 4 marked fixed, 4 acknowledged.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 2 | 0 |
| Medium | 0 | 0 | 1 |
| Low | 0 | 2 | 3 |
In the contract `IndexBetting` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and arbitrarily set/update the betting start time and end time, and change the implementation contract. 
Contract `IndexBetting` is an upgradeable contract, the owner/deployer can upgrade the contract without the community's commitment. If an attacker compromises the account, he can change the implementation of the contract and drain tokens from the contract.
Functions `setChallengeOutcome()` and `setChallengeOutcomeForRoundId()` could be called before betting started. In this case, `startEpoch.PDIPrice` and `startEpoch.DPIPrice` would be 0, and the transaction would revert when dividing these zero values on line 246 and 247. ```solidity=243 function _setPDIRewardRate(int256 _DPIPrice) internal { endEpoch.PDIPrice = getLatestPDIPrice(); endEpoch.DPIPrice = uint256(_DPIPrice).toUint112(); PDIRewardRate = (endEpoch.PDIPrice * 10 ** BASE_AGGREGATOR_DECIMALS) / startEpoch.PDIPrice >= (endEpoch.DPIPrice * 10 ** BASE_AGGREGATOR_DECIMALS) / startEpoch.DPIPrice ? VICTORY_REWARD_RATE : DEFEAT_REWARD_RATE; } ```
The contract is serving as the underlying entity to interact with multiple third party protocols or out-of-scope contracts, as listed below. The scope of the audit treats 3rd party and external entities as black boxes and assumes their functional correctness. However, in the real world, they can be compromised and this may lead to lost or stolen assets. Additionally, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees, migrating to new LP pools, etc. The contract relies on: - Chainlink aggregator for DPI token price. - `IndexHelper` for PDI token price. - `IndexRouter` for `withdrawAndMint()`. `IndexRouter` is also approved to any staking token in `IndexBetting` contract. - user-defined `swapTarget` address to swap between staking and reward tokens. - External DPI and PDI ERC20 tokens for staking and reward. - FixedPointMathLib for calculation.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (1)
1,044 projects reviewed · 1,393 reports · latest May 2025
See CertiK’s auditsSomething 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