def main(): # Connect badger system from file badger = connect_badger() # Sanity check file addresses expectedMultisig = "0xB65cef03b9B89f99517643226d76e286ee999e77" assert badger.devMultisig == expectedMultisig safe = ApeSafe(badger.devMultisig.address) helper = ApeSafeHelper(badger, safe) setts = [ helper.getSett("native.renCrv"), helper.getSett("native.tbtcCrv"), helper.getSett("native.sbtcCrv"), helper.getSett("native.sushiWbtcEth"), ] for contract in contracts_to_approve: for sett in setts: console.print( f"Approving contract access for: \n {contract} on \n [green]{sett.address}" ) sett.approveContractAccess(contract) assert sett.approved(contract) == True helper.publish()
def main(): # Connect badger system from file badger = connect_badger() # Sanity check file addresses expectedMultisig = "0xB65cef03b9B89f99517643226d76e286ee999e77" assert badger.devMultisig == expectedMultisig safe = ApeSafe(badger.devMultisig.address) helper = ApeSafeHelper(badger, safe) sett = helper.getSett("native.renCrv") for contract in contracts_to_approve: sett.approveContractAccess(contract) assert sett.approved(contract) == True helper.publish()