Skip to content

Commit 4368221

Browse files
committed
fix: protocol activity script small fixes
Signed-off-by: Tomás Migone <[email protected]>
1 parent ca4daad commit 4368221

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/subgraph-service/scripts/ops/protocol-activity.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ import {
1414
import hre, { ethers } from 'hardhat'
1515
import { allocationKeys } from './data'
1616
import { randomBigInt } from '@graphprotocol/toolshed/utils'
17-
const PROVISION_THAWING_PERIOD = 2419200n
18-
const PROVISION_MAX_VERIFIER_CUT = 500_000n
19-
const PROVISION_THAWING_PERIOD_B = 2419199n
20-
const PROVISION_MAX_VERIFIER_CUT_B = 900_000n
2117

2218
const GAS_LIMIT = process.env.GAS_LIMIT ? parseInt(process.env.GAS_LIMIT) : 500_000
2319

2420
async function main() {
2521
const graph = hre.graph()
2622
const { HorizonStaking, GraphToken, PaymentsEscrow, GraphTallyCollector } = graph.horizon.contracts
27-
const { SubgraphService, Curation } = graph.subgraphService.contracts
23+
const { SubgraphService, Curation, DisputeManager } = graph.subgraphService.contracts
2824

2925
const { stake, stakeToProvision, delegate, addToDelegationPool } = graph.horizon.actions
3026

3127
const signers = await graph.accounts.getTestAccounts()
3228
const deployer = await graph.accounts.getDeployer()
3329
const gateway = await graph.accounts.getGateway() // note that this wont be the actual gateway address
3430

31+
const PROVISION_THAWING_PERIOD = await DisputeManager.disputePeriod()
32+
const PROVISION_MAX_VERIFIER_CUT = await DisputeManager.fishermanRewardCut()
33+
const PROVISION_THAWING_PERIOD_B = PROVISION_THAWING_PERIOD - 1n
34+
const PROVISION_MAX_VERIFIER_CUT_B = PROVISION_MAX_VERIFIER_CUT + 1000n
35+
3536
const abi = new ethers.AbiCoder()
3637

3738
console.log('🔄 Generating protocol activity...')

0 commit comments

Comments
 (0)