Skip to content

Commit

Permalink
getOsmosisSwapEstimation is not async anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
junhoyeo committed Dec 20, 2022
1 parent 9f46f2e commit 63e0e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/get-estimation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const sendCurrency: Currency = {
coinDecimals: 6,
};

export const getOsmosisSwapEstimation = async ({
export const getOsmosisSwapEstimation = ({
tokenInCurrency,
tokenOutCurrency,
amount: tokenInAmount,
Expand All @@ -23,7 +23,7 @@ export const getOsmosisSwapEstimation = async ({
amount: string;
pools: Pool[];
routes: RoutePathWithAmount[];
}): Promise<CoinPretty> => {
}): CoinPretty => {
if (!pools || pools.length === 0) {
throw 'Pool is undefined';
}
Expand Down

0 comments on commit 63e0e27

Please sign in to comment.