Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove feeManager
Browse files Browse the repository at this point in the history
sogipec committed Apr 3, 2024
1 parent 1d33954 commit 43af36d
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions contracts/coupons/AaveTokenWrapper.sol
Original file line number Diff line number Diff line change
@@ -19,14 +19,11 @@ contract AaveTokenWrapper is UUPSHelper, ERC20Upgradeable {
// could be put as immutable in non upgradeable contract
address public token;
address public distributor;
address public feeManager;

mapping(address => uint256) public isMasterClaimer;
mapping(address => address) public delegateReceiver;
mapping(address => uint256) public permissionlessClaim;

error NotGovernor();
error ZeroAddress();
error InvalidClaim();

// =================================== EVENTS ==================================
@@ -43,21 +40,15 @@ contract AaveTokenWrapper is UUPSHelper, ERC20Upgradeable {

// ================================= FUNCTIONS =================================

function initialize(
address underlyingToken,
address _distributor,
address _feeManager,
address _core
) public initializer {
function initialize(address underlyingToken, address _distributor, address _core) public initializer {
// TODO could fetch name and symbol based on real token
__ERC20_init("AaveTokenWrapper", "ATW");
__UUPSUpgradeable_init();
if (underlyingToken == address(0) || _distributor == address(0) || _feeManager == address(0))
revert ZeroAddress();
if (underlyingToken == address(0) || _distributor == address(0)) revert ZeroAddress();
ICore(_core).isGovernor(msg.sender);
token = underlyingToken;
feeManager = _feeManager;
distributor = _distributor;
ICore(_core).isGovernor(msg.sender);

core = ICore(_core);
}

0 comments on commit 43af36d

Please sign in to comment.