async def deposit(self, token: Token, amount: Decimal, address: str): if token.is_eth(): return self.zksync.deposit_eth(address, token.from_decimal(amount)) else: return self.zksync.deposit_erc20(token.address, address, token.from_decimal(amount))
async def approve_deposit(self, token: Token, limit: Decimal): contract = ERC20Contract(self.web3, self.zksync.contract_address, token.address, self.zksync.account) return contract.approve_deposit(token.from_decimal(limit))