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

Update IBalancerVault.sol #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dharma24
Copy link

@dharma24 dharma24 commented Dec 5, 2023

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant