def __init__(self, flipper: Flipper, min_lot: Wad): assert isinstance(flipper, Flipper) assert isinstance(min_lot, Wad) self.flipper = flipper self.beg = flipper.beg() self.min_lot = min_lot
def dent(flipper: Flipper, id: int, address: Address, lot: Wad, bid: Rad): assert (isinstance(flipper, Flipper)) assert (isinstance(id, int)) assert (isinstance(lot, Wad)) assert (isinstance(bid, Rad)) current_bid = flipper.bids(id) assert current_bid.guy != Address("0x0000000000000000000000000000000000000000") assert current_bid.tic > datetime.now().timestamp() or current_bid.tic == 0 assert current_bid.end > datetime.now().timestamp() assert bid == current_bid.bid assert bid == current_bid.tab assert lot < current_bid.lot assert flipper.beg() * lot <= current_bid.lot assert flipper.dent(id, lot, bid).transact(from_address=address)
def __init__(self, flipper: Flipper): assert isinstance(flipper, Flipper) self.flipper = flipper self.beg = flipper.beg()