-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: Reject bid after delete should collect larger penalty #92
Conversation
Pull Request Test Coverage Report for Build 3092993819
💛 - Coveralls |
@gravenp As I've gone through the test cases, I think there is a different way to do this. Instead of having the payer pay more than the penalty, we could just no longer allow rejecting a bid if the payer deletes their flow. The bid period would immediately end and anyone can trigger a transfer. So deleting your flow while there is a bid outstanding is the same as accepting the bid. Once it is deleted though, the depleting amount is taken from the for sale price the payer would receive. Thoughts? |
If you're able to treat flow deletion effectively the same as a bid rejection window passing, that would simplify the accounting perspective for sure. Would we need to update the logic for the From a user perspective, I don't think it's unfair/unexpected that you'd lose your right to reject a bid if your stream is stopped. |
Yes, I think that logic would need to be updated.
Are you talking about Geo-Web-Project/cadastre#242? They could be prompted to trigger a transfer if their stream is closed which will immediately stop the bleeding of their for sale price. Another case here is if the user deletes their flow and then reopens it. I think we should still not allow them to reject if they reopen. There could be some vulnerabilities here where they can take funds from the bidder. |
Yeah that ticket wouldn't fully apply anymore, so I'd modify it to add the appropriate text on the screen with the Transfer Parcel button rather than the screen with the Accept +(disabled) Reject buttons. As for reopening the stream, agreed. Once a stream has been cancelled, the ship has sailed. The user has forfeited their right to keep the parcel uninterrupted. |
Description
Fixes #91
Checklist:
main
or appropriate feature branchmain
or appropriate feature branch