Skip to content
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

Fees #65

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open

Fees #65

wants to merge 5 commits into from

Conversation

Evert0x
Copy link
Contributor

@Evert0x Evert0x commented Oct 31, 2020

Implement exit fee with percentage for FeeRecipient

Comment on lines +17 to +18
uint256 exitFeeRecipientShare;
uint256 exitFee;
Copy link
Member

Choose a reason for hiding this comment

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

Can you verify this does not cause any storage corruption issues when upgrading existing contracts to this? @Evert0x

});
describe("Exit fee", async () => {
it("Setting the exit fee should work", async () => {
const tenPercent = constants.One.mul(10).pow(17) // 10%
Copy link
Member

Choose a reason for hiding this comment

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

parseEther("0.1"); might be easier to understand. But its not really an issue.

Comment on lines 267 to 268
const fee = constants.One.mul(10).pow(16).mul(4); // 4%
const hundrerdPercent = constants.One.mul(10).pow(18) // 100%
Copy link
Member

Choose a reason for hiding this comment

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

parseEther()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants