<p>Any party can end the bidding according to the code in this contract. The constraints for what needs met is defined at this part in the contract: <a href="https://github.com/input-output-hk/plutus-pioneer-program/blob/ecafd204b56defceed9fd3a69ebede09256c12c0/code/week01/src/Week01/EnglishAuction.hs#L320" rel="nofollow noreferrer">https://github.com/input-output-hk/plutus-pioneer-program/blob/ecafd204b56defceed9fd3a69ebede09256c12c0/code/week01/src/Week01/EnglishAuction.hs#L320</a>. There is no incentive though for wallet 3 or any other wallet other than 1 or 2 to close bidding as those are the only two wallets that would benefit from the auction being closed after the deadline is reached.</p>

CC BY-SA 4.0
2022-01-16T22:51:26.647Z
2022-01-16T22:51:26.647Z
Samuel Leathers
<p>Closing the auction makes you pay a fee. Thus, only interested parties are likely to actually perform the action. Moreover, it is not possible to close the auction before its deadline, even if you are the one who started the auction - valid bids after close but before the deadline will still be taken into account.</p>

CC BY-SA 4.0
2022-01-17T04:59:31.327Z
2022-01-22T10:13:53.970Z
2022-01-22T10:13:53.970Z
Mihai Codescu
<p>I setup a simple start, bid, close in Plutus Playground where the following occurs:</p>
<ul>
<li>Wallet 1 starts the bidding</li>
<li>Wallet 2 makes a bid above the min amount</li>
<li>Wallet 3 calls close</li>
</ul>
<p>In the end Wallet 2 gets the token and Wallet 1 gets the amount in the script. But why is wallet 3 allowed to end the bidding when they weren't the one to start the bidding?</p>

<plutus-pioneer-program>
Why can any wallet close a bid?
# Why can any wallet close a bid?

(Asked by: username_0 on 2022-01-16)

I setup a simple start, bid, close in Plutus Playground where the following occurs:

* Wallet 1 starts the bidding
* Wallet 2 makes a bid above the min amount
* Wallet 3 calls close

In the end Wallet 2 gets the token and Wallet 1 gets the amount in the script. But why is wallet 3 allowed to end the bidding when they weren't the one to start the bidding?

**Tags:** plutus-pioneer-program

---

## 2 answers

### Answer by username_1 on 2022-01-16. Score: 2 | Accepted answer

Any party can end the bidding according to the code in this contract. The constraints for what needs met is defined at this part in the contract: <https://github.com/input-output-hk/plutus-pioneer-program/blob/ecafd204b56defceed9fd3a69ebede09256c12c0/code/week01/src/Week01/EnglishAuction.hs#L320>. There is no incentive though for wallet 3 or any other wallet other than 1 or 2 to close bidding as those are the only two wallets that would benefit from the auction being closed after the deadline is reached.


---

### Answer by username_2 on 2022-01-17. Score: 2

Closing the auction makes you pay a fee. Thus, only interested parties are likely to actually perform the action. Moreover, it is not possible to close the auction before its deadline, even if you are the one who started the auction - valid bids after close but before the deadline will still be taken into account.


---

