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

Feat add erc20 wrapping delegate #509

Open
wants to merge 28 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
53f90b4
Feat add erc20 wrapping delegate
coolnft Dec 13, 2022
ed65271
add infinite approval
coolnft Dec 13, 2022
53969e5
prettier issue fixed.
coolnft Dec 14, 2022
1cbab65
update CErc20Wrapping implementation
coolnft Dec 15, 2022
8904e21
prettier issue fixed.
coolnft Dec 15, 2022
5d4a332
variable order updated.
coolnft Dec 15, 2022
50e4bd6
prettier issue fixed.
coolnft Dec 15, 2022
7fac66b
fuse fee distributor variable naming changes
coolnft Dec 16, 2022
961fdb6
prettier issues fixed.
coolnft Dec 16, 2022
e41001a
naming changes
coolnft Dec 16, 2022
4a43e3b
naming changes
coolnft Dec 16, 2022
7e301e8
prettier issue fixed.
coolnft Dec 16, 2022
603f3e4
Merge branch 'development' of github.com:Midas-Protocol/contracts int…
coolnft Dec 19, 2022
d5d054c
MidasERC20wrapper added.
coolnft Dec 19, 2022
37023e9
update minor issue
coolnft Dec 20, 2022
a6c70b1
prettier issue fixed.
coolnft Dec 20, 2022
b8b2beb
erc20 wrapping delegate updated.
coolnft Dec 20, 2022
0f2ad93
Merge branch 'development' into feat/add-erc20wrappingdelegator
vminkov Jan 3, 2023
86ae4ac
refactoring the wrapping delegate
vminkov Jan 4, 2023
fd909fe
prettier
vminkov Jan 4, 2023
e944509
Merge branch 'development' into feat/add-erc20wrappingdelegator
vminkov Jan 12, 2023
00be68a
Merge branch 'development' into feat/add-erc20wrappingdelegator
vminkov Jan 18, 2023
aef7fec
Merge branch 'development' into feat/add-erc20wrappingdelegator
vminkov Jan 24, 2023
f7047fe
recover accidentally sent tokens
vminkov Jan 24, 2023
cc36dec
end to end testing for the wrapping delegate
vminkov Jan 24, 2023
3a1394e
prettier
vminkov Jan 24, 2023
7381113
wrapper underlying - market not listed when deployed
vminkov Jan 25, 2023
f9c7c71
Merge branch 'development' into feat/add-erc20wrappingdelegator
vminkov Jan 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions contracts/midas/MidasERC20Wrapper.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;

import { ERC20Wrapper } from "openzeppelin-contracts/token/ERC20/extensions/ERC20Wrapper.sol";
import { IERC20 } from "openzeppelin-contracts/token/ERC20/IERC20.sol";

contract MidasERC20Wrapper is ERC20Wrapper {

address private owner;

constructor(IERC20 underlyingToken) ERC20Wrapper(underlyingToken) {
owner = msg.sender;
}

function recover() public returns (uint256) {
return _recover(msg.sender);
}
}