Hunt prep
Before you test Anchor contest
What 15 disclosed reports say about Anchor 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 | 10 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control 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.
-
bEth Rewards May Be Depleted By Flashloans or Whales
The global index should be updated at most once per block and rewards paid per block should be capped, or a wait time should be introduced before rewards start accruing.
Disclosed
-
Sandwich attack on astroport sweep
The recommendation is to set a belief price for the ANC/asset pair from an oracle.
Disclosed
-
Possible Wrong bAsset Rewards/Borrow limits Calculation
The execute_epoch_operations function should be called after updating the configuration.
Disclosed
-
Staking tokens can be stolen
The contract should always round up when calculating shares to burn, or recompute the withdrawal amount based on the actual shares burned.
Disclosed
-
anchor_basset_reward pending yields can be stolen
The code should update state.global_index before changing the user's balance, and/or transfer rewards and update global_index in one transaction.
Disclosed
-
Missing Access Control for FabricateMIRClaim and FabricateANCClaim
The contract should be changed to check that the caller is the Hub contract and reject others.
Disclosed
-
Unbonding validator random selection can be predicted
The unbond function should always remove stake from the validator it was originally bonded to, for example by tracking bond_id to validator mappings, and only proportionally unstake from others if slashing reduced that validator's stake.
Disclosed
-
Potential lock of rewards in the custody contracts
The reply should be handled on both success and failure, for example by using ReplyOn::Always, so that a failed swap does not lock tokens.
Disclosed
-
money-market-contracts/contracts/market claim_rewards may revert due to spend_limit set on distributor
The report recommends removing the spend_limit or letting users specify a smaller amount when claiming.
Disclosed
-
money-market-contracts/oracle#feed_prices() delayed transaction may disrupt price feeds
The contract should be changed to accept a timestamp with each price and reject prices that are too old or too far in the future.
Disclosed
-
Spend limit on owner can be bypassed
After a successful spend, the contract should reduce the stored spend limit by the amount spent.
Disclosed
-
When transferring tokens not in whitelist on Ethereum to Terra with CrossAnchorBridge.depositStable() , the funds may get frozen
The whitelist checks should be re-enabled by uncommenting the require statements.
Disclosed
-
Governance Voting Dis-proportionally Favours Users Who Stake And Vote After A Poll Has Been Created And Had Its Snapshot Taken
The contract should be fixed by implementing a checkpointing mechanism that records each user's staked balance at the snapshot block and uses that balance when the user votes.
Disclosed
-
Simple interest calculation is not exact
The markets should be accrued regularly, or the code should switch to a compound interest formula (which can be approximated to reduce computational cost).
Disclosed