Bounty Winners In Sandbox

Manual Winner Selection via Stacks Explorer Sandbox

Overview

This procedure outlines the steps to manually select bounty winners when the automated platform transaction fails on the blockchain. The process uses the Stacks Explorer Sandbox to directly call smart contract functions.


Prerequisites

Before beginning this procedure, ensure you have:

  • Access to Stacks Explorer (explorer.hiro.so)

  • Administrative access to the bounty smart contract

  • The failed transaction details and winner addresses

  • STX wallet connected with sufficient gas fees


Step-by-Step Procedure

Step 1: Access Stacks Explorer Sandbox

  1. Navigate to Stacks Explorer Sandbox ZADAO-V2-MultiW-Bounty

  2. Log in to your account with administrative privileges

  3. Ensure your STX wallet is connected and has sufficient balance for transaction fees

Step 2: Locate Failed Transaction Details

  1. Navigate to the failed transaction:

    • Transaction ID: 0xba6cf…a9cb6

  2. Extract the following information from the failed accept-submissions transaction:

    • bounty_id

    • used_token

    • winners (list of STX addresses)

Step 3: Prepare Winner Addresses

From the failed transaction, the following addresses have been identified as winners:

SP30DPQTSZ1R3XVFJ0Z02CJZ66N8467R04BKMMGZ1
SP3KF338F5A6KNCVBFANM08AKNVNV4ZZKT12HEBXH
SP3BRCBNKKRJTECH2ETCTW5HQ86P1S77MDHCM6VG0
SPK9J5DD22NTTMK6FMF07CANX81FQW8WE63SAM2Q
SP3E1BE5M5SS5SD2Y0T6VWMSX3KJZ09GFCSRHJ144
SP23BQZ3RNTHM7GZZVT2EB5WTRM81JB5N4KJGDKMX
SP258T581PRDFM9M0MHQWTCE9RMD6JQQ74HEWC46P
SP31ZNSNSJK0R8Z8CRVKXFPWPC5A610SEA4XPBTQ7
SP2B9397JT7396J6BJF2DZ6HA6Q298C4938K0S2PB
SP3FTV5B6F5P2B1YHW7SZDDE3VBRJCBZ72420V62M

Step 4: Execute Smart Contract Function in the Sandbox

  1. In the Sandbox interface, locate the bounty smart contract

  2. Find the winner selection function (likely select-winners or distribute-bounty)

  3. Input the required parameters:

    • Bounty ID: Enter the bounty_id from the failed transaction

    • Token: Specify the used_token value

    • Winners: Enter each winner address individually in the provided input fields

Step 5: Submit Transaction

  1. Review all entered data for accuracy

  2. Check gas fee estimation and ensure sufficient STX balance

  3. Submit the transaction through the sandbox interface

  4. Wait for confirmation on the blockchain (typically 1-10 minutes)

Step 6: Verification

  1. Monitor the transaction status in the Stacks Explorer

  2. Verify successful execution by checking:

    • Transaction status shows as "Success"

    • Winner addresses received their bounty tokens

    • Bounty status updated to "Completed"

  3. Document the successful transaction hash for record-keeping


Troubleshooting

Common Issues and Solutions

Transaction Fails Again:

  • Check gas fee allocation

  • Verify all addresses are valid STX addresses

  • Ensure bounty contract has sufficient token balance

Input Field Limitations:

  • If sandbox limits winner count, submit multiple smaller transactions

  • Process winners in batches if necessary

Access Issues:

  • Verify administrative privileges on the smart contract

  • Ensure wallet connection is stable


Post-Completion Actions

  1. Notify all winners of successful token distribution

  2. Update internal records with the new transaction hash

  3. Archive documentation of the manual intervention

  4. Review platform code to prevent similar failures in future bounties

  5. Monitor winner wallets to confirm token receipt


Security Notes

  • Always verify addresses before submitting transactions

  • Double-check bounty ID and token parameters

  • Use testnet for testing if available

  • Keep transaction records for audit purposes

  • Only authorized personnel should execute these procedures


Screenshot

  • To get the bounty_id and token, go back to the accept-submissions transaction

  • Add list item, and add all of the wallet addresses from accept-submissions

  • Then call function

Last updated