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

dynamic OPC fees #480

Merged
merged 20 commits into from
Jan 27, 2022
Merged

dynamic OPC fees #480

merged 20 commits into from
Jan 27, 2022

Conversation

alexcos20
Copy link
Member

@alexcos20 alexcos20 commented Jan 25, 2022

Closes #476

Changes proposed in this PR:

  • Factory: allow OPF to set consumeFee & providerFee
  • Default values: consumeFee - 1% , providerFee - 0%
  • ERC20Template: query & use that cut for both

PS: need tests, but blocked right now because tests are not available

@alexcos20 alexcos20 added the Status: DoNotMerge Don't merge this PR label Jan 25, 2022
@alexcos20 alexcos20 added this to the V4 milestone Jan 25, 2022
@alexcos20 alexcos20 self-assigned this Jan 25, 2022
@trentmc
Copy link
Member

trentmc commented Jan 25, 2022

PS: need tests, but blocked right now because tests are not available

What's stopping writing tests?

@alexcos20
Copy link
Member Author

@lacoop6tu needs to rewrite all tests, seems that hardhat has a new issue now and everything related to forking is not working any more

Copy link
Member

@trentmc trentmc left a comment

Choose a reason for hiding this comment

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

At a glance, everything looks sane. I had a couple minor comments.

I will feel much more comfortable when we have tests for this.

contracts/interfaces/IFactoryRouter.sol Outdated Show resolved Hide resolved
@trentmc
Copy link
Member

trentmc commented Jan 25, 2022

@lacoop6tu needs to rewrite all tests, seems that hardhat has a new issue now and everything related to forking is not working any more

Is there a github issue for this?

@alexcos20
Copy link
Member Author

@lacoop6tu needs to rewrite all tests, seems that hardhat has a new issue now and everything related to forking is not working any more

Is there a github issue for this?

#478

@alexcos20 alexcos20 merged commit 45072b0 into v4main_postaudit Jan 27, 2022
@alexcos20 alexcos20 deleted the feature/dynamic_OPC_fees branch January 27, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: DoNotMerge Don't merge this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants