Skip to content

Commit

Permalink
Merge pull request #22 from coinselor/fix-qsr-price
Browse files Browse the repository at this point in the history
Update QSR price API endpoint
  • Loading branch information
digitalSloth authored Sep 16, 2024
2 parents b2d8714 + 1a82d70 commit a386c77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ $(document).ready(function() {
$("#znn-price").text(data['zenon-2'].usd.toFixed(2));
});

$.get("https://api.coingecko.com/api/v3/simple/price?ids=quasar-2&vs_currencies=usd", function(data) {
$("#qsr-price").text(data['quasar-2'].usd.toFixed(2));
$.get("https://api.geckoterminal.com/api/v2/networks/eth/tokens/0x96546afe4a21515a3a30cd3fd64a70eb478dc174", function(response) {
var priceUsd = response.data.attributes.price_usd;
$("#qsr-price").text(parseFloat(priceUsd).toFixed(2));
});

$('.scroll').click(function() {
$('body').animate({
scrollTop: eval($($(this).attr('href')).offset().top - 70)
Expand Down

0 comments on commit a386c77

Please sign in to comment.