Skip to content

Commit

Permalink
Merge pull request hummingbot#9 from enfluxtech/fix/fix-openocean-est…
Browse files Browse the repository at this point in the history
…imate-buy-trade

Fix OpenOcean estimate buy trade method
  • Loading branch information
jellebuth authored Jun 5, 2024
2 parents 073fcc5 + 3a07ecc commit 94c0c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connectors/openocean/openocean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ export class Openocean implements Uniswapish {
`estimateBuyTrade reverseData inAmount(${quoteToken.symbol}): ${quoteData.reverseAmount}, outAmount(${baseToken.symbol}): ${quoteData.inAmount}`
);
const amounts = [
new Big(quoteData.reverseAmount).toFixed(0),
new Big(quoteData.inAmount).toString(),
quoteData.reverseAmount.toString(),
quoteData.inAmount.toString(),
];
const minimumInput = new TokenAmount(quoteToken, amounts[0]);
const trade = newFakeTrade(
Expand Down

0 comments on commit 94c0c1b

Please sign in to comment.