Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 2 additions & 12 deletions src/tokens/GovernanceToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down