Swivel v3 contest - ReyAdmirado's results

The Capital-Efficient Protocol For Fixed-Rate Lending.

General Information

Platform: Code4rena

Start Date: 12/07/2022

Pot Size: $35,000 USDC

Total HM: 13

Participants: 78

Period: 3 days

Judge: 0xean

Total Solo HM: 6

Id: 135

League: ETH

Swivel

Findings Distribution

Researcher Performance

Rank: 50/78

Findings: 2

Award: $70.04

🌟 Selected for report: 0

🚀 Solo Findings: 0

typo in comments

(every Erc20.sol needs this change)

adpated --> adapted:

(every ZcToken.sol needs these changes)

compatability --> compatibility:

redeemption --> redemption:

recieving --> receiving:

demoninators --> denominators:

reddem --> redeem

Varifies --> verifies

withraw --> withdraw

#0 - robrobbins

2022-08-31T00:36:52Z

tokens not in scope but addressed the notes spellings in swivel.

Awards

25.7815 USDC - $25.78

Labels

bug
duplicate
G (Gas Optimization)
wontfix

External Links

1. state variables can be packed into fewer storage slots

If variables occupying the same slot are both written the same function or by the constructor, avoids a separate Gsset (20000 gas). Reads of the variables are also cheaper.

change the position of line 26 to after a address state variable:

2. state variables should be cached in stack variables rather than re-reading them from storage

marketPlace in function setMarketPlace:

maturityRate in function addNotional:

maturityRate in function removeNotional:

maturityRate in function redeemInterest:

maturityRate in function transferNotionalFrom:

maturityRate in function transferNotionalFee:

feeChange in function setFee:

3. x = x + y is cheaper than x += y

4. better to use ++i than i++

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter