Platform: Code4rena
Start Date: 16/12/2022
Pot Size: $60,500 USDC
Total HM: 12
Participants: 58
Period: 5 days
Judge: Trust
Total Solo HM: 4
Id: 196
League: ETH
Rank: 43/58
Findings: 1
Award: $43.54
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: yixxas
Also found by: 0x52, 0xAgro, 0xSmartContract, 0xhacksmithh, Aymen0909, Bnke0x0, Bobface, Breeje, Diana, Franfran, HE1M, HollaDieWaldfee, IllIllI, Jeiwan, RaymondFam, Rolezn, SaharDevep, Secureverse, SmartSek, ak1, bin2chen, brgltd, chrisdior4, gz627, imare, ladboy233, lukris02, oyc_109, rvierdiiev, shark, tnevler, unforgiven, wait
43.5439 USDC - $43.54
Even though it is used as an example in the "How it Works" section PUNKs are not currently supported.
CryptoPunks was created before the ERC721 standard and therefore, doesn't have a transferFrom
function.
CryptoPunks address: 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB
function addCollateral(IPaprController.Collateral[] calldata collateralArr) external override { for (uint256 i = 0; i < collateralArr.length;) { _addCollateralToVault(msg.sender, collateralArr[i]); collateralArr[i].addr.transferFrom(msg.sender, address(this), collateralArr[i].id); //@audit unsafe NFT transfer unchecked { ++i; } } }
Supporting CryptoPunks would require the implementation of specialised functions that handle the collection.
#0 - trust1995
2022-12-25T13:50:13Z
Standardized at the org level to be NC severity.
#1 - c4-judge
2022-12-25T13:50:19Z
trust1995 changed the severity to QA (Quality Assurance)
#2 - c4-judge
2022-12-25T17:22:36Z
trust1995 marked the issue as grade-b