-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix refund calculation bug in BetaProgramInitiator #228
Conversation
Wait for it....
With 1/2, refundable and non-refundable parts of the fees are the same, which leads to false negatives in tests.
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.
Nice work - 🎸
function feeDeduction(uint256 pending, uint256 duration) public pure returns (uint256) { | ||
return (pending * 1 days) / duration; | ||
function feeDeduction(uint256 pending, uint256) public pure returns (uint256) { | ||
return pending; |
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.
Should we file a follow-up issue for a post-beta update to this value i.e. to actually allow refunds.
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.
opened #229
Type of PR:
Required reviews:
What this does:
Issues fixed/closed:
Why it's needed:
Notes for reviewers: