Platform: Code4rena
Start Date: 10/11/2023
Pot Size: $28,000 USDC
Total HM: 5
Participants: 185
Period: 5 days
Judge: 0xDjango
Id: 305
League: ETH
Rank: 90/185
Findings: 1
Award: $9.97
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xVolcano
Also found by: 0xAnah, 0xhex, 0xta, ABAIKUNANBAEV, JCK, Raihan, Rickard, Sathish9098, ZanyBonzy, hunter_w3b, lsaudit, rumen, shamsulhaq123, tala7985, unique
9.97 USDC - $9.97
110: assets[i] = address(IStrategy(strategies[i]).underlyingToken()); 111: assetBalances[i] = IStrategy(strategies[i]).userUnderlyingView(address(this));
Suggested edit:
IStrategy strategy = IStrategy(strategies[i]); assets[i] = address(strategy.underlyingToken()); assetBalances[i] = strategy.userUnderlyingView(address(this));
Function Name | min | avg | median | max | # calls |
---|---|---|---|---|---|
getAssetBalances (Before) | 24953 | 24953 | 24953 | 24953 | 1 |
getAssetBalances (After) | 24835 | 24835 | 24835 | 24835 | 1 |
83: assetLyingInNDCs += IERC20(asset).balanceOf(nodeDelegatorQueue[i]); 84: assetStakedInEigenLayer += INodeDelegator(nodeDelegatorQueue[i]).getAssetBalance(asset);
Suggested edit:
address currentNdc = nodeDelegatorQueue[i]; assetLyingInNDCs += IERC20(asset).balanceOf(nodeDelegatorQueue[i]); assetStakedInEigenLayer += INodeDelegator(nodeDelegatorQueue[i]).getAssetBalance(asset);
Function Name | min | avg | median | max | # calls |
---|---|---|---|---|---|
getAssetDistributionData (Before) | 10153 | 10153 | 10153 | 10153 | 1 |
getAssetDistributionData (After) | 9316 | 9316 | 9316 | 9316 | 1 |
67: address asset = supportedAssets[asset_idx]; 68: uint256 assetER = getAssetPrice(asset); 70: uint256 totalAssetAmt = ILRTDepositPool(lrtDepositPoolAddr).getTotalAssetDeposits(asset); 71: totalETHInPool += totalAssetAmt * assetER;
Suggested edit:
address asset = supportedAssets[asset_idx]; totalETHInPool += ILRTDepositPool(lrtDepositPoolAddr).getTotalAssetDeposits(asset) * getAssetPrice(asset);
Function Name | min | avg | median | max | # calls |
---|---|---|---|---|---|
getRSETHPrice (Before) | 15460 | 36558 | 36558 | 57656 | 2 |
getRSETHPrice (After) | 15460 | 36510 | 36510 | 57560 | 2 |
#0 - c4-pre-sort
2023-11-17T03:51:22Z
raymondfam marked the issue as sufficient quality report
#1 - c4-judge
2023-12-01T16:05:15Z
fatherGoose1 marked the issue as grade-b