citycoins/ui

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

Closed this issue · 2 comments

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):

  • OS: Mac
  • Browser Chrome
  • Version 115.0.5790.170

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.