Skip to content

Code4rena

Backd Tokenomics contest

Every publicly disclosed report for Backd Tokenomics contest and what kind of bugs they were.

disclosed reports
38
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Backd Tokenomics contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Backd Tokenomics contest chose to make public.

Smart contracts

THE first AMM Staker may not receive according rewards because of poor checkpoints

The first staker in the AmmGauge may receive fewer rewards than expected because the pool is not checkpointed immediately after their stake, causing their accumulated reward to be calculated incorrectly. An attacker could exploit this by being the first staker and then claiming rewards after others stake, potentially receiving less than deserved.

Backd Tokenomics contest

Medium
Business logic

Total Supply is not guaranteed and is not deterministic.

The token's total supply is not deterministic because the inflation update uses the old rate before checking if the decay period has passed, so if no one mints or calls the update for a while around the decay point, the total available grows too much. An attacker could mint more than the stated cap of 268435456 tokens.

Backd Tokenomics contest

High
DoS

BkdLocker depositFees can be blocked

The BkdLocker contract's fee burning function fails when the contract holds ETH but none of the liquidity pools use ETH as their underlying token. An attacker could send a small amount of ETH to the contract to cause the fee burning to revert, blocking fee deposits.

Backd Tokenomics contest

Medium
DoS

Usage of deprecated transfer to send ETH

The contract uses the deprecated transfer function to send ETH, which forwards a fixed gas stipend of 2300. If the recipient is a contract that needs more gas to process the payment, the transfer reverts, causing the swap to fail.

Backd Tokenomics contest

Medium
Smart contracts

it’s possible to initialize contract BkdLocker for multiple times by sending startBoost=0 and each time different values for other parameters

The initialisation guard in the BkdLocker contract checked a configuration value that the caller could set to zero, so the contract could be initialised more than once. A malicious governance caller could change boost and withdraw-delay settings, leading to unfair reward distribution and loss of yield.

Backd Tokenomics contest

Medium
Smart contracts

FeeBurner initiates swap without any slippage checks if Chainlink oracle fails

The FeeBurner contract initiates token swaps through SwapperRouter, which uses a Chainlink oracle to set a minimum output amount for slippage protection. If the oracle fails, the minimum output is set to zero, allowing an attacker to sandwich the swap and extract value.

Backd Tokenomics contest

Medium
Access control

There are multiple ways for admins/governance to rug users

The report describes several ways a malicious admin or governance could steal user funds or lock balances, such as by setting a migration pool that forwards funds to an attacker-controlled address, adding unlimited reward tokens to cause out-of-gas errors on withdrawal, or setting a malicious fee burner. An attacker with admin privileges could therefore rug users.

Backd Tokenomics contest

Medium
DoS

DoS on KeeperGauge due to division by zero

The KeeperGauge contract's claim functions divide by perPeriodTotalFees[i] without checking for zero, so if an epoch has no fees, a division by zero reverts and blocks all reward claims. An attacker or normal operation could trigger this by advancing or killing an epoch without fees, causing a denial of service until fees are reported.

Backd Tokenomics contest

Medium
DoS

Potential DoS when removing keeper gauge

Removing a keeper gauge in the InflationManager does not check whether a TopUpActionFeeHandler still references it, so the killed gauge makes fee reporting revert. Any top-up execution then fails until governance points the fee handler at a new gauge, which the text says could delay or block top-ups during volatile markets.

Backd Tokenomics contest

Medium
Smart contracts

Amount distributed can be inaccurate when updating weights

When pool weights are updated, only the changed pool is checkpointed, so other pools use an outdated total weight for the entire period since their last checkpoint, leading to incorrect token distribution. This can cause users to lose part of their claims or too many tokens to be distributed, preventing some from claiming.

Backd Tokenomics contest

Medium
Race condition

BkdLocker#depositFees() can be front run to steal the newly added rewardToken

The depositFees function adds rewards to a pool without a time-based vesting, so an attacker can front-run the deposit by locking a large amount of tokens, then immediately claim a disproportionate share of the new rewards. This allows the attacker to steal a significant portion of the newly added reward tokens that were intended for existing stakeholders.

Backd Tokenomics contest

Medium
Business logic

The first AMM Staker will have control over how the shares are calculated.

The first staker in the AMM Gauge can manipulate share calculations by staking a tiny amount and frontrunning subsequent stakers, causing later stakers to receive fewer shares than they should. This allows the first staker to capture a disproportionate share of rewards.

Backd Tokenomics contest

Medium
DoS

call() should be used instead of transfer() on an address payable

The smart contracts use the deprecated transfer() function to send Ether, which forwards only 2300 gas. If the recipient is a contract that needs more gas (e.g., a multisig wallet or a proxy), the transfer will fail, potentially locking funds or breaking functionality.

Backd Tokenomics contest

Medium
Smart contracts

Inconsistency between constructor and setting method for slippageTolerance

The constructor for a smart contract strategy did not enforce the same validation on the slippage tolerance parameter as the setter method did. An attacker could deploy or configure the contract with an invalid slippage tolerance, potentially causing trades to fail or execute at unfavourable prices.

Backd Tokenomics contest

Medium
Business logic

Griefer can extend period of higher withdrawal fees

The withdrawal fee decay timer is reset whenever a user receives LP tokens, even a tiny amount. An attacker can send 1 wei of LP tokens to another user to reset their lastActionTimestamp, extending the time they must wait for their withdrawal fee to decrease.

Backd Tokenomics contest

Medium
Smart contracts

Position owner should set allowed slippage

The top-up action uses a default swap slippage of 5% and allows up to 40%, which lets malicious keepers or owners sandwich the swap and profit at the user's expense.

Backd Tokenomics contest

Medium
Business logic

Customers cannot be topUp() ed a second time

The contract uses OpenZeppelin's safeApprove to set token allowances without first resetting them to zero, so a second top-up call reverts because the allowance is already non-zero. This prevents customers from topping up again, potentially leading to liquidation.

Backd Tokenomics contest

High
Business logic

Chainlink’s latestRoundData might return stale or incorrect results

The smart contracts used Chainlink's latestRoundData without checking whether the returned price was stale or from an incomplete round. An attacker could exploit stale prices to cause incorrect valuations, potentially leading to financial loss.

Backd Tokenomics contest

Medium
DoS

Malicious Stakers can grief Keepers

A staker can cause a keeper's top-up transaction to revert by deploying a contract at the payer address that reverts on receiving ether. This prevents the keeper from earning rewards and wastes their gas.

Backd Tokenomics contest

Medium