From 81f3e50a70bf1c4452b143513f2381097a21d61a Mon Sep 17 00:00:00 2001 From: QEDK <1994constant@gmail.com> Date: Mon, 7 Aug 2023 01:00:25 +0400 Subject: [PATCH] feat: update natspec --- src/Polygon.sol | 5 ++--- src/PolygonMigration.sol | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Polygon.sol b/src/Polygon.sol index 840765a..90dddc4 100644 --- a/src/Polygon.sol +++ b/src/Polygon.sol @@ -1,9 +1,8 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.20; +import {ERC20, ERC20Permit} from "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol"; import {IPolygon} from "./interfaces/IPolygon.sol"; -import {ERC20, ERC20Permit} from "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Votes.sol"; -import {Ownable2Step} from "openzeppelin-contracts/contracts/access/Ownable2Step.sol"; /// @title Polygon ERC20 token /// @author QEDK (https://polygon.technology) @@ -11,7 +10,7 @@ import {Ownable2Step} from "openzeppelin-contracts/contracts/access/Ownable2Step /// @dev The contract allows for a 1-to-1 representation between $POL and $MATIC and allows for additional inflation based /// on hub and treasury requirements /// @custom:security-contact security@polygon.technology -contract Polygon is Ownable2Step, ERC20Permit, IPolygon { +contract Polygon is ERC20Permit, IPolygon { address public immutable inflationManager; constructor(address migration_, address inflationManager_, address owner_) diff --git a/src/PolygonMigration.sol b/src/PolygonMigration.sol index 2ddd1b5..ba35911 100644 --- a/src/PolygonMigration.sol +++ b/src/PolygonMigration.sol @@ -76,8 +76,8 @@ contract PolygonMigration is Ownable2Step { releaseTimestamp = timestamp_; } - /// @notice Allows governance to lock the unmigration process - /// @dev The function does not do any validation since governance can unlock the unmigration process if required + /// @notice Allows governance to lock or unlock the unmigration process + /// @dev The function does not do any validation since governance can update the unmigration process if required /// @param unmigrationLock_ New unmigration lock status function updateUnmigrationLock(uint256 unmigrationLock_) external onlyOwner { unmigrationLock = unmigrationLock_;