Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers

This commit is contained in:
Amir Bandeali
2019-09-22 17:29:42 -07:00
parent 0bc4b50818
commit 7f1afb57b0
13 changed files with 213 additions and 332 deletions

View File

@@ -77,22 +77,12 @@ export class InsufficientBalanceError extends RevertError {
}
}
export class OnlyCallableByPoolOperatorError extends RevertError {
export class OnlyCallableByPoolOperatorOrMakerError extends RevertError {
constructor(senderAddress?: string, poolOperatorAddress?: string) {
super(
'OnlyCallableByPoolOperatorError',
'OnlyCallableByPoolOperatorError(address senderAddress, address poolOperatorAddress)',
{ senderAddress, poolOperatorAddress },
);
}
}
export class OnlyCallableByPoolOperatorOrMakerError extends RevertError {
constructor(senderAddress?: string, poolOperatorAddress?: string, makerAddress?: string) {
super(
'OnlyCallableByPoolOperatorOrMakerError',
'OnlyCallableByPoolOperatorOrMakerError(address senderAddress, address poolOperatorAddress, address makerAddress)',
{ senderAddress, poolOperatorAddress, makerAddress },
'OnlyCallableByPoolOperatorOrMakerError(address senderAddress, address poolOperatorAddress)',
{ senderAddress, poolOperatorAddress },
);
}
}
@@ -243,7 +233,6 @@ const types = [
MakerPoolAssignmentError,
MiscalculatedRewardsError,
OnlyCallableByExchangeError,
OnlyCallableByPoolOperatorError,
OnlyCallableByPoolOperatorOrMakerError,
OnlyCallableByStakingContractError,
OnlyCallableIfInCatastrophicFailureError,