@0x/order-utils
: Add PreviousEpochNotFinalizedError
to StakingRevertErrors
.
This commit is contained in:
parent
a1aad2e55e
commit
ada1de429c
@ -97,6 +97,10 @@
|
|||||||
{
|
{
|
||||||
"note": "Add `CumulativeRewardIntervalError`.",
|
"note": "Add `CumulativeRewardIntervalError`.",
|
||||||
"pr": 2154
|
"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 = [
|
const types = [
|
||||||
AmountExceedsBalanceOfPoolError,
|
AmountExceedsBalanceOfPoolError,
|
||||||
BlockTimestampTooLowError,
|
BlockTimestampTooLowError,
|
||||||
|
CumulativeRewardIntervalError,
|
||||||
EthVaultNotSetError,
|
EthVaultNotSetError,
|
||||||
ExchangeAddressAlreadyRegisteredError,
|
ExchangeAddressAlreadyRegisteredError,
|
||||||
ExchangeAddressNotRegisteredError,
|
ExchangeAddressNotRegisteredError,
|
||||||
@ -275,10 +289,10 @@ const types = [
|
|||||||
OnlyCallableIfNotInCatastrophicFailureError,
|
OnlyCallableIfNotInCatastrophicFailureError,
|
||||||
OperatorShareError,
|
OperatorShareError,
|
||||||
PoolExistenceError,
|
PoolExistenceError,
|
||||||
|
PreviousEpochNotFinalizedError,
|
||||||
|
ProxyDestinationCannotBeNilError,
|
||||||
RewardVaultNotSetError,
|
RewardVaultNotSetError,
|
||||||
WithdrawAmountExceedsMemberBalanceError,
|
WithdrawAmountExceedsMemberBalanceError,
|
||||||
ProxyDestinationCannotBeNilError,
|
|
||||||
CumulativeRewardIntervalError,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// Register the types we've defined.
|
// Register the types we've defined.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user