Skip to content
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

СStETH: discard OpenZeppelin ERC-20 burnable #195

Merged
merged 2 commits into from
Nov 26, 2020

Conversation

ongrid
Copy link
Contributor

@ongrid ongrid commented Nov 26, 2020

The burn(uint256 amount) and burnFrom(address account, uint256 amount) public functions both inherited from openzeppelin ERC20Burnable library should be removed since they have no use-case for users to discard their own tokens. These actions lead to monetary loss of stETH tokens locked on the wrapper. After introducing the special functions wrap and unwrap, conventional burns became rudimentary.
closes #192

The burn(uint256 amount) and burnFrom(address account, uint256 amount) public functions
both inherited from openzeppelin ERC20Burnable library should be removed since they have
no use-case for users to discard their own tokens. After introducing the special functions
`wrap` and `unwrap`, `burn(uint256 amount)` and `burnFrom(address account, uint256 amount)`
became rudimentary.

closes #192
Additional asserts CStETH has no burn and burnFrom methods anymore.
@ongrid ongrid self-assigned this Nov 26, 2020
@ongrid ongrid added the bug Something isn't working label Nov 26, 2020
@ongrid ongrid added this to the RC2 milestone Nov 26, 2020
@ongrid ongrid changed the title 192 Сsteth discard OpenZeppelin ERC-20 burnable Сsteth discard OpenZeppelin ERC-20 burnable Nov 26, 2020
@ongrid ongrid changed the title Сsteth discard OpenZeppelin ERC-20 burnable СStETH: discard OpenZeppelin ERC-20 burnable Nov 26, 2020
@ongrid ongrid merged commit 4f87d6b into master Nov 26, 2020
@ongrid ongrid deleted the 192-csteth-discard-oz-burnable branch November 26, 2020 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the public burn functionality from CStETH token
3 participants