When Boom launched Boomboxes, I minted number #82 of 1st Edition. Boombox NFTs come with an intrinsic value because these NFTs earn stacking rewards. (Read the details in my previous post.) I participate in the consensus algorithm (PoX) of the Stacks chain by locking my Stacks. I locked 16,999 STX for around 3 weeks when I minted the NFT. On testnet, I exercised a trustless swap between stacks and bitcoins. Now, I would like to swap this NFT, Boombox b-12 #82 for Bitcoins on mainnet. The associated art work is the image of the post.
I am looking for offers! Deadline 20th July 2021, 1am UTC.
If interested read on and please ping me on Twitter @fmdroid or Discord @friedger.btc#0185 with your offer and your STX address or .btc name. Note, that 1) the swap must have happened before stacks block #24,000 and 2) BTC transfer fees are paid by the buyer.
Update 23 July: I am not looking for offers any more.
1. The swap rules were created with this create-swap transaction.
2. BTC payment happened: 0x0cd84f2eff7ffb77fb45de32690d97b95dd3d8f3a24a3f448a37df3708f2f119
3a. BTC payment was rejected on Stacks chain with incorrect amount.
3b. BTC payment was verified on Stacks chain with correct amount.
This type of swap shall be called catamaran swap because - unlike submarine swap - the two parts happen on-chain, just two different chains.
Previous stacking rewards shown at Stacking Club suggests that we can expect around 0.016 BTC per reward slot. Looking at the current competition between miners, this amount could increase. However, the price of STX/BTC is not predictable for me, therefore, the reward amount could decrease.
There were 96 Boomboxes, 1st Edition minted. The total locked value for these Boomboxes is 113k STX. I used a scripted that parsed the
delegate-stx contract calls. This amount is just above the price for 1 stacking reward slot in cycle #12. Therefore, we can estimate that my 17k STX would get are around 15% of 1 reward slot.
Swapping the NFT for Bitcoins works with a Clarity smart contract on the Stacks chain that has knowledge about the Bitcoin blockchain. The contract contains the NFT id (#82), the buyers Stacks address, the agreed bitcoin price, my bitcoin address and a time limit.
Once the contract is deployed, I will transfer the NFT to the contract in escrow. Then the buyer transfers the agreed price (or more) to my bitcoin address. Everybody can watch the Bitcoin blockchain for such a transaction and submit it to the contract. The contract will verify it by recreating the transaction's merkel proof and its block header and by comparing the hashes retrieved directly from the bitcoin blockchain via
get-block-info?. If the transaction was indeed minted on the Bitcoin blockchain and if it contains the transfer of the agreed amount to the specified address, the NFT is release and transferred to the buyers STX address provided in the contract. If no valid Bitcoin transaction was submitted within the time limit, here 100 blocks, I can claim the NFT back from the contract and I can try to find a new buyer.
The relevant contract code is here on github.
There are some risks for the buyer and the seller.
Please let me know if you see more potential issues with this trustless swap. I will update this article with more details until the swap was executed successfully.