From 50248d402e704180a0dc25194cef093f02556768 Mon Sep 17 00:00:00 2001 From: pradyuman-verma Date: Mon, 20 Jun 2022 16:18:47 +0530 Subject: [PATCH] fixes --- contracts/polygon/connectors/dexSimulation/main.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/polygon/connectors/dexSimulation/main.sol b/contracts/polygon/connectors/dexSimulation/main.sol index c26c6872..5303d0aa 100644 --- a/contracts/polygon/connectors/dexSimulation/main.sol +++ b/contracts/polygon/connectors/dexSimulation/main.sol @@ -33,7 +33,8 @@ abstract contract InstaDexSimulationResolver is Events, Helpers { returns (string memory _eventName, bytes memory _eventParam) { sellAmount = getUint(getId, buyAmount); - uint256 nativeAmount + uint256 nativeAmount; + if (sellToken == maticAddr) { sellAmount = sellAmount == uint256(-1) ? address(this).balance