This commit is contained in:
pradyuman-verma 2022-06-20 16:18:47 +05:30
parent f26d346b87
commit 50248d402e
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -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