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

v3 audit2 #68

Merged
merged 1 commit into from
Sep 30, 2024
Merged

v3 audit2 #68

merged 1 commit into from
Sep 30, 2024

Conversation

0xNe0x1
Copy link
Contributor

@0xNe0x1 0xNe0x1 commented Sep 30, 2024

No description provided.


<a name="m01"></a>

## M01 - ProtocolAmount is not enforced, allowing users to bypass protocol fees
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the context of payment validation, the protocolAmount (fee) is intended to be enforced during post-payment validation. It is not necessary to enforce this fee at the smart contract level, as the design allows for flexibility in handling payments with or without a protocolAmount (fee). This approach is intentional, ensuring that payments can be processed even when no protocol fee is required.


<a name="i01"></a>

## I01 - Inconsistent time units used for deadlines (milliseconds vs seconds)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The use of deadline in milliseconds is explicitly documented both in the source code and accompanying documentation. The requirement for deadline in milliseconds serves a specific purpose: it allows for the creation of a more unique index that includes the payment sender (from), payment receiver (to), and the deadline. This ensures that payments made within the same second are distinguishable, providing a unique index for validation and preventing duplicate payments in time-sensitive scenarios.

@0xNe0x1 0xNe0x1 merged commit 881f6bd into v3 Sep 30, 2024
8 of 9 checks passed
@0xNe0x1 0xNe0x1 deleted the v3-audit-2 branch September 30, 2024 08:12
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.

1 participant