balancer / balancer-v3-monorepo

GNU General Public License v3.0
30 stars 7 forks source link

Add example immutable/mutable getters. #685

Closed johngrantuk closed 4 weeks ago

johngrantuk commented 1 month ago

Description

Adds new getters: getMutableData to PoolInfo and getImmutableData to Stable/Weighted pools. Goal was to try and:

Type of change

Checklist:

Issue Resolution

jubeira commented 1 month ago

Thanks @johngrantuk!

I'm not against adding this, but I do see a few issues:

If you think it's still worth it to have it without any sort of common base interface we can proceed like this anyways. Thoughts? @danielmkm

danielmkm commented 1 month ago

I did a bit of a refactor here.

johngrantuk commented 1 month ago

I did a bit of a refactor here.

* Changed the functions to return structs

* Renamed the functions to have unique namespaces

* Moved both dynamic and immutable function to the pool contract level

Thanks for this. It works for me 🙏

jubeira commented 1 month ago

This should be ready for one last review before :ship:

openzeppelin-code[bot] commented 1 month ago

Add example immutable/mutable getters.

Generated at commit: 3094a9f5ebac5e9c5d9c493248b068861f03d31c

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
11
37
52
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector