Skip to content

Commit

Permalink
remove redundant mock
Browse files Browse the repository at this point in the history
  • Loading branch information
1kresh committed Jun 3, 2024
1 parent 092f1c1 commit a555845
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 99 deletions.
3 changes: 2 additions & 1 deletion examples/DelayedRepayCollateral.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

// WARNING: NOT FOR PRODUCTION USE
contract DelayedRepayCollateral is ERC20, Ownable, ICollateral {
using SafeERC20 for IERC20;

Expand Down Expand Up @@ -59,7 +60,7 @@ contract DelayedRepayCollateral is ERC20, Ownable, ICollateral {
mapping(address issuer => mapping(address recipient => uint256 amount)) public debt;

constructor(address asset_)
ERC20(string.concat("DefaultCollateral_", ERC20(asset_).name()), string.concat("DB_", ERC20(asset_).symbol()))
ERC20(string.concat("DelayedRepayCollateral_", ERC20(asset_).name()), string.concat("DRC_", ERC20(asset_).symbol()))
Ownable(msg.sender)
{
asset = asset_;
Expand Down
3 changes: 2 additions & 1 deletion examples/InstantRepayCollateral.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// WARNING: NOT FOR PRODUCTION USE
contract InstantRepayCollateral is ERC20, ICollateral {
using SafeERC20 for IERC20;

Expand Down Expand Up @@ -58,7 +59,7 @@ contract InstantRepayCollateral is ERC20, ICollateral {
mapping(address issuer => mapping(address recipient => uint256 amount)) public debt;

constructor(address asset_)
ERC20(string.concat("DefaultCollateral_", ERC20(asset_).name()), string.concat("DB_", ERC20(asset_).symbol()))
ERC20(string.concat("InstantRepayCollateral_", ERC20(asset_).name()), string.concat("IRC_", ERC20(asset_).symbol()))
{
asset = asset_;

Expand Down
97 changes: 0 additions & 97 deletions test/mocks/SimpleCollateral.sol

This file was deleted.

0 comments on commit a555845

Please sign in to comment.