I don't use _loadPoolData in _loadPoolDataUpdatingBalancesAndYieldFees in this PR because every return with memory in functions allocates a new empty value in memory. https://github.com/ethereum/solidity/issues/13294
I’m not sure if this is the only why gas decreased, perhaps the compiler made this in some other way.
Type of change
[ ] Bug fix
[ ] New feature
[ ] Breaking change
[ ] Dependency changes
[ ] Code refactor / cleanup
[ ] Documentation or wording changes
[X] Other
Checklist:
[ ] The diff is legible and has no extraneous changes
[ ] Complex code has been commented, including external interfaces
[ ] Tests have 100% code coverage
[ ] The base branch is either main, or there's a description of how to merge
Description
I don't use
_loadPoolData
in_loadPoolDataUpdatingBalancesAndYieldFees
in this PR because every return with memory in functions allocates a new empty value in memory. https://github.com/ethereum/solidity/issues/13294I’m not sure if this is the only why gas decreased, perhaps the compiler made this in some other way.
Type of change
Checklist:
main
, or there's a description of how to mergeIssue Resolution