Skip to content

Removed ERROR_COMMITMENT_WITHIN_UNBONDING_PERIOD#8

Open
chrishobcroft wants to merge 1 commit into
masterfrom
removed-commitment-within-unbonding-period-error
Open

Removed ERROR_COMMITMENT_WITHIN_UNBONDING_PERIOD#8
chrishobcroft wants to merge 1 commit into
masterfrom
removed-commitment-within-unbonding-period-error

Conversation

@chrishobcroft
Copy link
Copy Markdown
Collaborator

Removed the check of whether the buyer was committing to buy within the calculated UnbondingPeriodLength (calculated as unbondingRounds * roundLength).

This was excessively constraining, e.g. if a buyer commits 2000 blocks (~7.5 hours) before the end of round N, and the deliveredByBlock was 2000 blocks into round N+U-1 (-1 because if you unbond in the current round, then this round counts towards the unbonding period), then this constraint would have prohibited the order from being committed to, even though it would have been fine.

So, while this solution was unnecessarily restrictive, I have proposed some ideas for a more elegant solution in this research issue.

Removed the check of whether the buyer was committing to buy within the calculated `UnbondingPeriodLength` (calculated as unbondingRounds * roundLength).

This was excessively constraining, e.g. if a buyer commits 2000 blocks (~7.5 hours) before the end of round N, and the `deliveredByBlock` was 2000 blocks into round N+U-1, then this constraint would have prohibited the order from being committed to.
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