Platform: Code4rena
Start Date: 09/02/2024
Pot Size: $60,500 USDC
Total HM: 17
Participants: 283
Period: 12 days
Judge:
Id: 328
League: ETH
Rank: 221/283
Findings: 1
Award: $1.54
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: t0x1c
Also found by: 0rpse, 0xAadi, 0xBinChook, 0xCiphky, 0xDetermination, 14si2o_Flint, AC000123, Aamir, Abdessamed, Blank_Space, CodeWasp, DanielArmstrong, DarkTower, Draiakoo, Honour, Kalogerone, Krace, McToady, Merulez99, MidgarAudits, MrPotatoMagic, PedroZurdo, Silvermist, Tychai0s, VAD37, Velislav4o, VrONTg, WoolCentaur, YouCrossTheLineAlfie, ZanyBonzy, alexxander, aslanbek, btk, csanuragjain, d3e4, dimulski, djxploit, erosjohn, evmboi32, fnanni, forgebyola, forkforkdog, handsomegiraffe, immeas, israeladelaja, juancito, ktg, n0kto, neocrao, ni8mare, okolicodes, peanuts, petro_1912, shaflow2, shaka, swizz, ubermensch, ubl4nk, yotov721
1.5445 USDC - $1.54
In _getStakingFactor
, when stakedAmount < 1 NRN, stakingFactor_ will always be 1.
This allows a player to make positive points without any risk of loss by depositing minimal amount of $NRN(< 10**4 / bpsLostPerLoss
wei)
If player deposits 1 wei and participate in a match, curStakeAtRisk will be always zero and therefore even if player lost the match, no staked fund will be at rist of loss.
When player win the match, stakeAtRisk
always be zero and points should be the same with eloFactor
In the game economics, Penalty for Losing
is one of the most important mechanism which can be destoryed by this issue.
Manual Review
We can make an minimum limit of staking.
Other
#0 - c4-pre-sort
2024-02-22T15:37:15Z
raymondfam marked the issue as insufficient quality report
#1 - c4-pre-sort
2024-02-22T15:37:24Z
raymondfam marked the issue as duplicate of #38
#2 - c4-judge
2024-03-07T02:58:22Z
HickupHH3 changed the severity to 3 (High Risk)
#3 - c4-judge
2024-03-07T03:13:31Z
HickupHH3 marked the issue as partial-75
#4 - c4-judge
2024-03-07T03:27:32Z
HickupHH3 marked the issue as partial-50
#5 - c4-judge
2024-03-07T03:27:47Z
HickupHH3 marked the issue as partial-75