Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA Report #130

Open
code423n4 opened this issue May 15, 2022 · 1 comment
Open

QA Report #130

code423n4 opened this issue May 15, 2022 · 1 comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

LOW

L-01: Outdated compiler version (pragma solidity 0.6.12)

Older compilers might be susceptible to some bugs.

I recommend changing the solidity version pragma to the latest version to enforce the use of an up-to-date compiler.

A list of known compiler bugs and their severity can be found here: https://etherscan.io/solcbuginfo

L-02: Unsafe approve

YieldManager.sol#L221

The ERC20.approve() function returns a boolean value indicating success.
This parameter needs to be checked for success.

I recommend using OpenZeppelin’s safeApprove function that handle the return value check as it was done it the other contracts.

NON-CRITICAL

N-01: safeApprove has been deprecated

ConvexCurveLPVault.sol#L158

LidoVault.sol#L102

Consider using safeIncreaseAllowance and safeDecreaseAllowance instead.

REFERENCE

@code423n4 code423n4 added bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax labels May 15, 2022
code423n4 added a commit that referenced this issue May 15, 2022
@HickupHH3
Copy link
Collaborator

low: safeApprove, unsafe approve
nc: outdated compiler version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

2 participants