Skip to content

Commit

Permalink
Added comments to VestingWallets
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanco committed Aug 29, 2024
1 parent 34508ff commit ed4f2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/L1/paused/L1VestingWalletPaused.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { L2VestingWalletPaused } from "src/L2/paused/L2VestingWalletPaused.sol";

/// @title L1VestingWalletPaused - Paused version of L1VestingWallet contract
/// @notice This contract is used to pause the L1VestingWallet contract. In case of any emergency, the owner can upgrade
/// and
/// pause the contract to prevent any further vesting operations.
/// and pause the contract to prevent any further vesting operations.
/// L1VestingWalletPaused shares the same functionality of L1VestingWalletPaused.
contract L1VestingWalletPaused is L2VestingWalletPaused {
function custodianAddress() public pure virtual override returns (address) {
// Address of Security Council on L1
return 0xD2D7535e099F26EbfbA26d96bD1a661d3531d0e9;
}
}
5 changes: 4 additions & 1 deletion src/L2/paused/L2VestingWalletPaused.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.s
import { L2VestingWallet } from "src/L2/L2VestingWallet.sol";

/// @title L2VestingWalletPaused - Paused version of L2VestingWallet contract
/// @notice This contract is used to pause the L2VestingWallet contract. In case of any emergency, the owner can upgrade
/// @notice This contract is used to pause the L2VestingWallet contract. In case of any emergency, the contract admin
/// can upgrade
/// and pause the contract to prevent any further vesting operations.
/// Contract admin can also withdraw all tokens to the Security Council wallet.
contract L2VestingWalletPaused is L2VestingWallet {
using SafeERC20 for IERC20;

Expand All @@ -20,6 +22,7 @@ contract L2VestingWalletPaused is L2VestingWallet {

/// @notice Hard-coded address to recover tokens.
function custodianAddress() public pure virtual returns (address) {
// Address of Security Council on L2
return 0x394Ae9d48eeca1C69a989B5A8C787081595c55A7;
}

Expand Down

0 comments on commit ed4f2ca

Please sign in to comment.