Skip to content

Commit

Permalink
bring deposit handler and token back to the same as v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-sammy committed May 9, 2022
1 parent 55d3555 commit e36becd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/DepositHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ contract DepositHandler {
_lockedStatus = IS_NOT_LOCKED;
}

function execute(address callee, bytes calldata data)
external
noReenter
returns (bool success, bytes memory returnData)
{
function execute(address callee, bytes calldata data) external noReenter returns (bool success, bytes memory returnData) {
(success, returnData) = callee.call(data);
}

Expand Down
6 changes: 2 additions & 4 deletions src/MintableCappedERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

pragma solidity 0.8.9;

import { IERC20BurnFrom } from './interfaces/IERC20BurnFrom.sol';

import { ERC20 } from './ERC20.sol';
import { ERC20Permit } from './ERC20Permit.sol';
import { Ownable } from './Ownable.sol';

contract MintableCappedERC20 is ERC20, ERC20Permit, Ownable, IERC20BurnFrom {
contract MintableCappedERC20 is ERC20, ERC20Permit, Ownable {
uint256 public cap;

constructor(
Expand All @@ -28,7 +26,7 @@ contract MintableCappedERC20 is ERC20, ERC20Permit, Ownable, IERC20BurnFrom {
}

// TODO move burnFrom into a separate BurnableERC20 contract
function burnFrom(address account, uint256 amount) external onlyOwner {
function burnFrom(address account, uint256 amount) public onlyOwner {
_approve(account, owner, allowance[account][owner] - amount);
_burn(account, amount);
}
Expand Down
5 changes: 4 additions & 1 deletion waffle.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"outputDirectory": "./build",
"compilerOptions": {
"evmVersion": "london",
"debug": {
"revertStrings": "strip"
},
"optimizer": {
"enabled": true,
"runs": 10000
"runs": 200
}
}
}

0 comments on commit e36becd

Please sign in to comment.