-
Notifications
You must be signed in to change notification settings - Fork 0
Isolated public pool + ERC4626 Adapter. #127
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
base: main
Are you sure you want to change the base?
Conversation
contracts/PublicLiquidityPool.sol
Outdated
| uint256 private constant MULTIPLIER = 10000; | ||
| bytes32 private constant FEE_SETTER_ROLE = "FEE_SETTER_ROLE"; | ||
|
|
||
| uint128 private assetsWithLent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly is this? 😅
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed and added comment.
Closes: #122 #123