import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { FlashMintModule__factory } from "../../../../typechain" ; const func = async function ( hre ) { const FEE_RATE = ethers . utils . parseUnits ( "0.002" , 18 ) . toString ( ) ; const config = ConfigEntity . getConfig ( ) ; const flashMintModule = FlashMintModule__factory . connect ( config . FlashMintModule . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( ">> set FEE_RATE" ) ; await flashMintModule . setFeeRate ( FEE_RATE ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetFeeRate" ] ;