twicek security
settle
before start_auction
is called by the ownersettle
can be called by anyone before start_auction
is called by the owner which lead for anyone to be able to virtually call start_auction
as well as reducing the number of auctions by 1.start_auction
is called:_epoch_in_progress == False
since epoch_end == 0
. As a consequence anyone can call the function before it as been started by the owner.winner == empty(address)
since there is no highest_bidder
yet. As a consequence, winner
becomes FALLBACK_RECEIVER
like so:current_epoch_token_id == 0
since no epoch have passed yet. Therefore epoch_start
and epoch_end
get initialized and current_epoch_token_id
get incremented like so:FALLBACK_RECEIVER
: AuctionHouse.vy#L208winning_amount
will be sent to the vault since winning_amount == 0
start_auction
which is a permissionned function. The number of auctions will be reduced by 1.True
when the owner call start_auction
and checked in the settle function
as being True
.