Platform: Code4rena
Start Date: 21/06/2022
Pot Size: $30,000 USDC
Total HM: 12
Participants: 96
Period: 3 days
Judge: HardlyDifficult
Total Solo HM: 5
Id: 140
League: ETH
Rank: 74/96
Findings: 1
Award: $28.29
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0x29A, 0x52, 0xNazgul, 0xNineDec, 0xc0ffEE, 0xf15ers, 0xkatana, BowTiedWardens, Chom, ElKu, Funen, GalloDaSballo, JC, JMukesh, JohnSmith, Lambda, Limbooo, MadWookie, MiloTruck, Nethermind, Noah3o6, Nyamcil, Picodes, PwnedNoMore, Randyyy, RoiEvenHaim, SmartSek, StErMi, Tadashi, TerrierLover, TomJ, Tomio, Treasure-Seeker, UnusualTurtle, Varun_Verma, Wayne, Waze, _Adam, apostle0x01, asutorufos, berndartmueller, c3phas, catchup, cccz, cloudjunky, codexploder, cryptphi, defsec, delfin454000, dipp, ellahi, exd0tpy, fatherOfBlocks, hansfriese, hyh, joestakey, kebabsec, kenta, masterchief, minhquanym, naps62, oyc_109, pashov, peritoflores, reassor, rfa, robee, sach1r0, saian, sashik_eth, shenwilly, simon135, slywaters, sorrynotsorry, sseefried, unforgiven, xiaoming90, ych18, zuhaibmohd, zzzitron
28.2899 USDC - $28.29
address(0)
check when setting new curatorfunction updateCurator(address _newCurator) external override { require(msg.sender == curator,"NibblVault: Only Curator"); curator = _newCurator; }
__gap[50]
storage variable to allow for new storage variables in later versionscontract NibblVault is INibblVault, BancorFormula, ERC20Upgradeable, Twav, EIP712Base {
uint _primaryReserveBalance = (primaryReserveRatio * _initialTokenSupply * _initialTokenPrice) / (SCALE * 1e18);
uint _primaryReserveBalance = (primaryReserveRatio * _initialTokenSupply * _initialTokenPrice) / (SCALE * 1e18);
uint32 _blockTimestamp = uint32(block.timestamp % 2**32);
uint32 _blockTimestamp = uint32(block.timestamp % 2**32);
primaryReserveRatio
should be written in all capitalsPRIMARY_RESERVE_RATIO
uint32 private constant primaryReserveRatio = 200_000; //20%
1. File: NibblVault.sol#L405-406
// buyoutValuationDeposit = _currentValuation - ((primaryReserveBalance - fictitiousPrimaryReserveBalance) + secondaryReserveBalance); buyoutValuationDeposit = msg.value - (_buyoutBid - _currentValuation);
#0 - HardlyDifficult
2022-07-04T18:00:23Z
Good feedback, concise report