ERC20WrapperHarness.sol 821 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.19;
  3. import "../patched/token/ERC20/extensions/ERC20Wrapper.sol";
  4. contract ERC20WrapperHarness is ERC20Wrapper {
  5. constructor(IERC20 _underlying, string memory _name, string memory _symbol) ERC20(_name, _symbol) ERC20Wrapper(_underlying) {}
  6. function underlyingTotalSupply() public view returns (uint256) {
  7. return underlying().totalSupply();
  8. }
  9. function underlyingBalanceOf(address account) public view returns (uint256) {
  10. return underlying().balanceOf(account);
  11. }
  12. function underlyingAllowanceToThis(address account) public view returns (uint256) {
  13. return underlying().allowance(account, address(this));
  14. }
  15. function recover(address account) public returns (uint256) {
  16. return _recover(account);
  17. }
  18. }