From fb05d8d6889db117e23ecd8842622239dbe3f3a4 Mon Sep 17 00:00:00 2001 From: gitpusha Date: Wed, 26 Aug 2020 14:44:47 +0200 Subject: [PATCH] added missing code comments --- package.json | 2 +- test/1_mv-DAI-DSR-Compound.test.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a784ddd..c42e7c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gelato-instadapp", "version": "1.0.0", - "description": "The smart contract and tests for automatic CHI token buying", + "description": "The smart contract and tests for gelato-instadapp prototypes", "repository": "https://github.com/gelatodigital/gelato-instadapp", "author": "gitpusha", "private": false, diff --git a/test/1_mv-DAI-DSR-Compound.test.js b/test/1_mv-DAI-DSR-Compound.test.js index b57797f..9a9a5a3 100644 --- a/test/1_mv-DAI-DSR-Compound.test.js +++ b/test/1_mv-DAI-DSR-Compound.test.js @@ -371,7 +371,10 @@ describe("Move DAI lending from DSR to Compound", function () { // Let's first check if our Task is executable. Since both MockDSR and MockCDAI // start with a normalized per second rate of APY_2_PERCENT_IN_SECONDS - // (1000000000627937192491029810 in 10**27 precision) in both of them + // (1000000000627937192491029810 in 10**27 precision) in both of them, we + // expect ConditionNotOk because ANotGreaterOrEqualToBbyMinspread. + // Check out contracts/ConditionCompareUintsFromTwoSources.sol to see how + // how the comparison of MockDSR and MockCDAI is implemented in Condition code. expect( await gelatoCore.canExec(taskReceipt, GAS_LIMIT, GAS_PRICE_CEIL) ).to.be.equal("ConditionNotOk:ANotGreaterOrEqualToBbyMinspread");