Skip to content

Commit

Permalink
Fix typo Univeral -> Universal (Uniswap#428)
Browse files Browse the repository at this point in the history
Co-authored-by: jsy1218 <[email protected]>
  • Loading branch information
hensha256 and jsy1218 authored Nov 14, 2023
1 parent 89c98a4 commit d8daab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/tenderly-simulation-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class TenderlySimulator extends Simulator {
);

// We are unsure if the users calldata contains a permit or not. We just
// max approve the Univeral Router from Permit2 instead, which will cover both cases.
// max approve the Universal Router from Permit2 instead, which will cover both cases.
const permit2Interface = Permit2__factory.createInterface();
const approveUniversalRouterCallData =
permit2Interface.encodeFunctionData('approve', [
Expand Down
4 changes: 2 additions & 2 deletions src/util/methodParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@uniswap/router-sdk';
import { ChainId, Currency, TradeType } from '@uniswap/sdk-core';
import {
SwapRouter as UniveralRouter,
SwapRouter as UniversalRouter,
UNIVERSAL_ROUTER_ADDRESS,
} from '@uniswap/universal-router-sdk';
import { Route as V2RouteRaw } from '@uniswap/v2-sdk';
Expand Down Expand Up @@ -235,7 +235,7 @@ export function buildSwapMethodParameters(
): MethodParameters {
if (swapConfig.type == SwapType.UNIVERSAL_ROUTER) {
return {
...UniveralRouter.swapERC20CallParameters(trade, swapConfig),
...UniversalRouter.swapERC20CallParameters(trade, swapConfig),
to: UNIVERSAL_ROUTER_ADDRESS(chainId),
};
} else if (swapConfig.type == SwapType.SWAP_ROUTER_02) {
Expand Down

0 comments on commit d8daab3

Please sign in to comment.