Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Sep 17, 2024
1 parent be863d5 commit c6cd501
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ export const getBridgeLimitsController = async (req, res) => {
const fromTokenInfo = tokenAddressToToken(fromChain, fromToken)
const toTokenInfo = tokenAddressToToken(toChain, toToken)

console.log('fromTokenInfo: ', fromTokenInfo)
console.log('toTokenInfo: ', toTokenInfo)

const rfqResponse = await axios.get('https://rfq-api.omnirpc.io/quotes', {
params: {
originChainId: fromChain,
Expand All @@ -42,10 +39,8 @@ export const getBridgeLimitsController = async (req, res) => {
(quote) =>
Number(quote.origin_chain_id) === Number(fromChain) &&
Number(quote.dest_chain_id) === Number(toChain) &&
getAddress(quote.origin_token_addr) ===
getAddress(fromTokenInfo?.address) &&
getAddress(quote.dest_token_addr) ===
getAddress(toTokenInfo?.address)
getAddress(quote.origin_token_addr) === fromTokenInfo.address &&
getAddress(quote.dest_token_addr) === toTokenInfo?.address
)

bestRfqQuote = filteredQuotes.reduce((maxQuote, currentQuote) => {
Expand Down

0 comments on commit c6cd501

Please sign in to comment.