-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Penalty is now burned on revert stake and redeem instead of progress … #668
Penalty is now burned on revert stake and redeem instead of progress … #668
Conversation
…Revert also penalty is not returned on progress with proof
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -660,6 +614,10 @@ contract EIP20CoGateway is GatewayBase { | |||
redeemerNonce_ = message.nonce; | |||
amount_ = redeems[_messageHash].amount; | |||
|
|||
|
|||
// Burn penalty amount. Reentrancy is protected by message bus states. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 great to have put the comment on reentrancy consideration
`CoGateway's token balance ${eip20CoGatewayFinalBalance.toString( | ||
10, | ||
)} must be equal to ${eip20CoGatewayBalance.toString(10)}.`, | ||
`CoGateway's token balance ${eip20CoGatewayBalance.toString(10)}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same param used here twice, seems incorrect; perhaps FinalBalance
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #662 partially
The penalty is not returned on progress with proof(stake and redeem) instead it is now burned on revert stake and revert redeem.