import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../../entities" ; import { FixedSpreadLiquidationStrategy__factory } from "../../../../../typechain" ; const func = async function ( hre ) { const config = ConfigEntity . getConfig ( ) ; const FLASH_LENDING_ENABLED = 1 ; const strategy = FixedSpreadLiquidationStrategy__factory . connect ( config . Strategies . FixedSpreadLiquidationStrategy . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( `>> FixedSpreadLiquidationStrategy flashLendingEnabled: ${ FLASH_LENDING_ENABLED }` ) ; await strategy . setFlashLendingEnabled ( FLASH_LENDING_ENABLED ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetFlashLendingEnabled" ] ;