From 85614f8da012e59a801faec8cf41bbda5c04c252 Mon Sep 17 00:00:00 2001 From: Wiktor Date: Thu, 21 Nov 2024 01:17:02 +0300 Subject: [PATCH 1/4] typo --- docs/creating-your-adapters/interactive-adapters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/creating-your-adapters/interactive-adapters.md b/docs/creating-your-adapters/interactive-adapters.md index 2f258ae1..ad708f7f 100644 --- a/docs/creating-your-adapters/interactive-adapters.md +++ b/docs/creating-your-adapters/interactive-adapters.md @@ -66,4 +66,4 @@ Remove names of unused arguments. Use `npx prettier ./contracts/**/*.sol --write` to fix linter issues. -Add tests for interactions it `test/` directory, use Uniswap, Weth, and other required adapters. +Add tests for interactions in `test/` directory, use Uniswap, WETH, and other required adapters. From 023c81dba3cdf5071644e859fa9bf81aa7818911 Mon Sep 17 00:00:00 2001 From: Wiktor Date: Thu, 21 Nov 2024 01:21:17 +0300 Subject: [PATCH 2/4] typo --- docs/architecture.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index 21d92abc..fba34d51 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -4,13 +4,13 @@ - **ProtocolAdapter** is a special contract for every protocol. Its main purpose is to wrap all the protocol interactions. There are different types of protocol adapters: - - "Asset" adapter returns the amount of the account's tokens held on the protocol and the + - "Asset" adapter returns the amount of the account's tokens held on the protocol. - "Debt" adapter returns the amount of the account's debt to the protocol. Some protocols do not use "simple" ERC20 tokens but instead have complex derivatives, for example the Compound protocol has CTokens. The **ProtocolAdapter** contract also provides information about the type of tokens used within it. - - **TokenAdapter** is a contract for every derivative token type (e.g cTokens, aTokens, yTokens, etc.) + - **TokenAdapter** is a contract for every derivative token type (e.g cTokens, aTokens, yTokens, etc.). Its main purpose is to provide ERC20-style token metadata as well as information about the underlying ERC20 tokens (like DAI for cDAI). Namely, it provides addresses, types and rates of underlying tokens. From 6dec5babf828d929fc8cf1a6d6ad171c1374a3d1 Mon Sep 17 00:00:00 2001 From: Wiktor Date: Thu, 21 Nov 2024 01:26:13 +0300 Subject: [PATCH 3/4] typo and spelling errors --- docs/examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 326d3776..c2970d7b 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -66,7 +66,7 @@ on the [api.zerion.eth](https://etherscan.io/address/0x06fe76b2f432fdfecaef1a7d4 }] ``` -## Make sense of tokens like `UNI-V1 ETH-cDAI` +## Make sense of tokens like `UNI-V1` and `ETH-cDAI`

@@ -79,7 +79,7 @@ Sometimes, a DeFi token contains several other tokens, and to calculate their pr getFinalFullTokenBalance('0x34E89740adF97C3A9D3f63Cc2cE4a914382c230b', "Uniswap V1 Pool Token") ``` - and fetch the decomposition of UNI-token into ERC20 tokens, like `ETH` and `DAI` + and fetch the decomposition of UNI token into ERC20 tokens, like `ETH` and `DAI` ```javascript 0.98 ETH @@ -95,7 +95,7 @@ In case you want to get account balances across all supported DeFi protocols, yo getBalances('0x0ef51b7dac3933b8109482e7d910c21848e45da0f') ``` -and obtain all balances for a given account. The response from the smart-contract will contain information about each of the protocols +and obtain all balances for a given account. The response from the smart contract will contain information about each of the protocols ```javascript 100 DAI // collateral on Compound From 03634797c7acba4832477f69308c8c339382d258 Mon Sep 17 00:00:00 2001 From: Wiktor Date: Thu, 21 Nov 2024 01:37:20 +0300 Subject: [PATCH 4/4] typo --- docs/reading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reading.md b/docs/reading.md index 9a6c7fcf..a29ef8f4 100644 --- a/docs/reading.md +++ b/docs/reading.md @@ -62,7 +62,7 @@ The following object is an example of the `ProtocolBalance` struct. { info: { token: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - name: "USD//C", + name: "USDC", symbol: "USDC", decimals: 6 },