Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/hub/Hub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,35 @@ import {Premium} from 'src/hub/libraries/Premium.sol';
import {IBasicInterestRateStrategy} from 'src/hub/interfaces/IBasicInterestRateStrategy.sol';
import {IHubBase, IHub} from 'src/hub/interfaces/IHub.sol';

// @%%%%%%%%%%%%%%%%%%%%%%%%%%@

@yan-man yan-man Mar 17, 2026

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.

tbh i think too big, personally was thinking 20 lines ish (in height)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Uniswap's is also 40 lines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wow, this is way bigger than expected. I was thinking smt like 10 lines max tbh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you don't get anything in 10-20 range tbh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

to me size is fine but these need to be on the instance contracts (which are the entry points of the impl as mentioned before)

// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%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%@ @%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%
// %%%%%%%%%%%%% %%%%%%%%%%%%%%% %%%%%%%%%%%%%%% %%%%%%%%%%%%%
// %%%%%%%%%%%%% @%%%%%%%%%%% %%%%%%%%%%%@ %%%%%%%%%%%%%

Comment thread
DhairyaSethi marked this conversation as resolved.
/// @title Hub
/// @author Aave Labs
/// @notice A liquidity hub that manages assets and spokes.
Expand Down
29 changes: 29 additions & 0 deletions src/spoke/instances/SpokeInstance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ pragma solidity 0.8.28;

import {Spoke} from 'src/spoke/Spoke.sol';

// @%%%%%%%%%%%%%%%%%%%%%%%%%%@

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// @%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @4444444444444444444444444444444444444@

// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%%%%%%%%%%%%%%@% %@%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%%%%%%%%
// @%%%%%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%%%%
// @%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%
// @%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%
// @%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%@
// @%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%@
// %%%%%%%%%%%%%%% @%%%%%%%%%%% %%%%%%%%%%%@ %%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%@ %%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%% @%%%%%%%%%%%%%%
// %%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%
// %%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%
// %%%%%%%%%%%%%@ %%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%% @%%%%%%%%%%%%%
// @%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%@
// %%%%%%%%%%%%%@ %%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%% @%%%%%%%%%%%%%
// %%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%
// %%%%%%%%%%%%% %%%%%%%%%%%%%%%%%@ @%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%
// %%%%%%%%%%%%% %%%%%%%%%%%%%%% %%%%%%%%%%%%%%% %%%%%%%%%%%%%
// %%%%%%%%%%%%% @%%%%%%%%%%% %%%%%%%%%%%@ %%%%%%%%%%%%%

/// @title SpokeInstance
/// @author Aave Labs
/// @notice Implementation contract for the Spoke.
Expand Down
Loading