mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-09 15:27:55 -05:00
cleanup: address linter warnings
This commit is contained in:
@@ -4,7 +4,6 @@ pragma solidity >=0.8.26 <=0.9.0;
|
||||
|
||||
import { Script } from "forge-std/Script.sol";
|
||||
import { MockToken } from "../test/mocks/MockToken.sol";
|
||||
import { Karma } from "../src/Karma.sol";
|
||||
|
||||
contract DeploymentConfig is Script {
|
||||
error DeploymentConfig_InvalidDeployerAddress();
|
||||
|
||||
@@ -12,6 +12,7 @@ import { IRewardDistributor } from "./interfaces/IRewardDistributor.sol";
|
||||
import { TrustedCodehashAccess } from "./TrustedCodehashAccess.sol";
|
||||
import { StakeMath } from "./math/StakeMath.sol";
|
||||
|
||||
// solhint-disable max-states-count
|
||||
/**
|
||||
* @title RewardsStreamerMP
|
||||
* @notice A contract that manages staking and rewards for multiple vaults.
|
||||
@@ -42,6 +43,7 @@ contract RewardsStreamerMP is
|
||||
STATE VARIABLES
|
||||
//////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
// solhint-disable var-name-mixedcase
|
||||
/// @notice Token that is staked in the vaults (SNT).
|
||||
IERC20 public STAKING_TOKEN;
|
||||
/// @notice Scale factor used for rewards calculation.
|
||||
|
||||
@@ -9,11 +9,11 @@ import { KarmaNFT } from "../src/KarmaNFT.sol";
|
||||
import { MockMetadataGenerator } from "./mocks/MockMetadataGenerator.sol";
|
||||
|
||||
contract KarmaNFTTest is Test {
|
||||
MockToken erc20Token;
|
||||
MockMetadataGenerator metadataGenerator;
|
||||
KarmaNFT nft;
|
||||
MockToken public erc20Token;
|
||||
MockMetadataGenerator public metadataGenerator;
|
||||
KarmaNFT public nft;
|
||||
|
||||
address alice = makeAddr("alice");
|
||||
address public alice = makeAddr("alice");
|
||||
|
||||
function setUp() public {
|
||||
erc20Token = new MockToken("Test", "TEST");
|
||||
|
||||
@@ -2199,6 +2199,7 @@ contract MaliciousUpgradeTest is RewardsStreamerMPTest {
|
||||
}
|
||||
}
|
||||
|
||||
// solhint-disable-next-line
|
||||
contract RewardsStreamerMP_RewardsTest is RewardsStreamerMPTest {
|
||||
function setUp() public virtual override {
|
||||
super.setUp();
|
||||
|
||||
@@ -3,7 +3,6 @@ pragma solidity ^0.8.26;
|
||||
|
||||
import { Test } from "forge-std/Test.sol";
|
||||
|
||||
import { IStakeManagerProxy } from "../src/interfaces/IStakeManagerProxy.sol";
|
||||
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
||||
import { DeployRewardsStreamerMPScript } from "../script/DeployRewardsStreamerMP.s.sol";
|
||||
import { VaultFactory } from "../src/VaultFactory.sol";
|
||||
|
||||
@@ -18,9 +18,11 @@ contract KarmaDistributorMock is IRewardDistributor {
|
||||
}
|
||||
|
||||
function rewardsBalanceOf(address) external pure override returns (uint256) {
|
||||
// solhint-disable-next-line
|
||||
revert("Not implemented");
|
||||
}
|
||||
|
||||
// solhint-disable-next-line
|
||||
function setReward(uint256, uint256) external pure override { }
|
||||
|
||||
function rewardsBalanceOfAccount(address account) external view override returns (uint256) {
|
||||
|
||||
Reference in New Issue
Block a user