-
Notifications
You must be signed in to change notification settings - Fork 3
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
Small chores #14
Small chores #14
Conversation
restFee is already a uint256 so Solidity will revert in case we try to set a negative number to it.
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.
lgtm!
@PawelTroka sorry, I've pushed a couple of more changes, ptal |
Aligns with `calculateDepositFees`
@@ -30,6 +30,10 @@ jobs: | |||
forge build --sizes --via-ir | |||
id: build | |||
|
|||
- name: Check formatting |
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.
good thinking!
/// @return recipients The addresses of the fee recipients. | ||
/// @return feesDenominatedInPoolTokens The amount of fees each recipient should receive. | ||
function calculateRedemptionFee(address tco2, address pool, uint256 depositAmount) | ||
function calculateRedemptionFees(address tco2, address pool, uint256 redemptionAmount) |
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.
cool, I also wanted to change that :)
} catch Error(string memory reason) { | ||
assertEq("Fee must be greater than 0", reason); | ||
} | ||
vm.expectRevert("Fee must be greater than 0"); |
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.
looks much better!
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.
good job here 👍
No description provided.