Declaring the variable to immutable #3
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")
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
The text was updated successfully, but these errors were encountered: