Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Race condition in auction contract #573

@joe-p

Description

@joe-p

Overview

In the current contract, there is a race condition when placing a bid. The contract will attempt to repay the previous bidder, but the previous bidder can change within a block. The current design will only allow one bid per block.

Solution

Rather than immediately repaying the previous bidder, this functionality should be implemented as a separate method. Below is an example implementation of this.

https://github.com/algorand-devrel/beaker-auction/blob/master/backend/smart_contracts/auction/contract.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions