added getId

This commit is contained in:
pradyuman-verma 2022-06-20 15:42:03 +05:30
parent 38f14ddecd
commit 824d057ee7
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -24,12 +24,15 @@ abstract contract InstaDexSimulationResolver is Events, Helpers {
address buyToken,
uint256 sellAmount,
uint256 buyAmount,
uint256 setId
uint256 setId,
uint256 getId
)
external
payable
returns (string memory _eventName, bytes memory _eventParam)
{
sellAmount = getUint(getId, buyAmount);
if (sellToken == maticAddr) {
sellAmount = sellAmount == uint256(-1)
? address(this).balance