From b656fb5624f7225836fe6dfd6276c13d1c527836 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 25 Aug 2024 21:35:34 +0200 Subject: [PATCH 1/2] Adds interface IMultiplier.sol --- src/interfaces/IMultiplier.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/interfaces/IMultiplier.sol diff --git a/src/interfaces/IMultiplier.sol b/src/interfaces/IMultiplier.sol new file mode 100644 index 0000000..982d8cf --- /dev/null +++ b/src/interfaces/IMultiplier.sol @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +interface IMultiplier { + // Function to get the multiplying factor for a specific address + function getMultiplyingFactor(address user) external view returns (uint256); + + // Function to get the validity period for a specific address + function validUntil(address user) external view returns (uint256); +} \ No newline at end of file From 15b14587726fcab335a591fffb4f09132f96e158 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 14 Sep 2024 08:29:29 -0700 Subject: [PATCH 2/2] Updated documentation according to NatSpec format --- src/interfaces/IMultiplier.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/IMultiplier.sol b/src/interfaces/IMultiplier.sol index 982d8cf..117f10b 100644 --- a/src/interfaces/IMultiplier.sol +++ b/src/interfaces/IMultiplier.sol @@ -2,9 +2,9 @@ pragma solidity ^0.8.0; interface IMultiplier { - // Function to get the multiplying factor for a specific address + /// @notice Returns the voting multiplier for `user`. function getMultiplyingFactor(address user) external view returns (uint256); - // Function to get the validity period for a specific address + /// @notice Returns the validity period of the multiplier for `user`. function validUntil(address user) external view returns (uint256); -} \ No newline at end of file +}