diff --git a/foundry.toml b/foundry.toml index 3663ec5..319a8c7 100644 --- a/foundry.toml +++ b/foundry.toml @@ -12,7 +12,7 @@ fs_permissions = [ [rpc_endpoints] mainnet = "https://mainnet.infura.io/v3/${process.env.SEPOLIA_API_KEY}" -sepolia = "https://sepolia.drpc.org" +sepolia = "https://rpc.ankr.com/eth_sepolia" op_sepolia = "https://sepolia.optimism.io" op_mainnet = "https://mainnet.optimism.io" arbitrum = "https://arb1.arbitrum.io/rpc" diff --git a/src/tokens/GovernanceToken.sol b/src/tokens/GovernanceToken.sol index 24e4ac9..9d177ad 100644 --- a/src/tokens/GovernanceToken.sol +++ b/src/tokens/GovernanceToken.sol @@ -25,21 +25,11 @@ contract GovernanceToken is ERC20, ERC20Permit, ERC20Votes, ERC20Wrapper { } function depositFor(address account, uint256 amount) public override(ERC20Wrapper) returns (bool) /* onlyRole(MINTER_ROLE) */ { - SafeERC20.safeTransferFrom(underlying, account, address(this), amount); - _mint(account, amount); - return true; - } - - function depositForGov(address account, uint256 amount) public returns (bool) /* onlyRole(MINTER_ROLE) */ { - SafeERC20.safeTransferFrom(underlying, msg.sender, address(this), amount); - _mint(account, amount); - return true; + return super.depositFor(account, amount); } function withdrawTo(address account, uint256 amount) public override(ERC20Wrapper) returns (bool) /* onlyRole(MINTER_ROLE) */ { - _burn(account, amount); - SafeERC20.safeTransfer(underlying, account, amount); - return true; + return super.withdrawTo(account, amount); } function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes) {