import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { BookKeeper__factory } from "../../../../typechain" ; import { WeiPerRad } from "../../../../test/helper/unit" ; const func = async function ( hre ) { const RAD = 45 ; const TOTAL_DEBT_CEILING = ethers . utils . parseUnits ( "200003008325123" , RAD ) . toString ( ) ; const config = ConfigEntity . getConfig ( ) ; const bookKeeper = BookKeeper__factory . connect ( config . BookKeeper . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( ">> set TOTAL_DEBT_SHARE" ) ; await bookKeeper . setTotalDebtCeiling ( TOTAL_DEBT_CEILING ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetTotalDebtCeiling" ] ;