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

Feat: remove relayer and fee #16

Merged
merged 6 commits into from
Feb 21, 2023
Merged

Feat: remove relayer and fee #16

merged 6 commits into from
Feb 21, 2023

Conversation

mrLSD
Copy link
Collaborator

@mrLSD mrLSD commented Feb 10, 2023

Description

As not used and redundant logic, should be removed: fee and relayer. It's more important for deposit flow.

Audit report relations

  • Related to AUR-03 - relater_id field issue
  • Related to AUR-33 - fee calculation issue

How to review

Pay attention to deposit method.

Gas cost

Not change.

Tests

Fixed and refactored all tests related to fee and relayer logic.

Added special feature for long-time tests (drastically decreased testing time for development)

@mrLSD mrLSD added the enhancement New feature or request label Feb 10, 2023
@mrLSD mrLSD self-assigned this Feb 10, 2023
@mrLSD mrLSD added this to the v0.4.0 milestone Feb 10, 2023
@mrLSD mrLSD changed the title Fear: remove relayer and fee Feat: remove relayer and fee Feb 10, 2023
Copy link
Contributor

@birchmd birchmd left a 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.

@mrLSD
Copy link
Collaborator Author

mrLSD commented Feb 11, 2023

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).

@birchmd the reason is only one, the contract has 0 balance and for that, we should deposit (or transfer) some funds to the contract.

Copy link
Contributor

@birchmd birchmd left a 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.

Copy link
Collaborator

@aleksuss aleksuss left a 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.

.env/mainnet.env Outdated Show resolved Hide resolved
Makefile.toml Outdated Show resolved Hide resolved
@mrLSD mrLSD merged commit 7f31306 into master Feb 21, 2023
@mrLSD mrLSD deleted the feat/remove-relayer-and-fee branch February 21, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants