block-core / angor

Angor is a decentralized crowdfunding platform built on Bitcoin and nostr.
http://beta.angor.io/
Other
16 stars 6 forks source link

When someone takes out the funds it shows it as spent #115

Open itailiors opened 2 months ago

itailiors commented 2 months ago

If someone pulls out their investment from a project, there are 2 problems 1) in the project page there is no information about it (investors can't tell if people pulled out their money, or how much is actually invested in the project) 2) in spends funds it is showed as "spent" even though it really isn't.

dangershony commented 1 month ago
  1. will be solved with explorers (I think we already have endpoints for that we just need to call them)
  2. do you have a way to reproduce this? shows as spent for who founder or investor?
itailiors commented 1 month ago
  1. explorers ? you mean https://browse.angor.io/ ?
  2. for the founder: in spends funds, the utxo of the refunded invested is shown as "spent". for investor: in browse there is no way to know

very easy to reproduce, you can even look in spend,razor for string statusText = transaction.IsSpent ? "Spent" : "Unspent"; there is no condition for refunded. (also can be solved by a filter on the items that if they were refunded don't show in spend page var transaction in stage.Items) line 110~

dangershony commented 1 month ago

explorers is basically https://explorer.angor.io/tbtc/explorer we still dont have a dedicated page to show angor projects (but its coming)

ok I will try to reproduce this

dangershony commented 1 month ago

for investor: in browse there is no way to know

are you sure it is not just a matter of waiting for the confirmations on the blockchains?