From ce2b1082dc6d029415f714f4e59d1713142490c8 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Tue, 1 Dec 2020 01:09:52 +0530 Subject: [PATCH] Fixed withdrawLiquidated max amt issue --- contracts/connectors/makerdao.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/connectors/makerdao.sol b/contracts/connectors/makerdao.sol index 5e55ebc..4660750 100644 --- a/contracts/connectors/makerdao.sol +++ b/contracts/connectors/makerdao.sol @@ -182,7 +182,7 @@ contract Helpers is DSMath { * @dev Connector Details */ function connectorID() public pure returns(uint _type, uint _id) { - (_type, _id) = (1, 40); + (_type, _id) = (1, 61); } } @@ -604,7 +604,7 @@ contract BasicExtraResolver is BasicResolver { uint _amt18; if (_amt == uint(-1)) { _amt18 = VatLike(managerContract.vat()).gem(ilk, urn); - _amt = convert18ToDec(tokenJoinContract.dec(), _amt); + _amt = convert18ToDec(tokenJoinContract.dec(), _amt18); } else { _amt18 = convertTo18(tokenJoinContract.dec(), _amt); }