Hunt prep
Before you test Spartan Protocol Contest
What 28 disclosed reports say about Spartan Protocol 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 | 21 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
SynthVault withdraw forfeits rewards
Rewards should be claimed against the user's deposited balance before the withdrawal proceeds.
Disclosed
-
Synth realise is vulnerable to flash loan attacks
The project suggested restricting realise so only liquidity providers can call it through a DAO proposal; the reporter also recommends a TWAP or Chainlink price source and an anti-flash-loan LP valuation formula.
Disclosed
-
Result of transfer / transferFrom not checked
The contract should always check the return value of transfer and transferFrom calls and revert if the returned value is false.
Disclosed
-
Misuse of AMM model on minting Synth (resubmit to add more detail)
The project should maintain a debt variable in the Pool and use tokenAmount minus debt when calculating the token price for minting.
Disclosed
-
Dividend reward can be gamed
The dividends should be computed based on volume traded over a timespan instead of looking at individual trades.
Disclosed
-
Improper access control of claimAllForMember allows anyone to reduce the weight of a member
The fix is to remove the member parameter from claimAllForMember and replace all uses of member with msg.sender, so only the user themselves can claim their unlocked bonded LP tokens.
Disclosed
-
Missleading onlyDAO modifiers
The modifier should be renamed to onlyDeployer or onlyDeployerOrDAO to reflect actual access, or the logic should be corrected to restrict access to the DAO only.
Disclosed
-
In the beginning its relatively easy to gain majority share
The project acknowledged the issue and stated that mitigation steps, including emissions, would be in place for mainnet.
Disclosed
-
Synth: approveAndCall sets unnecessary approval
The approval should be limited to the specified amount instead of the maximum value.
Disclosed
-
Flash loan manipulation on getPoolShareWeight of Utils
The weight should be recorded with a timestamp and only take effect after a delay, such as one block, to prevent same-transaction manipulation.
Disclosed
-
grantFunds will revert after a DAO upgrade.
The DAO upgrade should also call setIncentiveAddresses on Reserve to update its stored DAO address; the team said this would be implemented.
Disclosed
-
SynthVault deposit lockup bypass
The pool should be synced before sending BASE to it via grantFunds, so that any previous BASE transfer is wasted and only the actual reward's weight is increased.
Disclosed
-
Pool: approveAndCall sets unnecessary approval
The approval should be limited to the exact amount required for the call.
Disclosed
-
Pools can be created without initial liquidity
The report recommends burning some initial LP tokens or charging a pool creation fee; the project acknowledged the issue and planned to address it before launch.
Disclosed
-
_deposit resetting user rewards can be used to grief them and make them loose rewards via depositForMember
The issue should be fixed by harvesting rewards for the user immediately before updating mapMemberSynth_lastTime.
Disclosed