Hunt prep
Before you test Dopex
What 29 disclosed reports say about Dopex: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 18 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Users can get immediate profit when deposit and redeem in PerpetualAtlanticVaultLP
The updateFunding call should be moved before previewDeposit is calculated.
Disclosed
-
UniV3LiquidityAMO::recoverERC721 will cause ERC721 tokens to be permanently locked in rdpxV2Core
The recoverERC721 function should be changed to transfer NFTs to msg.sender instead of RdpxV2Core, or RdpxV2Core should implement an ERC721 recovery function.
Disclosed
-
The settle feature will be broken if attacker arbitrarily transfer collateral tokens to the PerpetualAtlanticVaultLP
The check should use >= instead of == to allow the actual balance to be greater than or equal to the expected amount.
Disclosed
-
Bonding WETH discounts can drain WETH reserves of RdpxV2Core contract to zero
The discount on the WETH portion during minting should be provided in WETH rather than in an equivalent amount of rDPX.
Disclosed
-
The vault allows “free” swaps from WETH to RDPX
The redeem function should calculate the rdpx amount using the current rdpx price, and immediate deposit and redeem could be disallowed.
Disclosed
-
No mechanism to settle out-of-money put options even after Bond receipt token is redeemed.
The settlement logic should expire and settle option identifiers whose underlying bond has been redeemed, freeing the locked collateral.
Disclosed
-
reLP() mintokenAAmount the calculations are wrong
The formula should be corrected to divide by the tokenA price and apply the slippage tolerance correctly.
Disclosed
-
_curveSwap: getDpxEthPrice and getEthPrice is in wrong order
The order of price functions should be reversed in the minOut calculation.
Disclosed
-
Missing slippage parameter on Uniswap addLiquidity() function
Set the amountAMin and amountBMin parameters to the expected minimum values.
Disclosed
-
The owner of RPDX Decaying Bonds is not updated on token transfers
The owner value should be updated on each token transfer, or removed entirely since the ERC721 ownerOf already tracks ownership.
Disclosed
-
reLPContract.reLP() is susceptible to sandwich attack due to user control over bond()
The reLP contract and process will be modified, as confirmed by the project team.
Disclosed
-
A malicious early depositor can manipulate the LP-Token price per share to take an unfair share of future user deposits
The project planned to be the first depositor to prevent the issue, but a more general fix would be to require a minimum initial deposit or use a virtual offset.
Disclosed
-
User that delegate eth to RdpxV2Core will incur loss if his delegated eth fulfilled by decaying bonds
The bondWithDelegate function should be restricted to only non-decaying bonds, or a discount should be applied to the WETH part when called from bondWithDelegate.
Disclosed
-
User can avoid paying high premium price by correctly timing his bond call
The time to expiry should be fixed to the funding epoch duration rather than the remaining time until the next funding payment, and the same value should be used when purchasing options.
Disclosed
-
No slippage protection for bonders
The bond and bondWithDelegate functions should include a slippage argument, such as maxRDPX, to cap the amount the user is willing to spend.
Disclosed