A smart contract is developed in order to deploy an English auction/open ascending price auction in Algorand blockchain with the help of PyTEAL(python library) which is set up in sandbox environment.
It stipulates that an environment where participants bid openly against one another, with subsequent bid required to be higher than the previous bid, starting from a reserved(base) price chosen by seller. At the end highest bid wins.
- The assignee (external account representing the seller of any digital asset that begins the auction by creating contract)
- Start time
- End time
- Withdraw/delivery time
- Reserve price
- Minimum increment
- Initially initiate the function bid()
- A bid must be done before the auction ends
- It must be higher than the reserved price
- It must be higher than the previous bid price
- It must come from a valid bidder(Not from seller)
- If the bid satisfies all the constraints, it'll be acepted and recored as the highest bid
- At last, the auction creator should close the bid