Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const getAuctionDuration = () => {
return auction_start_duration - (auction_start_duration - auction_end_duration) * months / 12;
}

const API_URL = 'https://ton.org/api/toncoinInfo';
const API_URL = 'https://b45wjlr7aykwdxyljnnbnrzkdy0wcyth.lambda-url.eu-central-1.on.aws';
let ACTIVE_SCREEN;
let LAST_PRICE_UPDATED_DATE = null
let LAST_PRICE;
Expand Down Expand Up @@ -509,7 +509,7 @@ async function assembleDomainItems(nft_items) {

return arr;
}, []);

return domain_items;
}

Expand Down Expand Up @@ -549,7 +549,7 @@ function getDifferenceBetweenDates(futureDate, pastDate) {

const minutes = Math.floor(delta / 60) % 60;
delta -= minutes * 60;

return { days, hours, minutes };
}

Expand Down Expand Up @@ -624,7 +624,7 @@ function getMsToSleep(retryHeaderString) {
async function fetchAndRetry(fetchFn) {
try {
const response = await fetchFn();

if (response.status === 429) {
const retryAfter = response.headers.get('retry-after');
const msToSleep = getMsToSleep(retryAfter);
Expand Down Expand Up @@ -661,4 +661,4 @@ async function getGGDomainData(domainAddressString) {
return null;
}
}
// GG INTEGRATION
// GG INTEGRATION