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

contracts: update based on audit review suggestions #15

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

bendanzhentan
Copy link
Contributor

@bendanzhentan bendanzhentan commented Dec 1, 2023

Updates:

  • contracts: limit range of _delegationFee for setDelegationFee

    In order to avoid mis-configuring setDelegationFee, we add a guard for lower and upper limit for delegationFee

  • contracts: remove useless receive() and fallback()

  • contracts: replace transferFrom to SafeERC20.safeTransferFrom

    SafeERC20.safeTransferFrom helps maintain full compliance with the ERC20 standard, which not all tokens may adhere to completely.

@bendanzhentan bendanzhentan marked this pull request as ready for review December 1, 2023 04:18
@bendanzhentan bendanzhentan changed the base branch from main to develop December 1, 2023 04:18
@bendanzhentan bendanzhentan force-pushed the develop branch 2 times, most recently from 36c2a78 to e31ae56 Compare December 6, 2023 02:54
Copy link

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

@bendanzhentan bendanzhentan merged commit a82cdc7 into develop Dec 8, 2023
2 checks passed
@bendanzhentan bendanzhentan deleted the audit.1 branch December 8, 2023 03:31
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.

3 participants