beefyfinance / beefy-contracts

Public repo for the community devs to advance the Beefy protocol.
https://app.beefy.finance
180 stars 165 forks source link

Update IBalancerVault.sol #245

Open dharma24 opened 11 months ago

dharma24 commented 11 months ago

Changes made:

Parameter Types in Functions: Changed memory to calldata for array and struct parameters in external functions. This is more gas-efficient as calldata is a non-modifiable, temporary location where function arguments are stored, and it costs less gas compared to memory.

Return Type Naming: Added names (poolAddress and poolSpecialization) to the return types in getPool for clarity.

Formatting: Improved formatting for better readability, such as aligning function parameters and return statements.

Commenting: Added comments for better understanding of the code structure.

Remember that these changes are primarily stylistic and organizational; the core logic and functionality of the interface remain unchanged.