Shell Protocol - lanrebayode77's results

A set of EVM-based smart contracts on Arbitrum One. In a nutshell it is DeFi made simple.

General Information

Platform: Code4rena

Start Date: 21/08/2023

Pot Size: $36,500 USDC

Total HM: 1

Participants: 43

Period: 7 days

Judge: Dravee

Id: 277

League: ETH

Shell Protocol

Findings Distribution

Researcher Performance

Rank: 38/43

Findings: 1

Award: $9.16

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

9.1555 USDC - $9.16

Labels

bug
grade-b
QA (Quality Assurance)
sufficient quality report
edited-by-warden
Q-10

External Links

https://github.com/code-423n4/2023-08-shell/blob/c61cf0e01bada04c3d6055acb81f61955ed600aa/src/proteus/EvolvingProteus.sol#L831

Checking if the absoluteValue is less than FIXED_FEE * 2 should happen inside the block where the deduction will happen, the check is unnecessary if feeUp is true as it will be added to not subtracted from, it is only mandated when subtraction will take place.

uint256 roundedAbsoluteAmount; if (feeUp) { roundedAbsoluteAmount = absoluteValue + (absoluteValue / BASE_FEE) + FIXED_FEE; require(roundedAbsoluteAmount < INT_MAX); } else if (absoluteValue < FIXED_FEE * 2) revert AmountError(); roundedAbsoluteAmount = absoluteValue - (absoluteValue / BASE_FEE) - FIXED_FEE; roundedAmount = negative ? -int256(roundedAbsoluteAmount) : int256(roundedAbsoluteAmount); }

#0 - c4-pre-sort

2023-08-30T04:42:07Z

0xRobocop marked the issue as sufficient quality report

#1 - c4-judge

2023-09-11T19:52:03Z

JustDravee marked the issue as grade-b

#2 - c4-judge

2023-09-11T19:52:11Z

JustDravee marked the issue as grade-c

#3 - c4-judge

2023-09-11T19:53:29Z

JustDravee marked the issue as grade-b

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