Bid Functions

bid

After the Bid is posted, anyone can accept the Bid and complete the curation. After a certain period of time, the curation effectiveness is calculated, and the Curator with the best effectiveness can claim the reward. In Open Curation, the curation method is fixed as Quote Post. The curation effectiveness is calculated by summing the number of comments and mirrors received by the Curator's Quote Post.

function bid( BidData calldata vars, DataTypes.MerkleVerifyData calldata verifyData ) external payable nonReentrant onlyWhitelisted(verifyData)

NameTypeDescription

vars

BidData

Go to the page “Enums and Functions” for more details

verifyData

MerkleVerifyData

Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details

bidBatch

Similar to bid, supports batch operations.

function bidBatch( BidData[] calldata vars, DataTypes.MerkleVerifyData calldata verifyData ) external payable nonReentrant onlyWhitelisted(verifyData)

NameTypeDescription

vars

BidData[]

Go to the page “Enums and Functions” for more details

verifyData

MerkleVerifyData

Verify if the bid creator is on the whitelist Go to the page “Enums and Functions” for more details

updateBid

function updateBid( uint256 index, uint256 amount ) external payable nonReentrant

NameTypeDescription

index

uint256

The index of bid

amount

uint256

The amount of bid token

claimBackBid

Claim back the token after the bid expires

function claimBackBid(uint256 index) external nonReentrant

NameTypeDescription

index

uint256

The index of bid

claimBackBidBatch

Similar to bid, supports batch operations

function claimBackBidBatch( uint256[] calldata indexArr ) external nonReentrant

NameTypeDescription

indexArr

uint256[]

The indexes of bids

Last updated