Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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
};
```

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/getBridgeStatsOnDay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const handler = async (event: AWSLambda.APIGatewayEvent): Promise<IResponse> =>
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() ?? "";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/wrappa/postgres/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down