-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feat : ExitFee Settings moved to contract! #42
Conversation
- add variable to store exitfee - added event to emit on seet of exit fee - added setExitFee function to set exit fee only for owner - update initialization to set exit fee on initialization of contract. - add respective unit test cases to validate multiple scenarios.
Do we want to update the logic to let the smart contract automatically handle the exit fee instead of using the backend service to calculate the amount? |
are we sure we want all that? The contracts have been audited. Might force us to re-audit. This was also the reason I added it in the backend service and not in the contract. |
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.
great work, looks good to me Sahil!
Another remark, maybe we want to change the base to 1000 (from a 100)? This way we can also set 0.1% and similar fee structures (often times used by contracts).
NOTE: We will also need to reach the fee on the gateway now as it is now dynamic.
Thank you @wsdt , sure, will also make changes on gateway as per the exitFee from contract! |
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.
Closing the PR with respective other separate for each task has been raised. |
Unit Test: Passing