Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
realdealshaman committed Jan 18, 2025
1 parent 7b15a9b commit 3c9e2e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion coins/src/adapters/markets/aktionariat/aktionariat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default async function getTokenPrices(
chain: string,
subgraph: string,
timestamp: number,
ignoreAddresses: string[], // ignore stablecoin addreses
ignoreAddresses: string[], // ignore stablecoin addresses
) {
let tokenInfos: any[];
tokenInfos = await fetchTokensFromSubgraph(subgraph, timestamp);
Expand Down
2 changes: 1 addition & 1 deletion coins/src/adapters/other/mooBvmEth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function contractCalls(
let price =
(reserve0.output * priceEth + reserve1.output * priceBvm) /
totalSupply.output;
price *= multiplier.output / 1e18; // mutiplier decimals removed
price *= multiplier.output / 1e18; // multiplier decimals removed
price = priceEth / price;

addToDBWritesList(
Expand Down
4 changes: 2 additions & 2 deletions coins/src/adapters/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ An adapter is just a javascript file that exports an async function that returns
price: 1.45632,
adapter: 'aave', // unique adapters identifier, used for tracability inside the database
symbol: "USDT", // symbol of the token
confidence: 0.7, // number 0-1 desribing the reliablility of the price data (more information below)
confidence: 0.7, // number 0-1 describing the reliablility of the price data (more information below)
redirect: 'coingecko#ethereum', // some coins will in theory always have the same price as another token in the DB. In this case a 'redirect' can be used instead of a 'price'. This will usually be undefined
decimals: 18, // the number of a decimals that a token has
};
Expand Down Expand Up @@ -52,7 +52,7 @@ We can see that [index.ts] exports a function with the same name as the protocol
getTokenPrices() uses a variety of functions and libraries to find token prices:

1. Axios is used in fetchFromIpfs(), to fetch market information from IPFS by a REST get call. API calls don't necessarily have to be to IPFS, however we do prefer on-chain data to protocol APIs. Especially for numerical data used to calculate price.
2. The getBlock() utility is used to find the block height of the given chain at the the given timestamp. It is worth checking the utils folder for any functions you need that may have already been written.
2. The getBlock() utility is used to find the block height of the given chain at the given timestamp. It is worth checking the utils folder for any functions you need that may have already been written.
3. getTokenAndRedirectData() fetches information from the DefiLlama coins database, about coins deposited to the Euler markets.
4. multiCall()is a function from the DefiLlama SDK which allows us to fetch on-chain data from many functions at once. There are lots of examples on how to use the DefiLlama SDK in the DefiLlama/DefiLlama-Adapters repo.

Expand Down
2 changes: 1 addition & 1 deletion defi/DefiLlama-Adapters

0 comments on commit 3c9e2e3

Please sign in to comment.