Platform: Code4rena
Start Date: 17/07/2023
Pot Size: $85,500 USDC
Total HM: 11
Participants: 26
Period: 14 days
Judge: Picodes
Total Solo HM: 1
Id: 263
League: ETH
Rank: 16/26
Findings: 1
Award: $31.38
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: MiloTruck
Also found by: 0xAnah, AlexCzm, Bughunter101, BugzyVonBuggernaut, DavidGiladi, Emmanuel, Iurii3, Kaysoft, MohammedRizwan, Prestige, Rolezn, Sathish9098, Stormreckson, adeolu, descharre, evmboi32, fatherOfBlocks, ginlee, ihtishamsudo, juancito, mrudenko, tnquanghuy0512
31.3772 USDC - $31.38
getProfile
againProfileLib#createProfile: use cached _profile
instead of querying profileId
again:
.... Types.Profile storage _profile = StorageLib.getProfile(profileId); _profile.imageURI = createProfileParams.imageURI; bytes memory followModuleReturnData; if (createProfileParams.followModule != address(0)) { // Load the follow module to be used in the next assembly block. address followModule = createProfileParams.followModule; StorageLib.getProfile(profileId).followModule = followModule; //@audit use cached `_profile` ...
Remove commented code from LensV2UpgradeContracts#executeLensV2Upgrade()
function executeLensV2Upgrade() external onlyOwner { // _preUpgradeChecks(); _upgrade(); // _postUpgradeChecks(); }
There are 2 cases where return data is not used:
IFollowModule(newFeeFollowModule).initializeFollowModule({ profileId: profileIds[i], transactionExecutor: msg.sender, data: abi.encode( feeFollowModuleData.currency, feeFollowModuleData.amount, feeFollowModuleData.recipient ) });
ILensHub(msg.sender).getFollowNFTImpl().functionDelegateCall(data);
Check return value appropriately or if not, document why this is not necessary.
###[N-01] Duplicated natspec param
metadataURI
@param for Types.sol#Profile struct is mentioned twice
... * @param metadataURI MetadataURI is used to store the profile's metadata, for example: displayed name, description, * interests, etc. * @param metadataURI The URI to be used for the profile's metadata. */
#0 - c4-judge
2023-08-28T18:21:44Z
Picodes marked the issue as grade-b