Protocol fee amount is not enforced by staking contract

This commit is contained in:
Greg Hysen 2019-10-22 11:25:19 -07:00
parent 22e39f782f
commit 9ac715f99d
2 changed files with 2 additions and 10 deletions

View File

@ -161,15 +161,8 @@ contract MixinExchangeFees is
private
view
{
if (protocolFeePaid == 0) {
LibRichErrors.rrevert(
LibStakingRichErrors.InvalidProtocolFeePaymentError(
LibStakingRichErrors.ProtocolFeePaymentErrorCodes.ZeroProtocolFeePaid,
protocolFeePaid,
msg.value
)
);
}
// The protocol fee must equal the value passed to the contract; unless
// the value is zero, in which case the fee is taken in WETH.
if (msg.value != protocolFeePaid && msg.value != 0) {
LibRichErrors.rrevert(
LibStakingRichErrors.InvalidProtocolFeePaymentError(

View File

@ -30,7 +30,6 @@ library LibStakingRichErrors {
}
enum ProtocolFeePaymentErrorCodes {
ZeroProtocolFeePaid,
MismatchedFeeAndPayment
}