Platform: Code4rena
Start Date: 16/12/2021
Pot Size: $100,000 USDC
Total HM: 21
Participants: 25
Period: 7 days
Judge: alcueca
Total Solo HM: 12
Id: 66
League: ETH
Rank: 22/25
Findings: 2
Award: $110.40
🌟 Selected for report: 1
🚀 Solo Findings: 0
🌟 Selected for report: WatchPug
Also found by: SolidityScan, cccz, heiho1, robee
12.8058 USDC - $12.81
SolidityScan
Public
functions that are never called by a contract should be declared external
in order to conserve gas.
Smart Contracts are required to have effective Gas usage as they cost real money and each function should be monitored for the amount of gas it costs to make it gas efficient.
Public
functions cost more Gas than external
functions
Function "getRatio" at https://github.com/code-423n4/2021-12-yetifinance/blob/main/packages/contracts/contracts/Dependencies/Whitelist.sol#L237-L245
Use the external state visibility for functions that are never called from the contract.
#0 - kingyetifinance
2022-01-06T07:39:54Z
@LilYeti: Duplicate with #9
#1 - alcueca
2022-01-15T07:23:34Z
Duplicate #270
🌟 Selected for report: SolidityScan
97.5905 USDC - $97.59
SolidityScan
Smart Contracts are Gas sensitive and heavily depend on how Gas is spent and managed across the code. This affects each and every function definition and logic.
Therefore having any unused functions in the code cost unnecessary Gas usage and thus negatively impacts the Contract and the organization.
Having unused function definitions and parameters negatively affects the contract and costs unnecessary Gas. This also makes it difficult and confusing for auditors to go through the code.
The function "_getColls" is not used anywhere in the code
Evaluate if the function call should be used anywhere otherwise remove the function definition.
#0 - 0xtruco
2022-01-14T06:34:50Z