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

refactor: remove fallback functions #25

Closed
wants to merge 2 commits into from
Closed

refactor: remove fallback functions #25

wants to merge 2 commits into from

Conversation

Tranquil-Flow
Copy link
Collaborator

Continuation of #17.

@Tranquil-Flow Tranquil-Flow requested a review from cucupac March 22, 2024 03:06
@0xernesto 0xernesto changed the title Remove fallback() refactor: remove fallback() in retrospect Mar 22, 2024
@0xernesto 0xernesto changed the title refactor: remove fallback() in retrospect refactor: remove fallback functions Mar 22, 2024
@cucupac cucupac self-requested a review March 22, 2024 03:15
cucupac added 2 commits March 24, 2024 13:30
Remove Floating Pragmas

Will likely be picked up in audits as SWC-103 https://swcregistry.io/docs/SWC-103/

Remove unnecessary declaration of abicoder v2

As per Solidity 0.8.0, ABI coder v2 is activated by default and as such it does not need to be specified in the code. Disregard this commit if wanting to be explicit in using ABI coder v2  instead of experimental ABIEncoderV2 or abicoder V1.

Remove unnecessary fallback() functions

In `FeeCollector.sol`, `PositionFactory.sol` and `AdminService.sol`, both a fallback() and receive() function are specified. No code is executed in these contracts upon receiving ether, therefore, fallback() can be omitted as it is redundant.

refactor: remove fallback()

ci: forge fmt
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.

2 participants