Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Apr 2, 2024
1 parent 662e53c commit 845374c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@
"routeProcessor3Address": "0xfc506AaA1340b4dedFfd88bE278bEe058952D674",
"routeProcessor3_2Address": "0x09bD2A33c47746fF03b86BCe4E885D03C74a8E8C",
"uniV2Router02Address": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",
"uniV2Router02HardcodedAddress": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",
"zeroEx": {
"apiUrl": "https://arbitrum.api.0x.org/",
"proxyAddress": "0xdef1c0ded9bec7f1a1670819833240f027b25eff"
Expand Down
2 changes: 1 addition & 1 deletion src/modes/suniv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ async function checkArb(
signer,
config.uniV2Router02Address,
fromToken.address,
"1" + "0".repeat(config.nativeWrappedToken.decimals),
maximumInput.toString(),
toToken.address,
toToken.decimals
);
Expand Down
6 changes: 3 additions & 3 deletions src/modes/univ2Hardcoded.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ async function checkArb(

const amountOut = await getAmountOutFlareSwap(
signer,
config.uniV2Router02Address,
fromToken.address,
"1" + "0".repeat(config.nativeWrappedToken.decimals),
config.uniV2Router02HardcodedAddress,
config.nativeWrappedToken.address,
maximumInputFixed.mul("1" + "0".repeat(config.nativeWrappedToken.decimals)).div(ethers.utils.parseEther(ethPrice)),
toToken.address,
toToken.decimals
);
Expand Down

0 comments on commit 845374c

Please sign in to comment.