Skip to content

Commit

Permalink
Adds types
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Oct 7, 2024
1 parent 9a137af commit 11824e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/rest-api/src/validations/validSwap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { tokenAddressToToken } from '../utils/tokenAddressToToken'

export const validSwap = (chain, fromToken, toToken) => {
export const validSwap = (
chain: number | string,
fromToken: string,
toToken: string
) => {
const fromTokenInfo = tokenAddressToToken(chain.toString(), fromToken)
const toTokenInfo = tokenAddressToToken(chain.toString(), toToken)

Expand Down

0 comments on commit 11824e8

Please sign in to comment.