From f06daa6b673e77311ae4b66da9ab35238001b7f2 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 25 Sep 2020 00:30:05 +0530 Subject: [PATCH] minor changes --- contracts/connectors/addition.sol | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contracts/connectors/addition.sol b/contracts/connectors/addition.sol index a88d50d..a6c4de3 100644 --- a/contracts/connectors/addition.sol +++ b/contracts/connectors/addition.sol @@ -51,6 +51,7 @@ contract BasicResolver is Helpers { /** * @dev Add getIds + * @param getIds Array of get token amount at this IDs from `InstaMemory` Contract. * @param setId Set ctoken amount at this ID in `InstaMemory` Contract. */ function addIds(uint[] calldata getIds, uint setId) external payable { @@ -63,11 +64,13 @@ contract BasicResolver is Helpers { } /** - * @dev Sub getIds + * @dev Sub two getId. + * @param getIdOne Get token amount at this ID from `InstaMemory` Contract. + * @param getIdTwo Get token amount at this ID from `InstaMemory` Contract. * @param setId Set ctoken amount at this ID in `InstaMemory` Contract. */ function subIds(uint getIdOne, uint getIdTwo, uint setId) external payable { - uint amt = add(getUint(getIdOne, 0), getUint(getIdTwo, 0)); + uint amt = sub(getUint(getIdOne, 0), getUint(getIdTwo, 0)); setUint(setId, amt); }