Skip to content

fix: Reorder functions#864

Merged
DhairyaSethi merged 1 commit intodevfrom
fix/style-reorder-layout
Oct 6, 2025
Merged

fix: Reorder functions#864
DhairyaSethi merged 1 commit intodevfrom
fix/style-reorder-layout

Conversation

@miguelmtzinf
Copy link
Member

  • Functions are grouped by category (asset, spoke, user) and target user (DAO, user).
  • Getters of constants/immutable variables are places at the bottom.
  • Reorder of functions based on Solidity style guidelines.

Changes:

  • _isPositionManager internal function modifier changed from private to internal.
  • A handful of getter functions were removed from IHub, because they were part of IHubBase already (dup).
Comment on lines +333 to +339
/// @return The current drawn index of the asset.
function getAssetDrawnIndex(uint256 assetId) external view returns (uint256);

/// @notice Returns the current drawn rate for the specified asset.
/// @param assetId The identifier of the asset.
/// @return The current drawn rate of the asset.
function getAssetDrawnRate(uint256 assetId) external view returns (uint256);
Copy link
Member

Choose a reason for hiding this comment

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

these don't return the 'current' but rather last stored index and rate. let's correct the natspec or impl (since last stored values are given by getAsset())

@DhairyaSethi DhairyaSethi merged commit 9f175e5 into dev Oct 6, 2025
3 checks passed
@DhairyaSethi DhairyaSethi deleted the fix/style-reorder-layout branch October 6, 2025 05:45
miguelmtzinf added a commit that referenced this pull request Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants