Bidding Contract
The Bidding
module allows users to bid for any given NFT in a safe
, giving NFT owners a platform to sell their NFTs to any available bid.
Entry function to create a bid for an NFT performs the following:
Sends funds Balance from
wallet
to thebid
Creates object
bid
and shares it.
and its commissioned version:
Entry function to sell an NFT with an open bid
.
It performs the following:
Splits funds from
Bid<FT>
by(1) Creating TradePayment<C, FT> for the trade amount
Transfers NFT from
sellers_safe
tobuyers_safe
and burnsTransferCap
Transfers bid commission funds to the address
bid.commission.beneficiary
and its commission version
Entry function to sell an NFT with an open bid
.
It performs the following:
Splits funds from
Bid<FT>
by:(1) Creating TradePayment<C, FT> for the Ask commission
(2) Creating TradePayment<C, FT> for the net trade amount
Transfers NFT from
sellers_safe
tobuyers_safe
and burnsTransferCap
Transfers bid commission funds to the address
bid.commission.beneficiary
To be called by an intermediate application, for the purpose of securing a commission for intermediating the process.
To cancel an offer, the buyer can close a bid
Events
Closing or selling a big emits an event BidClosed
. Creating a new bid emits an event BidCreated
.
Last updated