Content has a tiny LBC fee but shown as Free in app (requires payment) #461

Closed
opened 2017-08-09 21:25:20 +02:00 by tzarebczan · 10 comments
tzarebczan commented 2017-08-09 21:25:20 +02:00 (Migrated from github.com)

The Issue

If the content fee is a small LBC value, like 0.01, it is shown as Free on the app even though it requires a payment. Take this instance this published item: lbry://pascalcoinwalletb21202#e5a47c49c9d8b7a58dfb719992248265adfa75a3 the fee was set to 0.01 LBC but if navigating with app, it is shown as free. When you go to purchase it, you get a pop-up that says "This will purchase [content] for free credits".

Not sure what the threshold is exactly, but we need to be more precise with our fees.

Steps to reproduce

  1. Publish content with a small LBC fee value
  2. Content will show up as free

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

free credits

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue If the content fee is a small LBC value, like 0.01, it is shown as Free on the app even though it requires a payment. Take this instance this published item: lbry://pascalcoinwalletb21202#e5a47c49c9d8b7a58dfb719992248265adfa75a3 the fee was set to 0.01 LBC but if navigating with app, it is shown as free. When you go to purchase it, you get a pop-up that says "This will purchase [content] for free credits". Not sure what the threshold is exactly, but we need to be more precise with our fees. ### Steps to reproduce 1. Publish content with a small LBC fee value 2. Content will show up as free 3. ### Expected behaviour Tell us what should happen ### Actual behaviour Tell us what happens instead ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279/lbryapi' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here --> ![free credits](https://user-images.githubusercontent.com/8120721/29141266-7d67c4d4-7d1b-11e7-868d-6b5f01f2306b.JPG)
btzr-io commented 2017-08-10 05:37:49 +02:00 (Migrated from github.com)

The problem is that price is getting formated toFixed ^^

The problem is that price is getting formated `toFixed` ^^
btzr-io commented 2017-08-10 05:41:21 +02:00 (Migrated from github.com)

This is the current logic: 0.01999 -> 0.01 -> 0.0 -> 0 > free

This is the current logic: `0.01999` -> `0.01` -> `0.0` -> `0` > `free`
btzr-io commented 2017-08-10 05:43:53 +02:00 (Migrated from github.com)

I know this: 0.0019999999 looks ugly but I think the app should be more transparent about prices 😛

I know this: `0.0019999999` looks ugly but I think the `app` should be more transparent about prices :stuck_out_tongue:
btzr-io commented 2017-08-10 05:56:36 +02:00 (Migrated from github.com)

Alternative -> show a small button / add a settings option to display full price:

0.01 [...] -> 0.019999987
Alternative -> show a small button / add a settings option to display full price: ``` 0.01 [...] -> 0.019999987 ```
btzr-io commented 2017-08-10 06:07:18 +02:00 (Migrated from github.com)

fix-price

![fix-price](https://user-images.githubusercontent.com/14793624/29154090-1a1504c6-7d4f-11e7-8047-b7c6460bbc72.gif)
kauffj commented 2017-08-11 05:06:50 +02:00 (Migrated from github.com)

I added a "<" symbol for when we are below the smallest renderable value and reduced the default precision to 2. Right now 0.01 LBC is less than a penny, so I'm not particularly concerned with more precision.

I added a "<" symbol for when we are below the smallest renderable value and reduced the default precision to 2. Right now 0.01 LBC is less than a penny, so I'm not particularly concerned with more precision.
tzarebczan commented 2017-08-18 17:24:22 +02:00 (Migrated from github.com)

@btzr-io -
Found an issue when downloading lbry://eight on the latest master. I like how it shows <0.01 LBC as the price, but when streaming/downloading, there is no confirmation box to purchase the content even though 0.01 LBC is charged.

There is also this change going in soon: https://github.com/lbryio/lbry/pull/835 so not sure if that fixes/affects it.

@btzr-io - Found an issue when downloading lbry://eight on the latest master. I like how it shows <0.01 LBC as the price, but when streaming/downloading, there is no confirmation box to purchase the content even though 0.01 LBC is charged. There is also this change going in soon: https://github.com/lbryio/lbry/pull/835 so not sure if that fixes/affects it.
tzarebczan commented 2017-08-23 15:01:53 +02:00 (Migrated from github.com)

@kauffj When they go to purchase the content, you want it also to show <0.01 LBC or show the exact price of the content in the purchase confirmation screen?

@kauffj When they go to purchase the content, you want it also to show <0.01 LBC or show the exact price of the content in the purchase confirmation screen?
kauffj commented 2017-08-23 18:18:53 +02:00 (Migrated from github.com)

Confirmation dialog should show the full price. It would also be a good idea to put the full price as a title attribute on the element when showing "<0.01" so the full price can be seen on mouseover.

Confirmation dialog should show the full price. It would also be a good idea to put the full price as a title attribute on the element when showing "<0.01" so the full price can be seen on mouseover.
kauffj commented 2017-08-25 22:05:43 +02:00 (Migrated from github.com)

Fixed in c03c0de0a2

Fixed in https://github.com/lbryio/lbry-app/commit/c03c0de0a2b7c3b12b6041f7a851997f0e4229c2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#461
No description provided.