diff --git a/README.md b/README.md index 2be57797..73e1192d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ token: string, isDeposit: boolean amount: BigNumber ``` -If your bridge is on 2 chains you can create adapter for 1 chain and track both deposits and withdrawals +If your bridge is on 2 chains you can create an adapter for 1 chain and track both deposits and withdrawals ```ts const adapter: BridgeAdapter = { ethereum: constructParams("ethereum"), @@ -51,7 +51,7 @@ mapTokens?: { [token: string]: string }; // can expand to map other keys if need getTokenFromReceipt?: { token: boolean; amount?: boolean; -native?: string; // if provided native token address, will return amount of native token transferred if there are no ercs transferred +native?: string; // if provided native token address, will return the amount of native token transferred if there are no ercs transferred }; ``` diff --git a/src/handlers/getBridgeStatsOnDay.ts b/src/handlers/getBridgeStatsOnDay.ts index cca916c0..5fe7b1fe 100644 --- a/src/handlers/getBridgeStatsOnDay.ts +++ b/src/handlers/getBridgeStatsOnDay.ts @@ -187,7 +187,7 @@ const handler = async (event: AWSLambda.APIGatewayEvent): Promise => const timestamp = event.pathParameters?.timestamp; if(Number(timestamp) % 3600 !== 0){ return errorResponse({ - message: "timestamp must be divible by 3600" + message: "timestamp must be divisible by 3600" }) } const chain = event.pathParameters?.chain?.toLowerCase() ?? ""; diff --git a/src/utils/wrappa/postgres/query.ts b/src/utils/wrappa/postgres/query.ts index f5efa173..ef9f23b8 100644 --- a/src/utils/wrappa/postgres/query.ts +++ b/src/utils/wrappa/postgres/query.ts @@ -66,7 +66,7 @@ const getConfigsWithDestChain = async () => { }; const queryConfig = async (bridgeNetworkName?: string, chain?: string, destinationChain?: string) => { - // this isn't written propery; can either query by bridgeNetworkName, or a combination of chain/destChain. + // this isn't written properly; can either query by bridgeNetworkName, or a combination of chain/destChain. let bridgeNetworkNameEqual = sql``; if (!(chain || destinationChain)) { if (bridgeNetworkName) {