-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix(MToken): handle allowance in burn #190
Conversation
LCOV of commit
|
src/MToken.sol
Outdated
@@ -78,6 +79,17 @@ contract MToken is IMToken, ContinuousIndexing, ERC20Extended { | |||
|
|||
/// @inheritdoc IMToken | |||
function burn(address account_, uint256 amount_) external onlyPortal { | |||
uint256 spenderAllowance_ = allowance[account_][msg.sender]; |
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.
uint256 spenderAllowance_ = allowance[account_][msg.sender]; | |
uint256 portalAllowance_ = allowance[account_][portal]; |
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.
Fixed in this commit: ed31631
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
No description provided.