Skip to content

Commit

Permalink
fix(protocol): Wrong calculation when minting ERC20 tokens (#13250)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscriptcoder authored Mar 3, 2023
1 parent de8a9b2 commit 5920b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protocol/contracts/test/erc20/FreeMintERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ contract FreeMintERC20 is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}

function mint(address to) public {
_mint(to, 5 ** decimals());
_mint(to, 5 * (10 ** decimals()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract MayFailFreeMintERC20 is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}

function mint(address to) public {
_mint(to, 5 ** decimals());
_mint(to, 5 * (10 ** decimals()));
}

function transfer(
Expand Down

0 comments on commit 5920b7e

Please sign in to comment.