Skip to content

Conversation

@lastperson
Copy link
Collaborator

Closes: #122 #123

mpetrunic
mpetrunic previously approved these changes Nov 3, 2025
uint256 private constant MULTIPLIER = 10000;
bytes32 private constant FEE_SETTER_ROLE = "FEE_SETTER_ROLE";

uint128 private assetsWithLent;
Copy link
Member

Choose a reason for hiding this comment

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

what exactly is this? 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Multiplier is the 100% representation. So 200 protocol fee rate will result in 200 / 10000 = 0.02 rate, which is 2%.
assetsWithLent is the amount that should be shared among all depositors. So it is Deposited + Fees - ProtocolFees. I've struggled with the naming, and now I realize it is still bad. Any suggestions? Perhaps virtualAssets.

Copy link
Member

Choose a reason for hiding this comment

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

or just comment explaining what it is 😂
virtualBalance?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed and added comment.

viatrix
viatrix previously approved these changes Nov 4, 2025
@lastperson lastperson dismissed stale reviews from viatrix and mpetrunic via c83257f November 5, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Isolated USDC pool with direct LP functionality

4 participants