From 58324a199f47051e9b7e0b7bb5ec1dfd916d01ce Mon Sep 17 00:00:00 2001 From: Louise Poole Date: Thu, 26 Jun 2025 12:33:31 +0200 Subject: [PATCH] chore: fix typos --- evm/src/angle/AngleAdapter.sol | 4 ++-- substreams/Readme.md | 2 +- substreams/crates/tycho-substreams/src/balances.rs | 2 +- substreams/ethereum-balancer-v2/src/modules.rs | 2 +- substreams/ethereum-curve/src/modules.rs | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/evm/src/angle/AngleAdapter.sol b/evm/src/angle/AngleAdapter.sol index 9aaa50d..381371b 100644 --- a/evm/src/angle/AngleAdapter.sol +++ b/evm/src/angle/AngleAdapter.sol @@ -429,8 +429,8 @@ library LibManager { } } - /// @notice Calls a hook if needed after new funds have been transfered to a - /// manager + /// @notice Calls a hook if needed after new funds have been transferred to + /// a manager function invest(uint256 amount, bytes memory config) internal { (ManagerType managerType, bytes memory data) = parseManagerConfig(config); diff --git a/substreams/Readme.md b/substreams/Readme.md index 48e7ffc..07646fd 100644 --- a/substreams/Readme.md +++ b/substreams/Readme.md @@ -20,7 +20,7 @@ since this will error. To create a pre-release for testing in dev you can start CD pipeline manually supplying the package you'd like to pre-release. This will create a `[package].pre-[commit-sha]` release in our spkg repository which you can use -to run the substream´. +to run the substream. For forked protocols you'll need to also supply the config file name, e.g. `ethereum-pancakeswap`. diff --git a/substreams/crates/tycho-substreams/src/balances.rs b/substreams/crates/tycho-substreams/src/balances.rs index 6d94ef0..2aa4e5d 100644 --- a/substreams/crates/tycho-substreams/src/balances.rs +++ b/substreams/crates/tycho-substreams/src/balances.rs @@ -94,7 +94,7 @@ type TxAggregatedBalances = /// Aggregates absolute balances per transaction and token. /// /// ## Arguments -/// * `balance_store` - A `StoreDeltas` with all changes that occured in the source store module. +/// * `balance_store` - A `StoreDeltas` with all changes that occurred in the source store module. /// * `deltas` - A `BlockBalanceDeltas` message containing the relative balances changes. /// /// This function reads absolute balance values from an additive store (see `store_balance_changes` diff --git a/substreams/ethereum-balancer-v2/src/modules.rs b/substreams/ethereum-balancer-v2/src/modules.rs index 13875a1..31e9024 100644 --- a/substreams/ethereum-balancer-v2/src/modules.rs +++ b/substreams/ethereum-balancer-v2/src/modules.rs @@ -163,7 +163,7 @@ pub fn store_balances(deltas: BlockBalanceDeltas, store: StoreAddBigInt) { /// This is the main map that handles most of the indexing of this substream. /// Every contract change is grouped by transaction index via the `transaction_changes` /// map. Each block of code will extend the `TransactionChanges` struct with the -/// cooresponding changes (balance, component, contract), inserting a new one if it doesn't exist. +/// corresponding changes (balance, component, contract), inserting a new one if it doesn't exist. /// At the very end, the map can easily be sorted by index to ensure the final /// `BlockChanges` is ordered by transactions properly. #[substreams::handlers::map] diff --git a/substreams/ethereum-curve/src/modules.rs b/substreams/ethereum-curve/src/modules.rs index 3aa8551..9fcdbc6 100644 --- a/substreams/ethereum-curve/src/modules.rs +++ b/substreams/ethereum-curve/src/modules.rs @@ -64,7 +64,7 @@ pub fn map_components(params: String, block: eth::v2::Block) -> Result = tx_changes //TODO: format directly at creation + let formatted_components: Vec<_> = tx_changes //TODO: format directly at creation .component_changes .into_iter() .map(|mut component| { @@ -238,14 +238,14 @@ pub fn map_protocol_changes( transaction_entry .component_changes - .extend(formated_components); + .extend(formatted_components); transaction_entry .entity_changes .extend(tx_changes.entity_changes); }); // Balance changes are gathered by the `StoreDelta` based on `TokenExchange`, etc. creating - // `BalanceDeltas`. We essentially just process the changes that occured to the `store` this + // `BalanceDeltas`. We essentially just process the changes that occurred to the `store` this // block. Then, these balance changes are merged onto the existing map of tx contract changes, // inserting a new one if it doesn't exist. balance_store