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

Declaring the variable to immutable #3

Closed
code423n4 opened this issue Nov 4, 2021 · 1 comment
Closed

Declaring the variable to immutable #3

code423n4 opened this issue Nov 4, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists G (Gas Optimization) sponsor confirmed Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")

Comments

@code423n4
Copy link
Contributor

Handle

jah

Vulnerability details

impact

Variables {
initial_A
future_A
fee
admin_fee
owner
kill_deadline
is_killed
token
} are only declared in the construction so that by changing them as a immutable we can save gas
https://github.com/code-423n4/2021-11-bootfinance/blob/main/core-contracts/contracts/sol/ETHPoolDelegator.sol
https://github.com/code-423n4/2021-11-bootfinance/blob/main/core-contracts/contracts/sol/BTCPoolDelegator.sol
https://github.com/code-423n4/2021-11-bootfinance/blob/main/core-contracts/contracts/sol/USDPoolDelegator.sol

Tools Used

Manual Analysis

Recommended Mitigation Steps

Declare the variables as immutable

@0xean
Copy link
Collaborator

0xean commented Jan 8, 2022

duplicate of #1

@0xean 0xean closed this as completed Jan 8, 2022
@0xean 0xean added the duplicate This issue or pull request already exists label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists G (Gas Optimization) sponsor confirmed Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Projects
None yet
Development

No branches or pull requests

3 participants