Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8ed061b6c |
@@ -28,7 +28,8 @@ let lastFetchedAt = 0;
|
|||||||
// logged, and that token then has no price.
|
// logged, and that token then has no price.
|
||||||
//
|
//
|
||||||
// `signal`, passed by the popup, is aborted when the popup closes. A read that
|
// `signal`, passed by the popup, is aborted when the popup closes. A read that
|
||||||
// fails after that was cancelled by the closing and is not logged.
|
// fails once `signal` is aborted is not logged, because closing the popup
|
||||||
|
// cancelled it.
|
||||||
async function refreshPrices(signal) {
|
async function refreshPrices(signal) {
|
||||||
const { state, currentNetwork } = require("./state");
|
const { state, currentNetwork } = require("./state");
|
||||||
if (currentNetwork().id !== "mainnet") {
|
if (currentNetwork().id !== "mainnet") {
|
||||||
|
|||||||
@@ -253,8 +253,8 @@ const SELECTOR_NAME = "0x06fdde03";
|
|||||||
const SELECTOR_BALANCE_OF = "0x70a08231";
|
const SELECTOR_BALANCE_OF = "0x70a08231";
|
||||||
const SELECTOR_LATEST_ROUND_DATA = "0xfeaf968c";
|
const SELECTOR_LATEST_ROUND_DATA = "0xfeaf968c";
|
||||||
|
|
||||||
// A price feed's latestRoundData() is answered on any contract with five zero
|
// On any contract, a latestRoundData() call is answered with five zero words.
|
||||||
// words. That is a round with a price of zero, which the wallet counts as no
|
// That is a round with a price of zero, which the wallet counts as no
|
||||||
// price. So no screen shows a USD value beside the amounts the tests compare.
|
// price. So no screen shows a USD value beside the amounts the tests compare.
|
||||||
//
|
//
|
||||||
// Every other eth_call answers with a zero word except decimals(), symbol(),
|
// Every other eth_call answers with a zero word except decimals(), symbol(),
|
||||||
|
|||||||
Reference in New Issue
Block a user