Combine external calls into one can save gas #211
Labels
bug
Something isn't working
G (Gas Optimization)
GovernorAlpha
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/governance/GovernorAlpha.sol#L437-L445
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/governance/GovernorAlpha.sol#L466-L474
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/governance/GovernorAlpha.sol#L619-L627
External call to
timelock
will be called each time in these for loops. They can be combined into batch external call by creatingtimelock.***Batch(...)
function and call that function instead.The text was updated successfully, but these errors were encountered: