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

feat: remove is capped #15

Merged
merged 3 commits into from
May 8, 2024
Merged

feat: remove is capped #15

merged 3 commits into from
May 8, 2024

Conversation

stevenvaleri
Copy link
Contributor

@stevenvaleri stevenvaleri commented May 3, 2024

Remove isCapped so that caps can remain on an asset by asset level as long as desired without the whole system remaining "capped". to uncap an asset, set the cap to max uint256.

This would still work with the current implementation, we'd likely just not set isCapped to false for a very long time if ever. This is also a larger logic change than updating event params, so may be less open to merging.

And there is one less storage read, which is nice.

@stevenvaleri stevenvaleri requested a review from jparklev May 3, 2024 00:38
Copy link
Contributor

@jparklev jparklev left a comment

Choose a reason for hiding this comment

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

Following up from our chat earlier, might consider type(uint256).max, but otherwise LGTM!

@jparklev
Copy link
Contributor

jparklev commented May 7, 2024

Merge on!

@stevenvaleri stevenvaleri merged commit 3e72100 into main May 8, 2024
2 checks passed
@stevenvaleri stevenvaleri deleted the feat/remove-isCapped branch May 8, 2024 18: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