diff --git a/packages/addresses/src/addresses.athens.json b/packages/addresses/src/addresses.athens.json index 413e3a2d..c7d364f2 100644 --- a/packages/addresses/src/addresses.athens.json +++ b/packages/addresses/src/addresses.athens.json @@ -111,7 +111,7 @@ "multiChainSwap": "", "multiChainSwapZetaConnector": "", "multiChainValue": "0x82aC45D07dEe4DBDe050e838beF345347DEd99a8", - "rewardDistributorFactory": "0x3a969d797A28d61e8127562944E639a5824F1219", + "rewardDistributorFactory": "0x667e4C493d40015256BDC89E3ba750B2F90359E1", "tridentPoolFactory": "", "tss": "", "tssUpdater": "", diff --git a/packages/zeta-app-contracts/scripts/multi-chain-value/send-value.ts b/packages/zeta-app-contracts/scripts/multi-chain-value/send-value.ts index 44bb08ac..efb1bb41 100644 --- a/packages/zeta-app-contracts/scripts/multi-chain-value/send-value.ts +++ b/packages/zeta-app-contracts/scripts/multi-chain-value/send-value.ts @@ -38,7 +38,7 @@ const main = async () => { const amount = parseEther("1"); - if (ZETA_NETWORK !== "athens") { + if (networkName !== "athens") { const zetaToken = await getErc20(getAddress("zetaToken")); const tx = await zetaToken.approve(multiChainValueContract.address, amount.mul(10)); await tx.wait(); @@ -47,11 +47,11 @@ const main = async () => { if (isZetaTestnet(ZETA_NETWORK)) { const destinationAddress = ethers.utils.solidityPack(["address"], [process.env.PUBLIC_KEY_1 ?? signer.address]); - await doTranfer(ZETA_NETWORK, multiChainValueContract, getChainId("goerli"), amount, destinationAddress); - // await doTranfer(ZETA_NETWORK, multiChainValueContract, getChainId("klaytn-baobab"), amount, destinationAddress); - await doTranfer(ZETA_NETWORK, multiChainValueContract, getChainId("polygon-mumbai"), amount, destinationAddress); - await doTranfer(ZETA_NETWORK, multiChainValueContract, getChainId("bsc-testnet"), amount, destinationAddress); - await doTranfer(ZETA_NETWORK, multiChainValueContract, getChainId("athens"), amount, destinationAddress); + await doTranfer(networkName, multiChainValueContract, getChainId("goerli"), amount, destinationAddress); + // await doTranfer(networkName, multiChainValueContract, getChainId("klaytn-baobab"), amount, destinationAddress); + await doTranfer(networkName, multiChainValueContract, getChainId("polygon-mumbai"), amount, destinationAddress); + await doTranfer(networkName, multiChainValueContract, getChainId("bsc-testnet"), amount, destinationAddress); + await doTranfer(networkName, multiChainValueContract, getChainId("athens"), amount, destinationAddress); } }; diff --git a/packages/zevm-app-contracts/scripts/liquidity-incentives/add-reward.ts b/packages/zevm-app-contracts/scripts/liquidity-incentives/add-reward.ts index 9a81e16e..f1c987c2 100644 --- a/packages/zevm-app-contracts/scripts/liquidity-incentives/add-reward.ts +++ b/packages/zevm-app-contracts/scripts/liquidity-incentives/add-reward.ts @@ -68,7 +68,8 @@ const addReward = async ( ); const ZETA = ERC20__factory.connect(zetaTokenAddress, deployer); - await ZETA.transfer(rewardDistributorContract.address, REWARDS_AMOUNT.mul(2)); + const tx = await ZETA.transfer(rewardDistributorContract.address, REWARDS_AMOUNT.mul(1)); + await tx.wait(); await rewardDistributorContract.setRewardsDuration(REWARD_DURATION); await rewardDistributorContract.notifyRewardAmount(REWARDS_AMOUNT); diff --git a/packages/zevm-app-contracts/scripts/liquidity-incentives/read-rewards-data.ts b/packages/zevm-app-contracts/scripts/liquidity-incentives/read-rewards-data.ts index bb31a2d9..3095f11c 100644 --- a/packages/zevm-app-contracts/scripts/liquidity-incentives/read-rewards-data.ts +++ b/packages/zevm-app-contracts/scripts/liquidity-incentives/read-rewards-data.ts @@ -20,7 +20,7 @@ const readRewardData = async (rewardContractAddress: string) => { const rewardsDuration = await rewardDistributorContract.rewardsDuration(); const lastUpdateTime = await rewardDistributorContract.lastUpdateTime(); const rewardPerTokenStored = await rewardDistributorContract.rewardPerTokenStored(); - + if (rewardRate.isZero()) return; console.table({ contract: rewardContractAddress, lastUpdateTime: `${lastUpdateTime.toString()}-${new Date(lastUpdateTime.toNumber() * 1000).toISOString()}`,