Skip to content

Commit 0f36836

Browse files
committed
Make vars immutable
1 parent d65dd82 commit 0f36836

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

contracts/base/Staking1155Base.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { CurrencyTransferLib } from "../lib/CurrencyTransferLib.sol";
4646

4747
contract Staking1155Base is ContractMetadata, Multicall, Ownable, Staking1155, ERC165, IERC1155Receiver {
4848
/// @dev ERC20 Reward Token address. See {_mintRewards} below.
49-
address public rewardToken;
49+
address public immutable rewardToken;
5050

5151
/// @dev The address of the native token wrapper contract.
5252
address internal immutable nativeTokenWrapper;

contracts/base/Staking20Base.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { CurrencyTransferLib } from "../lib/CurrencyTransferLib.sol";
4545

4646
contract Staking20Base is ContractMetadata, Multicall, Ownable, Staking20 {
4747
/// @dev ERC20 Reward Token address. See {_mintRewards} below.
48-
address public rewardToken;
48+
address public immutable rewardToken;
4949

5050
/// @dev Total amount of reward tokens in the contract.
5151
uint256 private rewardTokenBalance;

contracts/base/Staking721Base.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { CurrencyTransferLib } from "../lib/CurrencyTransferLib.sol";
4646

4747
contract Staking721Base is ContractMetadata, Multicall, Ownable, Staking721, ERC165, IERC721Receiver {
4848
/// @dev ERC20 Reward Token address. See {_mintRewards} below.
49-
address public rewardToken;
49+
address public immutable rewardToken;
5050

5151
/// @dev The address of the native token wrapper contract.
5252
address public immutable nativeTokenWrapper;

contracts/extension/Staking1155.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract contract Staking1155 is ReentrancyGuard, IStaking1155 {
1515
//////////////////////////////////////////////////////////////*/
1616

1717
///@dev Address of ERC1155 contract -- staked tokens belong to this contract.
18-
address public stakingToken;
18+
address public immutable stakingToken;
1919

2020
/// @dev Flag to check direct transfers of staking tokens.
2121
uint8 internal isStaking = 1;

contracts/extension/Staking721.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract contract Staking721 is ReentrancyGuard, IStaking721 {
1515
//////////////////////////////////////////////////////////////*/
1616

1717
///@dev Address of ERC721 NFT contract -- staked tokens belong to this contract.
18-
address public stakingToken;
18+
address public immutable stakingToken;
1919

2020
/// @dev Flag to check direct transfers of staking tokens.
2121
uint8 internal isStaking = 1;

0 commit comments

Comments
 (0)