Platform: Code4rena
Start Date: 04/11/2022
Pot Size: $42,500 USDC
Total HM: 9
Participants: 88
Period: 4 days
Judge: 0xean
Total Solo HM: 2
Id: 180
League: ETH
Rank: 73/88
Findings: 1
Award: $21.13
π Selected for report: 0
π Solo Findings: 0
π Selected for report: 0x1f8b
Also found by: 0xSmartContract, 0xdeadbeef, Aymen0909, B2, Bnke0x0, Deivitto, Diana, Dinesh11G, JC, RaymondFam, ReyAdmirado, Rolezn, Sathish9098, TomJ, ajtra, aviggiano, chaduke, cryptostellar5, djxploit, gianganhnguyen, gogo, halden, karanctf, leosathya, lukris02, mcwildy, oyc_109, ret2basic, skyle, slowmoses
21.132 USDC - $21.13
Saves at least 17 gas per skipped conditions
There are 4 instances of this issue:
File : 2022-11-size/src/util/ECCMath.sol
27 : if (scalar == 0 || (point.x == 0 && point.y == 0)) return Point(1, 1);
File : 2022-11-size/src/SizeSealed.sol
144: if (quoteAmount == 0 || quoteAmount == type(uint128).max || quoteAmount < a.params.minimumBidQuote) {
187: if (pubKey.x != a.params.pubKey.x || pubKey.y != a.params.pubKey.y || (pubKey.x == 1 && pubKey.y == 1)) {
426: if (a.data.lowestQuote != type(uint128).max || block.timestamp <= a.timings.endTimestamp + 24 hours) {
File : 2022-11-size/src/SizeSealed.sol
There are 2 instances of this issue:
302: for (uint256 i; i < bidIndices.length; i++) {
244: for (uint256 i; i < seenBidMap.length - 1; i++) {
File : 2022-11-size/src/SizeSealed.sol
258: if (sharedPoint.x == 1 && sharedPoint.y == 1) continue;
File : 2022-11-size/src/SizeSealed.sol
294: data.filledBase += baseAmount;
File : 2022-11-size/src/interfaces/ISizeSealed.sol
There are 8 instances of this issue:
97 : event AuctionCreated( uint256 auctionId, address seller, AuctionParameters params, Timings timings, bytes encryptedPrivKey );
101 : event AuctionCancelled(uint256 auctionId);
103 : event Bid( address sender, uint256 auctionId, uint256 bidIndex, uint128 quoteAmount, bytes32 commitment, ECCMath.Point pubKey, bytes32 encryptedMessage, bytes encryptedPrivateKey );
114: event BidCancelled(uint256 auctionId, uint256 bidIndex);
116: event RevealedKey(uint256 auctionId, uint256 privateKey);
118: event AuctionFinalized(uint256 auctionId, uint256[] bidIndices, uint256 filledBase, uint256 filledQuote);
120: event BidRefund(uint256 auctionId, uint256 bidIndex);
File : 2022-11-size/src/interfaces/ISizeSealed.sol
File : 2022-11-size/src/interfaces/ISizeSealed.sol
466 : function computeCommitment(bytes32 message) public pure returns (bytes32) {
#0 - c4-judge
2022-11-10T02:22:48Z
0xean marked the issue as grade-b