From b6ca493cbecd5dfdcb631579a0e16b9bccf4dae8 Mon Sep 17 00:00:00 2001 From: alpanaca Date: Tue, 12 Mar 2024 18:20:31 +0700 Subject: [PATCH] chore: revert change --- deploy/trade-mining/paradeen-feed.ts | 29 +++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/deploy/trade-mining/paradeen-feed.ts b/deploy/trade-mining/paradeen-feed.ts index 35d3a9d..02c0cb1 100644 --- a/deploy/trade-mining/paradeen-feed.ts +++ b/deploy/trade-mining/paradeen-feed.ts @@ -12,12 +12,23 @@ interface FeedParadeenParams { } const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { - const PARADEEN_ADDRESS = ""; const PARAMS_INPUT: Array = [ { - weekTimstamp: BigNumber.from(1710349200), - amount: ethers.utils.parseUnits("20000", 6), - } + weekTimstamp: BigNumber.from(1680739200), + amount: ethers.utils.parseEther("32000"), + }, + { + weekTimstamp: BigNumber.from(1681344000), + amount: ethers.utils.parseEther("32000"), + }, + { + weekTimstamp: BigNumber.from(1681948800), + amount: ethers.utils.parseEther("32000"), + }, + { + weekTimstamp: BigNumber.from(1682553600), + amount: ethers.utils.parseEther("32000"), + }, ]; // Ask for confirmation @@ -39,19 +50,19 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { p.weekTimstamp.div(WEEK).mul(WEEK) ); const amounts = PARAMS_INPUT.map((p) => p.amount); + const config = getConfig(); const signer = (await ethers.getSigners())[0]; const paradeen = Paradeen__factory.connect( - PARADEEN_ADDRESS, + config.TradeMining.paradeen, signer ); console.log("> Feeding rewards to Paradeen"); - console.log(`Feeding ${timestamps} , ${amounts}`); - // const tx = await paradeen.feed(timestamps, amounts); - // console.log(`> ⛓ Tx submitted: ${tx.hash}`); + const tx = await paradeen.feed(timestamps, amounts); + console.log(`> ⛓ Tx submitted: ${tx.hash}`); console.log(`> Waiting tx to be mined...`); - // await tx.wait(); + await tx.wait(); console.log(`> Tx mined!`); };