Hunt prep
Before you test Decent
What 9 disclosed reports say about Decent: 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 | 4 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 1 | 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.
-
Users will lose their cross-chain transaction if the destination router do not have enough WETH reserves.
The payload should carry a destination-chain refund address, and the fallback transfer should send the wrapped token to that address instead of the execution target.
Disclosed
-
Due to missing checks on minimum gas passed through LayerZero, executions can fail on the destination chain
The contract should enforce a minimum gas limit at the transaction level and also enforce a maximum gas consumption at the executor level, ensuring enough gas remains to store a failed message.
Disclosed
-
When DecentBridgeExecutor.execute fails, funds will be sent to a random address
The executor.execute call in DecentEthRouter.onOFTReceived should pass an appropriate refund address, such as the user's refund address, instead of _from.
Disclosed
-
Permanent loss of tokens if swap data gets outdated
Wrap the receiveFromBridge call in a try/catch and, on failure, return the transferred tokens to the user.
Disclosed
-
Potential loss of capital due to fixed fee calculations
The adapter should approve the actual received amountLD instead of swapParams.amountIn, and update swapParams.amountIn accordingly, so all received tokens are transferred.
Disclosed