Skip to content

Conversation

Maikol
Copy link
Member

@Maikol Maikol commented Jan 28, 2025

No description provided.

Copy link

openzeppelin-code bot commented Jan 28, 2025

chore: reduce contract sizes to fit 24kb HorizonStaking and SubgraphService

Generated at commit: 859debf4f691dec6abd5811a11e32094beed8fd9

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
15
39
60
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

mapping(address allocationId => Allocation.State allocation) internal allocations;

/// @notice Legacy allocation details
mapping(address allocationId => LegacyAllocation.State allocation) public legacyAllocations;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this internal as well for consistency? (there is a getter)


/// @notice Maximum amount of time, in seconds, allowed between presenting POIs to qualify for indexing rewards
uint256 public maxPOIStaleness;
uint256 internal maxPOIStaleness;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be made public if we make legacyAllocations internal? Also i dont think this value is accesible otherwise no?

@tmigone tmigone merged commit 11a993b into horizon Feb 6, 2025
2 of 5 checks passed
@tmigone tmigone deleted the mde/reduce-contract-sizes branch February 6, 2025 20:40
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.

2 participants