From 5ed29387a3ee6dffb3ca854232f75c5ae8639dad Mon Sep 17 00:00:00 2001 From: wow-alpaca Date: Fri, 15 Mar 2024 16:54:57 +0700 Subject: [PATCH] chore: update json --- contracts.json | 2 +- contracts.tenderly.json | 1 + deploy/trade-mining/paradeen-feed-pyth.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contracts.json b/contracts.json index 93acd8a..40c8fe9 100644 --- a/contracts.json +++ b/contracts.json @@ -89,4 +89,4 @@ "AP": "0x2Fb74F8E1e9EFaEEc31e57946e0C1bC6853ca4f1", "rewardToken": "0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da" } -} \ No newline at end of file +} diff --git a/contracts.tenderly.json b/contracts.tenderly.json index 2b30f16..7dbef12 100644 --- a/contracts.tenderly.json +++ b/contracts.tenderly.json @@ -86,6 +86,7 @@ "TradeMining": { "tradeMiningManager": "0x480DC16F44401235E20f849384f764f50B3Adb46", "paradeen": "0x06ed8e9DD7e3CAee9461145Cc8D7747d0Da23b21", + "pythParadeen": "", "AP": "0xF12Ef0f68521761192e04343a013980947223Ca3", "rewardToken": "0x55d398326f99059fF775485246999027B3197955" } diff --git a/deploy/trade-mining/paradeen-feed-pyth.ts b/deploy/trade-mining/paradeen-feed-pyth.ts index 784a2fe..4821cd2 100644 --- a/deploy/trade-mining/paradeen-feed-pyth.ts +++ b/deploy/trade-mining/paradeen-feed-pyth.ts @@ -21,7 +21,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { // contracts const ap = AP__factory.connect(config.TradeMining.AP, ethers.provider); const paradeen = Paradeen__factory.connect( - config.TradeMining.paradeen, + config.TradeMining.pythParadeen, signer ); @@ -50,7 +50,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { console.log(`> Trading fee collected: ${formatEther(tradingFeeCollected)}`); console.log(`> Pyth price: ${formatEther(pythPrice)}\n`); - let amountToFeed = BigNumber.from(0); + let amountToFeed: BigNumber; if (tradingFeeCollected.lt(weeklyFeeThreshold)) { console.log(