Skip to content

sui的nft auction拍卖模块,新建一个拍卖,为什么要有个auctioneer参数,作用是什么 #273

Answered by qiwihui
baidang201 asked this question in Q&A
Discussion options

You must be logged in to vote

这个 aution 用的是英国拍卖法:竞标者出价由下往上喊,喊价最高者得标,竞标者可多次重复提高出价。auctioneer 是一个可信任的第三方,作用有二:一是周期查看大家的竞标,如果大于当前的标价则更新,否则退回竞标资金;二是结束竞标,把标的物发给获胜者。所以你可以看到在创建时 auction 对象保存在 auctioneer 中,只能由他进行更新。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baidang201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants