def setup_bank_hack(homora): donator = accounts[5] fake = accounts.at(homora.address, force=True) controller = interface.IComptroller('0x3d5BC3c8d13dcB8bF317092d84783c2697AE9258') creth = interface.ICEtherEx('0xD06527D5e56A3495252A528C4987003b712860eE') creth.mint({'value': '90 ether', 'from': donator}) creth.transfer(fake, creth.balanceOf(donator), {'from': donator}) controller.enterMarkets([creth], {'from': fake})
def __init__(self, registry): self.registry = registry self.comptroller = interface.IComptroller( registry.compound.comptroller)