Skip to content

Commit 840abff

Browse files
authored
Merge pull request #1304 from graphprotocol/mde/vesting-advisory-fixes
fix: security advisory revocable vesting contracts linting errors
2 parents 91224ed + 81c4dab commit 840abff

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/token-distribution/contracts/GraphTokenLockWallet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pragma experimental ABIEncoderV2;
99
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
1010
import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
1111

12-
import { GraphTokenLock, MathUtils } from "./GraphTokenLock.sol";
12+
import { GraphTokenLock } from "./GraphTokenLock.sol";
1313
import { IGraphTokenLock } from "./IGraphTokenLock.sol";
1414
import { IGraphTokenLockManager } from "./IGraphTokenLockManager.sol";
1515

packages/token-distribution/test/tokenLockWallet.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ import { DeployOptions } from 'hardhat-deploy/types'
99

1010
import { GraphTokenLockManager, GraphTokenLockWallet, GraphTokenMock, StakingMock } from '../types'
1111
import { defaultInitArgs, Revocability, TokenLockParameters } from './config'
12-
import { Account, advanceBlocks, advanceTimeAndBlock, getAccounts, getContract, randomHexBytes, toGRT } from './network'
12+
import { Account, advanceTimeAndBlock, getAccounts, getContract, randomHexBytes, toGRT } from './network'
1313

1414
const { AddressZero, MaxUint256 } = constants
1515

1616
// -- Time utils --
1717

18-
const advancePeriods = async (tokenLock: GraphTokenLockWallet, n = 1) => {
19-
const periodDuration = await tokenLock.periodDuration()
20-
return advanceTimeAndBlock(periodDuration.mul(n).toNumber()) // advance N period
21-
}
2218
const advanceToStart = async (tokenLock: GraphTokenLockWallet) => moveToTime(tokenLock, await tokenLock.startTime(), 60)
2319
const moveToTime = async (tokenLock: GraphTokenLockWallet, target: BigNumber, buffer: number) => {
2420
const ts = await tokenLock.currentTime()

0 commit comments

Comments
 (0)