Skip to content

Fees#65

Open
Evert0x wants to merge 5 commits intopie-dao:developmentfrom
Evert0x:fees
Open

Fees#65
Evert0x wants to merge 5 commits intopie-dao:developmentfrom
Evert0x:fees

Conversation

@Evert0x
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants