Skip to content

Code4rena

veRWA

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

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

Disclosed reports

Newest first. Only what veRWA chose to make public.

Business logic

Upon IncreaseAmount the lock may not align to the nearest weekly increment

The IncreaseAmount function sets the lock end time to the current block timestamp plus the lock duration without rounding down to the nearest weekly increment, unlike other lock creation paths. This misalignment can cause the checkpoint logic to compute incorrect slopes, leading to wrong voting power and relative votes.

veRWA

Medium
Business logic

Users may be forced into long lock times to be able to undelegate back to themselves

A check in the voting escrow contract requires that when delegating, the recipient's lock end must be at least as late as the sender's lock end. This means a user who delegated to someone with an earlier lock end cannot undelegate back to themselves without extending their own lock by five years, forcing them to remain delegated or accept a long unwanted lock extension.

veRWA

High
Business logic

Delegated votes are locked when owner lock is expired

A user who delegated their locked votes could not undelegate after their lock expired, because the undelegate function required the lock to still be active. This meant the user could not withdraw their tokens, effectively locking them forever.

veRWA

High
Smart contracts

Replace old_sum_bias by old_bias

A one-line arithmetic mistake in the gauge controller used the wrong variable as the floor in an underflow-protection calculation for the total bias. In edge cases where total voting power was near zero, this could cause an underflow that prevented a user from voting, though the error would generally recover over time.

veRWA

Medium