Skip to content

[public allocator] docs: forceDeallocatePenalty - #965

Closed
MathisGD wants to merge 2 commits into
mainfrom
MathisGD-patch-2
Closed

[public allocator] docs: forceDeallocatePenalty#965
MathisGD wants to merge 2 commits into
mainfrom
MathisGD-patch-2

Conversation

@MathisGD

Copy link
Copy Markdown
Collaborator

Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com>
@MathisGD
MathisGD requested a review from peyha August 11, 2026 13:04
@MathisGD MathisGD self-assigned this Aug 11, 2026
/// @dev The vault's allocators can manage the public allocators' settings.
/// @dev Each reallocate and allocateFromIdle call costs a penalty in native currency, set per vault by the allocators.
/// The penalty is accrued per vault and can be claimed by the vault's allocators.
/// @dev The vault's forceDeallocatePenalty is ignored by this contract.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

feel like this comment is not so clear
we could be more explicit with something like

Suggested change
/// @dev The vault's forceDeallocatePenalty is ignored by this contract.
/// @dev If the vault's forceDeallocatePenalty is high while the public allocator's penalty is low, it could be cheaper to deallocate via the public allocator

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't want to list all the specific scenarios but instead just point at the fact that this is ignored => it invalidates a bunch of issues and makes people think about what they need to care about wrt penalties. wdyt?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we should specify scenarios neither but the current version looks very blurry, I'm not sure people will grasp the implication on forcedeallocate

Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com>
@MathisGD MathisGD closed this Aug 12, 2026
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