Platform: Code4rena
Start Date: 12/08/2022
Pot Size: $50,000 USDC
Total HM: 15
Participants: 120
Period: 5 days
Judge: Justin Goro
Total Solo HM: 6
Id: 153
League: ETH
Rank: 104/120
Findings: 1
Award: $21.17
đ Selected for report: 0
đ Solo Findings: 0
đ Selected for report: IllIllI
Also found by: 0x1f8b, 0xA5DF, 0xDjango, 0xNazgul, 0xSmartContract, 0xackermann, 0xbepresent, 0xc0ffEE, 0xkatana, 2997ms, Amithuddar, Aymen0909, Bnke0x0, Chinmay, Chom, CodingNameKiki, Deivitto, Diraco, Dravee, ElKu, EthLedger, Fitraldys, Funen, IgnacioB, JC, Junnon, Lambda, LeoS, Metatron, MiloTruck, Noah3o6, NoamYakov, PaludoX0, Randyyy, ReyAdmirado, Rohan16, Rolezn, Ruhum, SaharAP, Sm4rty, SooYa, TomJ, Tomio, Waze, Yiko, _Adam, __141345__, a12jmx, ajtra, ak1, asutorufos, ballx, brgltd, c3phas, cRat1st0s, carlitox477, chrisdior4, d3e4, delfin454000, dharma09, djxploit, durianSausage, erictee, fatherOfBlocks, find_a_bug, flyx, francoHacker, gerdusx, gogo, gzeon, hakerbaya, ignacio, jag, kyteg, ladboy233, ltyu, m_Rassska, medikko, mics, mrpathfindr, newfork01, nxrblsrpr, oyc_109, pfapostol, rbserver, reassor, ret2basic, robee, sach1r0, saian, simon135, sryysryy, zeesaw
21.1705 USDC - $21.17
Instances Include:
Mitigation:
Do this
var borrowersLength = _borrowers.length for (uint256 i = 0; i < borrowersLength; i++) {
Instead of this
for (uint256 i = 0; i < _borrowers.length; i++) {
Instances: â¨
Mitigation:
Do this:
if (userBorrowShares[msg.sender] > 0) {
Instead of this
if (userBorrowShares[msg.sender] != 0) {
Instances: â¨â¨
Mitigation:
Do this:
function previewRateInterest( address _fraxlendPairAddress, uint256 _timestamp, uint256 _blockNumber ) external view returns (uint256 _interestEarned, uint256 _newRate) {
Instead of this
function previewRateInterest( address _fraxlendPairAddress, uint256 _timestamp, uint256 _blockNumber ) public view returns (uint256 _interestEarned, uint256 _newRate) {
Instances:
Mitigation:
Do this:
for (uint256 i = 0; i < _lenders.length; ++i) {
Instead of this:
for (uint256 i = 0; i < _lenders.length; i++) {