Skip to content

Code4rena

Numoen contest

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

disclosed reports
7
most reported class
Business logic
bug classes found
1
first disclosure
2023
Find Numoen contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Numoen contest chose to make public.

Business logic

Precision loss in the invariant function can lead to loss of funds

The invariant function in the Pair contract performs division before multiplication, causing precision loss that can make the invariant check pass even when it should fail. An attacker can exploit this to withdraw funds from the pool without affecting the invariant, as demonstrated by a test where 0.5 USDC was stolen.

Numoen contest

High
Business logic

Economical games that can be played to gain MEV

The report argues that the lendgine invariant allows liquidity providers to exit early when the safe upper bound moves, creating a race for the fastest actors to withdraw before others. It also notes that liquidity is scattered across many markets with different upper bounds, which can leave providers locked in.

Numoen contest

Medium
Audit finding

Division before multiplication incurs unnecessary precision loss

Interest accrual and invariant calculations in the protocol perform division before multiplication, so intermediate values are truncated and precision is lost. When liquidity is large, the scaled amount can round down to zero, making the computed values inaccurate.

Numoen contest

Medium
Business logic

Wrong init code hash

The contract uses an incorrect init code hash for UniswapV2 pair address calculation, which does not match the latest UniswapV2 repository. This could cause the contract to interact with the wrong pair contract, potentially leading to risks when liquidity is insufficient.

Numoen contest

Medium
Business logic

First liquidity provider will suffer from revert or fund loss

The first liquidity provider must supply three values (amount0Min, amount1Min, liquidity) that satisfy a precise mathematical relationship; otherwise the transaction reverts or the pool invariant becomes strictly positive, allowing anyone to steal token0 via swap. The report provides a formula to calculate the correct liquidity amount.

Numoen contest

Medium
Business logic

Fee on transfer tokens will not behave as expected

The mint function in Lendgine.sol checks that the contract's token balance increased by at least the collateral amount, but fee-on-transfer tokens deliver less than that amount, so the check fails and mint reverts. An attacker could not exploit this to steal funds; it only prevents the protocol from supporting such tokens.

Numoen contest

Medium