Skip to content

Commit

Permalink
Add body log to tenderly sim
Browse files Browse the repository at this point in the history
  • Loading branch information
willpote committed Nov 29, 2022
1 parent debbf2b commit e18878a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/tenderly-simulation-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ export class TenderlySimulator extends Simulator {

log.info(
{
body,
approvePermit2GasUsed:
resp.simulation_results[0].transaction.gas_used,
approveUniversalRouterGasUsed:
Expand Down Expand Up @@ -445,8 +446,9 @@ export class TenderlySimulator extends Simulator {

log.info(
{
approve: resp.simulation_results[0].transaction.gas_used,
swap: resp.simulation_results[1].transaction.gas_used,
body,
approveGasUsed: resp.simulation_results[0].transaction.gas_used,
swapGasUsed: resp.simulation_results[1].transaction.gas_used,
swapWithMultiplier: estimatedGasUsed.toString(),
},
'Successfully Simulated Approval + Swap via Tenderly for SwapRouter02. Gas used.'
Expand Down

0 comments on commit e18878a

Please sign in to comment.