citycoins / ui

Basic UI components for interacting with the CityCoin contract. Requires Stacks Wallet for Web.
https://minecitycoins.com
GNU General Public License v3.0
28 stars 13 forks source link

🐞[BUG] Can't claim rewards/stacked coins #166

Closed shaneafsar closed 1 month ago

shaneafsar commented 1 year ago

Describe the bug Tapping the "Claim" button doesn't result in anything happening.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://minecitycoins.com/stacking?chain=mainnet
  2. Scroll down to Claim NYC Stacking Rewards
  3. Click on "Claim" for a particular row that has the button

Expected behavior Initiate transfer to Hiro wallet.

Screenshots Screenshot 2023-08-21 at 12 57 43 PM

Desktop (please complete the following information):

whoabuddy commented 1 year ago

Thanks for reporting this! That line refers to the post-conditions set by the UI for the transaction, see here:

data.toReturn > 0 &&
    postConditions.push(
      makeContractFungiblePostCondition(
        citySettings.config.stacking.deployer,
        citySettings.config.stacking.stackingClaimContract,
        FungibleConditionCode.Equal,
        amountCityCoinsCV.value,
        createAssetInfo(
          citySettings.config.token.deployer,
          citySettings.config.token.contractName,
          citySettings.config.token.tokenName
        )
      )
    );

The citySettings.config is set a bit earlier, and should contain the contract and version depending on where you are trying to claim from.

Are there any other console errors? If you clear your cache and try again does it work?

Also if you can share a txid or address that can help narrow it down.

Palenyj1981 commented 1 month ago

Привіт друзі. Яку відповідь?

пт, 2 серп. 2024 р., 20:13 користувач Shane Afsar @.***> пише:

Closed #166 https://github.com/citycoins/ui/issues/166 as completed.

— Reply to this email directly, view it on GitHub https://github.com/citycoins/ui/issues/166#event-13744700062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWPXAIYN7VITAK7EDIMT2N3ZPO443AVCNFSM6AAAAABL45DL2GVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTG42DINZQGAYDMMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>