mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
added getId
This commit is contained in:
parent
38f14ddecd
commit
824d057ee7
|
@ -24,12 +24,15 @@ abstract contract InstaDexSimulationResolver is Events, Helpers {
|
||||||
address buyToken,
|
address buyToken,
|
||||||
uint256 sellAmount,
|
uint256 sellAmount,
|
||||||
uint256 buyAmount,
|
uint256 buyAmount,
|
||||||
uint256 setId
|
uint256 setId,
|
||||||
|
uint256 getId
|
||||||
)
|
)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
|
sellAmount = getUint(getId, buyAmount);
|
||||||
|
|
||||||
if (sellToken == maticAddr) {
|
if (sellToken == maticAddr) {
|
||||||
sellAmount = sellAmount == uint256(-1)
|
sellAmount = sellAmount == uint256(-1)
|
||||||
? address(this).balance
|
? address(this).balance
|
||||||
|
|
Loading…
Reference in New Issue
Block a user