Hunt prep
Before you test Bond Options
What 30 disclosed reports say about Bond Options: 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 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Use A's staked token balance can be used to mint option token as reward for User B if the payout token equals to the stake token
The fix ensures that the staking token cannot be the same as the payout token when deploying the OTLM contract.
Disclosed
-
stake() missing set lastEpochClaimed when userBalance equal 0
The fix was implemented by setting lastEpochClaimed to epoch - 1 for first-time stakers.
Disclosed
-
FixedStrikeOptionTeller: create can be invoked when block.timestamp == expiry but exercise reverts
The timestamp checks were made consistent, as confirmed by the fix implementation.
Disclosed
-
Blocklisted address can be used to lock the option token minter's fund
The contract should validate that the receiver is not blocklisted when creating the option token, or implement a pull mechanism for claiming proceeds, or allow the option minter to burn their token in exchange for their fund after expiry if the receiver does not reclaim.
Disclosed
-
Funds can be stolen from the `FixedStrikeOptionTeller` contract by creating put option tokens without providing collateral
The issue was fixed by adding a check to ensure quoteAmount is not zero, and the fix was implemented in a pull request.
Disclosed
-
`optionTokens` can be expired even though the epoch is not over
The expiry should be rounded up instead of down, or the expiry should be required to be at least one day longer than the epoch duration.
Disclosed
-
All funds can be stolen from FixedStrikeOptionTeller using a token with malicious decimals
The fix was implemented by caching the decimals value at deployment and using the stored value in create and exercise, with tests added to confirm the behaviour.
Disclosed
-
Loss of option token from Teller and reward from OTLM if L2 sequencer goes down
The sponsor acknowledged the issue but does not plan to implement a fix; a possible mitigation would be to integrate Chainlink's L2 sequencer uptime feed and give users extra time to exercise and claim if the sequencer goes down.
Disclosed
-
claimRewards() If a rewards is too small, it may block other epochs
The fix adds a check to return early if the calculated reward is zero, and also adds a zero check and setter for the epoch transition reward.
Disclosed
-
_validateAndGetPrice() doesn't check If Arbitrum sequencer is down in Chainlink feeds
The issue was fixed by adding a check for the Arbitrum sequencer status, as shown in the linked pull request.
Disclosed
-
"Equilibrium price" is not used to compute the capacity (OSDA Only)
The discount should be applied to obtain the equilibrium price before computing the capacity; the issue was fixed in a pull request.
Disclosed
-
The createMarket transaction lack of expiration timestamp check
The fix was to have users specify a start timestamp and duration, reverting if block.timestamp is greater than start, as implemented in the referenced pull request.
Disclosed
-
Solmate safetransfer and safetransferfrom does not check the code size of the token address, which may lead to funding loss
The project implemented a code size check in the TransferHelper.sol library to fix this.
Disclosed
-
Transferring Ownership Might Break The Market
The ownership transfer function should check that the new owner is whitelisted for callbacks if the market uses a callback, and the sponsor acknowledged the issue but stated the check on purchase is intentional as a shutdown mechanism.
Disclosed
-
Read-only reentrancy in BondFixedTermTeller
The issue was fixed by updating the total supply before minting the tokens.
Disclosed