mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/polygon/connectors/dexSimulation/main.sol
Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
parent
824d057ee7
commit
d7a0fdb684
|
@ -32,7 +32,7 @@ abstract contract InstaDexSimulationResolver is Events, Helpers {
|
|||
returns (string memory _eventName, bytes memory _eventParam)
|
||||
{
|
||||
sellAmount = getUint(getId, buyAmount);
|
||||
|
||||
uint256 nativeAmount
|
||||
if (sellToken == maticAddr) {
|
||||
sellAmount = sellAmount == uint256(-1)
|
||||
? address(this).balance
|
||||
|
|
Loading…
Reference in New Issue
Block a user