web icon indicating copy to clipboard operation
web copied to clipboard

show conv rate rate at time of posting

Open owocki opened this issue 8 years ago • 39 comments

What

In github notifications Instead of

This issue now has a funding of 0.3 ETH (201.0 USD) attached to it.

we should say something like

This issue now has a funding of 0.3 ETH (201.0 USD @ $700/ETH) attached to it

Requirements

  • support eth/usd
  • support any other ratio that has a conversion rate in the backend

Places to update:

  • tip / github marketing
  • bounty / github marketing
  • bounty / slack marketing
  • bounty / twitter marketing
  • bounty/email marketing
  • bounty details page

owocki avatar Dec 23 '17 00:12 owocki

This issue now has a funding of 0.04 ETH (44.47 USD) attached to it.

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $12318.97 more Funded OSS Work Available at: https://gitcoin.co/explorer

gitcoinbot avatar Jan 31 '18 23:01 gitcoinbot

@owocki any pointers as to where in the codebase changes would be required to implement this? My guess is here: https://github.com/gitcoinco/web/blob/master/app/dashboard/notifications.py#L219

tansaku avatar Feb 01 '18 17:02 tansaku

@tansaku you could use the convert_amount() function in economy/utils

owocki avatar Feb 01 '18 19:02 owocki

Seems straight forward. I can start digging into it now.

bhenze avatar Feb 02 '18 00:02 bhenze

Work has been started on the 0.04 ETH (41.48 USD) funding by:

  1. @bhenze

Please work together and coordinate delivery of the issue scope. Gitcoin doesn't know enough about everyones skillsets / free time to say who should work on what, but we trust that the community is smart and well-intentioned enough to work together. As a general rule; if you start work first, youll be at the top of the above list ^^, and should have 'dibs' as long as you follow through.

On the above list? Please leave a comment to let the funder (@owocki) and the other parties involved what you're working, with respect to this issue and your plans to resolve it. If you don't leave a comment, the funder may expire your submission at their discretion.

  • Learn more on the gitcoin issue page
  • Questions? Get help on the Gitcoin Slack
  • $11331.1 more Funded OSS Work Available at: https://gitcoin.co/explorer

gitcoinbot avatar Feb 02 '18 00:02 gitcoinbot

I have everything except for the email. I was thinking about exposing a member in the Bounty object to return the USDT value of ETH. Does this sound reasonable?

bhenze avatar Feb 02 '18 02:02 bhenze

@owocki I am having difficulties setting up the database and am unable to test my changes. Do you happen to have an easy way I can test my updates?

bhenze avatar Feb 02 '18 10:02 bhenze

@owocki I am having difficulties setting up the database and am unable to test my changes. Do you happen to have an easy way I can test my updates?

docker is pretty easy way to go.. if you post in slack and tag myself or @mbeacom if you have any issues.. that could work.

if the changes are small enough, you could maybe test them via the command line.

I have everything except for the email. I was thinking about exposing a member in the Bounty object to return the USDT value of ETH. Does this sound reasonable?

this exists already. its called value_in_usdt

owocki avatar Feb 02 '18 16:02 owocki

@owocki I was able to get docker to work and am able to test the page itself but having problems getting data to stick. I tried setting up a local database but to no avail. The changes are fairly small and can test some through the command line.

Also,

value_in_usdt exists but eth_value_in_usdt for 1 ether does not exist. This is more or less what I was trying to test on the bounty details page and emails.

bhenze avatar Feb 02 '18 17:02 bhenze

@bhenze The docker-compose stack provisions a postgresql instance for you. You can view the data in your database by browsing to: http://localhost:8081 which is running pgweb. Or you can access via psql cli with: psql -h localhost -U postgres - If you don't have psql, you can install it on mac via brew install postgresql

mbeacom avatar Feb 02 '18 19:02 mbeacom

@mbeacom thanks for your help! I am new to psql so I have been messing with it a bit. Ended up going down quite the rabbit hole but I am back on track now. My test environment is up and running.

bhenze avatar Feb 02 '18 20:02 bhenze

so what's going on with this one?

I see the MR has fresh comments

amites avatar Feb 13 '18 03:02 amites

Just responding to the comments now.

bhenze avatar Feb 13 '18 04:02 bhenze

Sorry, if you are asking for specifics. I am trying to figure out what the preferred format for the message should be:

"($201.0 @ 700 USD/ETH)"
... or ...
"($201.0 @ $700/ETH)"
depending on the answer to my question above

bhenze avatar Feb 13 '18 04:02 bhenze

This issue now has a funding of 0.04 ETH (37.11 USD) attached to it.

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $13219.99 more Funded OSS Work Available at: https://gitcoin.co/explorer

gitcoinbot avatar Feb 16 '18 01:02 gitcoinbot

If we use shields.io, we can show live price as well as value in realtime.

eg: 0.04 ETH @ Bounty

We will need to implement an endpoint which will return the price as well as value to be shown and it is displayed live like a badge. Right now I have a simple endpoint running on my local system to provide price for demo purpose which uses coinbase's API to get spot price of ETH.

The API call which is showing the above badge: https://img.shields.io/badge/dynamic/json.svg?uri=https://api.coinbase.com/v2/prices/ETH-USD/spot&query=$.data.amount&prefix=$&label=ETH&colorB=4d4d4d&colorA=4d4d4d&style=flat-square&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjUwMCA1MDAgMjAwMCAyMDAwIj48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMTUwMCA1MDBMODg2LjEgMTUxOC42bDYxMy45LTI3OS4xeiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNTAwIDEyMzkuNWwtNjEzLjkgMjc5LjEgNjEzLjkgMzYyLjh6TTIxMTMuOSAxNTE4LjZMMTUwMCA1MDB2NzM5LjV6Ii8%2bPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE1MDAgMTg4MS40bDYxMy45LTM2Mi44LTYxMy45LTI3OS4xeiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik04ODYuMSAxNjM0LjlMMTUwMCAyNTAwdi01MDIuM3oiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMTQ5OS45IDE5OTcuN1YyNTAwbDYxNC4yLTg2NS4xeiIvPjwvc3ZnPg==

check this out @owocki

EDIT: replaced price URI from my personal domain to coinbase which only provides price and not the value of required ETH in USD and edited accordingly.

scottydelta avatar Feb 16 '18 02:02 scottydelta

Work has been started on the 0.04 ETH (37.38 USD) funding by:

  1. @bhenze

Please work together and coordinate delivery of the issue scope. Gitcoin doesn't know enough about everyones skillsets / free time to say who should work on what, but we trust that the community is smart and well-intentioned enough to work together. As a general rule; if you start work first, youll be at the top of the above list ^^, and should have 'dibs' as long as you follow through.

On the above list? Please leave a comment to let the funder (@owocki) and the other parties involved what you're working, with respect to this issue and your plans to resolve it. If you don't leave a comment, the funder may expire your submission at their discretion.

  • Learn more on the gitcoin issue page
  • Questions? Get help on the Gitcoin Slack
  • $13032.15 more Funded OSS Work Available at: https://gitcoin.co/explorer

gitcoinbot avatar Feb 16 '18 20:02 gitcoinbot

This issue now has a funding of 0.04 ETH (37.62 USD) attached to it.

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $11159.43 more Funded OSS Work Available at: https://gitcoin.co/explorer

gitcoinbot avatar Feb 18 '18 15:02 gitcoinbot

I agree to @tra38's point. People who don't deal in ETH have no idea how big or small a bounty is when only given in terms of ETH. Showing the $ value might be something which will attract more users to take up the tasks for the bounties.

scottydelta avatar Feb 18 '18 21:02 scottydelta

I like @lazaridiscom's suggestion here at issue #460, we can finally just have:

This issue now has a funding of Bounty - More information at: Gitcoin

And there is definite need to limit the number of messages a bot can add to an issue(this thread is a good example), since we are going for a single line message, can we just have only one Gitcoin Bot message per issue and new messages gets appended to the old one like a log?

EDIT: replaced price URI from my personal domain to coinbase which only provides price and not the value of required ETH in USD and edited accordingly.

scottydelta avatar Feb 18 '18 22:02 scottydelta