-
Notifications
You must be signed in to change notification settings - Fork 5
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: remove relayer and fee #16
Conversation
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.
The change to the contract itself looks good. The change to the tests I'm less sure about though. Seems like it is creating excess noise in the code to always to a transfer to the contract (which is now effectively taking the role of a fee). I think it would be cleaner to remove the transfer to the contract instead. In tests where two token holders are needed then I think it would be better to explicitly create a second user.
@birchmd the reason is only one, the contract has 0 balance and for that, we should deposit (or transfer) some funds to the contract. |
…or into feat/remove-relayer-and-fee
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! I like the tests much better now.
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.
Overall looks good with minor nitpicks.
Description
As not used and redundant logic, should be removed:
fee
andrelayer
. It's more important fordeposit
flow.Audit report relations
relater_id
field issuefee
calculation issueHow to review
Pay attention to
deposit
method.Gas cost
Not change.
Tests
Fixed and refactored all tests related to
fee
andrelayer
logic.Added special feature for long-time tests (drastically decreased testing time for development)