Hunt prep
Before you test Concur Finance contest
What 42 disclosed reports say about Concur Finance contest: 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 | 33 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Smart contracts 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.
-
execute in VoteProxy should be payable
Add the payable mutability specifier to the execute function.
Disclosed
-
ConvexStakingWrapper.sol#_calcRewardIntegral Wrong implementation can disrupt rewards calculation and distribution
The code should compare the balance of the reward token before and after calling getReward() to determine the actual reward amount, and remove the reward.remaining variable.
Disclosed
-
ConvexStakingWrapper.exitShelter() Will Lock LP Tokens, Preventing Users From Withdrawing
The exitShelter function should re-deposit the LP tokens into the staking pool after transferring them back from the shelter.
Disclosed
-
MasterChef.sol Users won’t be able to receive the concur rewards
The contract should use a receipt token to represent deposited tokens and base reward calculations on that receipt token's supply, or otherwise track deposited amounts correctly.
Disclosed
-
Deposits after the grace period should not be allowed
The donate function should include a check that the current time is within the grace period, such as requiring that the activation time plus the grace period is greater than the current block timestamp.
Disclosed
-
USDMPegRecovery.sol#withdraw() withdraw may often fail
The withdraw function should call usdm3crv.remove_liquidity_one_coin() when the contract's balance is insufficient, or use a vault-shares model to handle withdrawals from the pool.
Disclosed
-
USDM locked unless guardian remove liquidity
The judge suggests refactoring the contract into a yield-bearing vault and denominating the deposit token in the CRV_LP token to avoid single-sided exposure.
Disclosed
-
StakingRewards.sol recoverERC20() can be used as a backdoor by the owner to retrieve rewardsToken
The function should also check that the token is not the rewards token, and ideally allow specifying a recipient address.
Disclosed
-
Fee-on-transfer token donations in Shelter break withdrawals
The donate function should add only the actual transferred amount, calculated as the post-transfer balance minus the pre-transfer balance, to savedTokens.
Disclosed
-
ConvexStakingWrapper.enterShelter() May Erroneously Overwrite amountInShelter Leading To Locked Tokens
The amountInShelter mapping should be incremented (using +=) rather than overwritten, so multiple calls to enterShelter do not lose track of previously sheltered tokens.
Disclosed
-
StakingRewards.recoverERC20 allows owner to rug the rewardsToken
Add a check in recoverERC20 to prevent withdrawal of the rewards token.
Disclosed
-
USDMPegRecovery.provide() Will Fail If There Is An Excess Of usdm Tokens
The provide function should be modified to accept a _steps argument or to also use the pool3 balance when calculating the liquidity amounts.
Disclosed
-
MasterChef.updatePool() Fails To Update Reward Variables If block.number >= endBlock
The updatePool function should update accConcurPerShare for the blocks up to endBlock before returning when block.number >= endBlock.
Disclosed
-
USDMPegRecovery.sol#provide() Improper design/implementation make it often unable to add liquidity to the usdm3crv pool
The code should use the minimum of the USDM and pool3 balances to calculate the liquidity amount, as shown in the recommended mitigation.
Disclosed
-
ConvexStakingWrapper , StakingRewards Wrong implementation will send concur rewards to the wrong receiver
The report recommends adding depositFor and withdrawFor functions to MasterChef so the wrapper can specify the actual user, and updating the wrapper contracts to use them.
Disclosed