Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Mar 4, 2024
1 parent 782e28d commit 7b6ae26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modes/srouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,11 @@ const srouterClear = async(
// permits
// "0.005"
);
const order = bundledOrders[i].takeOrders.map(v => v.takeOrder)[0]
const takeOrdersConfigStruct = {
minimumInput: ethers.constants.One,
maximumInput,
maximumIORatio: maxRatio ? ethers.constants.MaxUint256 : price,
orders: [order,order],
orders: bundledOrders[i].takeOrders.map(v => v.takeOrder),
data: ethers.utils.defaultAbiCoder.encode(
["bytes"],
[rpParams.routeCode]
Expand Down Expand Up @@ -272,6 +271,7 @@ const order = bundledOrders[i].takeOrders.map(v => v.takeOrder)[0]
]
);
try {
console.log("minimumSenderOuput : ",gasCostInToken.mul(headroom).div("100"))

Check failure on line 274 in src/modes/srouter.js

View workflow job for this annotation

GitHub Actions / Build, lint, test

Missing semicolon
await signer.estimateGas(rawtx);
}
catch(error) {

Check failure on line 277 in src/modes/srouter.js

View workflow job for this annotation

GitHub Actions / Build, lint, test

Trailing spaces not allowed
Expand Down

0 comments on commit 7b6ae26

Please sign in to comment.