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

[P2-M02] Make inequality consistent #1386

Merged
merged 2 commits into from
May 7, 2020
Merged

Conversation

mrice32
Copy link
Member

@mrice32 mrice32 commented May 7, 2020

I know there are other ways that requests can be unwithdrawable, but I think it's still reasonable to make this inequality consistent.

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
@mrice32 mrice32 marked this pull request as ready for review May 7, 2020 20:19
@mrice32 mrice32 requested a review from nicholaspai May 7, 2020 20:19
@mrice32 mrice32 added the audit-fix-phase2 Fixes for Phase 2 (EMP) of the OZ audit label May 7, 2020
@@ -320,7 +320,7 @@ contract PricelessPositionManager is FeePayer, AdministrateeInterface {

// Make sure the proposed expiration of this request is not post-expiry.
uint256 requestPassTime = getCurrentTime().add(withdrawalLiveness);
require(requestPassTime <= expirationTimestamp, "Request expires post-expiry");
require(requestPassTime < expirationTimestamp, "Request expires post-expiry");
Copy link
Member

Choose a reason for hiding this comment

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

You should make the same change in requestTransfer

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
@mrice32 mrice32 merged commit 0fb9221 into UMAprotocol:master May 7, 2020
@mrice32 mrice32 deleted the post_expiry branch May 7, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit-fix-phase2 Fixes for Phase 2 (EMP) of the OZ audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants