Skip to content

Code4rena

Decent

Every publicly disclosed report for Decent and what kind of bugs they were.

disclosed reports
9
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find Decent on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Decent chose to make public.

Smart contracts

When DecentBridgeExecutor.execute fails, funds will be sent to a random address

When a cross-chain call's target execution fails on the destination chain, the bridge refunds the funds to the source-chain adapter address rather than the user, so the refund is lost. An attacker could cause a failed execution and the user's funds would be permanently lost.

Decent

High
Business logic

Permanent loss of tokens if swap data gets outdated

When a cross-chain swap via Stargate fails because the swap data is outdated, the tokens remain stuck in the StargateBridgeAdapter contract and cannot be recovered because the user can only retry with the same payload. This leads to permanent loss of the transferred tokens for the user.

Decent

Medium
Business logic

Potential loss of capital due to fixed fee calculations

The StargateBridgeAdapter uses a fixed fee calculation (0.06% of the current Stargate fee) that does not account for Stargate's variable fees, which can be adjusted to incentivise swaps. As a result, the callback on the target chain may receive more tokens than the expected amountIn, and the excess is lost in the adapter.

Decent

Medium