Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Remove assertion that protocol fee != zero #2278

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

hysz
Copy link
Contributor

@hysz hysz commented Oct 22, 2019

Description

It is the responsibility of the exchange - not the staking contract - to determine if the protocol fee paid is correct.

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

Copy link
Contributor

@dorothy-zbornak dorothy-zbornak left a comment

Choose a reason for hiding this comment

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

👀 👍

@@ -144,14 +144,13 @@ export class InvalidParamValueError extends RevertError {

export class InvalidProtocolFeePaymentError extends RevertError {
constructor(
errorCode?: ProtocolFeePaymentErrorCodes,
Copy link
Member

Choose a reason for hiding this comment

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

We can remove the ProtocolFeePaymentErrorCodes enum too right?

@hysz hysz force-pushed the fix/3.0/removeProtocolFeeZeroAssertion branch from e3bfbbe to c44e16a Compare October 22, 2019 19:42
@coveralls
Copy link

coveralls commented Oct 22, 2019

Coverage Status

Coverage remained the same at 75.286% when pulling c44e16a on fix/3.0/removeProtocolFeeZeroAssertion into 22e39f7 on cleanup/staking/finalizationDataStructures.

Copy link
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -29,11 +29,6 @@ library LibStakingRichErrors {
CanOnlyDecreaseOperatorShare
}

enum ProtocolFeePaymentErrorCodes {
Copy link
Contributor

Choose a reason for hiding this comment

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

🙏

@hysz hysz changed the base branch from cleanup/staking/finalizationDataStructures to 3.0 October 22, 2019 20:24
@hysz hysz merged commit 575af6b into 3.0 Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants