Code4rena
Y2k Finance contest
Every publicly disclosed report for Y2k Finance contest and what kind of bugs they were.
- disclosed reports
- 25
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2023
Disclosed reports
Newest first. Only what Y2k Finance contest chose to make public.
-
Depeg event can happen at incorrect price
Business logic High Audit finding
-
Risk users are required to payout if the price of the pegged asset goes higher than underlying
Business logic High Audit finding
-
LOSS OF PRECISION RESULTING IN WRONG VALUE FOR PRICE RATIO
High Audit finding
-
A design flaw in the case of using 2 oracles (aka PegOracle)
High Audit finding
-
StakingRewards.sol#stake is intended to be pausable but isn’t
Business logic Medium Audit finding
-
StakingRewards: Significant loss of precision possible
Medium Audit finding
-
StakingRewards.sol#notifyRewardAmount() Improper reward balance checks can make some users unable to withdraw their rewards
Business logic Medium Audit finding
-
After the vault expires, users may still receive rewards through the StakingRewards contract
Business logic Medium Audit finding
-
function changeController() has rug potential as admin can unilaterally withdraw all user funds from both risk and insure vaults
Access control Medium Audit finding
-
Griefing attack on the Vaults is possible, withdrawing the winning side stakes
Access control High Audit finding
-
Fees are taken on risk collateral
Business logic Medium Audit finding
-
timewindow can be changed unexpectedly that blocks users from calling deposit function
Business logic Medium Audit finding
-
StakingRewards: recoverERC20() can be used as a backdoor by the owner to retrieve rewardsToken
Access control Medium Audit finding
-
StakingRewards reward rate can be dragged out and diluted
Business logic Medium Audit finding
-
Different Oracle issues can return outdated prices
Medium Audit finding
-
It’s possible to change for Vault and lost control on it
Access control Medium Audit finding
-
Fee-on-Transfer tokens cause problems in multiple places
Business logic Medium Audit finding
-
Oracle is tracked per token instead of per pair, leading to surprise results
Medium Audit finding
-
Rewards are not rolled over
Business logic Medium Audit finding
-
Vault.sol is not EIP-4626 compliant
Smart contracts High Audit finding
-
Users who deposit in one vault can lose all deposits and receive nothing when counterparty vault has no deposits
Business logic High Audit finding
-
End epoch cannot be triggered preventing winners to withdraw
DoS High Audit finding
-
Incorrect handling of pricefeed.decimals()
High Audit finding