@0x/order-utils
: Add PreviousEpochNotFinalizedError
to StakingRevertErrors
.
This commit is contained in:
parent
a1aad2e55e
commit
ada1de429c
@ -97,6 +97,10 @@
|
||||
{
|
||||
"note": "Add `CumulativeRewardIntervalError`.",
|
||||
"pr": 2154
|
||||
},
|
||||
{
|
||||
"note": "Add `PreviousEpochNotFinalizedError` to `StakingRevertErrors`.",
|
||||
"pr": 2155
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -254,9 +254,23 @@ export class CumulativeRewardIntervalError extends RevertError {
|
||||
}
|
||||
}
|
||||
|
||||
export class PreviousEpochNotFinalizedError extends RevertError {
|
||||
constructor(
|
||||
closingEpoch?: BigNumber | number | string,
|
||||
unfinalizedPoolsRemaining?: BigNumber | number | string,
|
||||
) {
|
||||
super(
|
||||
'PreviousEpochNotFinalizedError',
|
||||
'PreviousEpochNotFinalizedError(uint256 closingEpoch, uint256 unfinalizedPoolsRemaining)',
|
||||
{ closingEpoch, unfinalizedPoolsRemaining },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const types = [
|
||||
AmountExceedsBalanceOfPoolError,
|
||||
BlockTimestampTooLowError,
|
||||
CumulativeRewardIntervalError,
|
||||
EthVaultNotSetError,
|
||||
ExchangeAddressAlreadyRegisteredError,
|
||||
ExchangeAddressNotRegisteredError,
|
||||
@ -275,10 +289,10 @@ const types = [
|
||||
OnlyCallableIfNotInCatastrophicFailureError,
|
||||
OperatorShareError,
|
||||
PoolExistenceError,
|
||||
PreviousEpochNotFinalizedError,
|
||||
ProxyDestinationCannotBeNilError,
|
||||
RewardVaultNotSetError,
|
||||
WithdrawAmountExceedsMemberBalanceError,
|
||||
ProxyDestinationCannotBeNilError,
|
||||
CumulativeRewardIntervalError,
|
||||
];
|
||||
|
||||
// Register the types we've defined.
|
||||
|
Loading…
x
Reference in New Issue
Block a user